Skip to content

Commit 2709c7a

Browse files
author
bcannon
committed
Tweak test_communicate_stderr so that it works when run under a pydebug build.
git-svn-id: http://svn.python.org/projects/python/trunk@38579 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent f0e0862 commit 2709c7a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_subprocess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ def test_communicate_stderr(self):
269269
stderr=subprocess.PIPE)
270270
(stdout, stderr) = p.communicate()
271271
self.assertEqual(stdout, None)
272-
self.assertEqual(stderr, "pineapple")
272+
# When running with a pydebug build, the # of references is outputted
273+
# to stderr, so just check if stderr at least started with "pinapple"
274+
self.assert_(stderr.startswith("pineapple"))
273275

274276
def test_communicate(self):
275277
p = subprocess.Popen([sys.executable, "-c",

0 commit comments

Comments
 (0)