summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-03-05 06:40:52 (GMT)
committerBrett Cannon <bcannon@gmail.com>2005-03-05 06:40:52 (GMT)
commit653a5adcca68d445b21dd2a640627f0f0185204a (patch)
tree75f4fe99f62018cb8a4d98e000ffef4b46bceac1 /Lib/test/test_subprocess.py
parent07eca3a99bd62ac49b1c0ead73f858fa59ae2953 (diff)
downloadcpython-653a5adcca68d445b21dd2a640627f0f0185204a.zip
cpython-653a5adcca68d445b21dd2a640627f0f0185204a.tar.gz
cpython-653a5adcca68d445b21dd2a640627f0f0185204a.tar.bz2
Tweak test_communicate_stderr so that it works when run under a pydebug build.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index efee5b5..e6f981d 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -269,7 +269,9 @@ class ProcessTestCase(unittest.TestCase):
stderr=subprocess.PIPE)
(stdout, stderr) = p.communicate()
self.assertEqual(stdout, None)
- self.assertEqual(stderr, "pineapple")
+ # When running with a pydebug build, the # of references is outputted
+ # to stderr, so just check if stderr at least started with "pinapple"
+ self.assert_(stderr.startswith("pineapple"))
def test_communicate(self):
p = subprocess.Popen([sys.executable, "-c",