From: Brett Cannon Date: Sat, 5 Mar 2005 06:40:52 +0000 (+0000) Subject: Tweak test_communicate_stderr so that it works when run under a pydebug build. X-Git-Tag: v2.5a0~1954 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=653a5adcca68d445b21dd2a640627f0f0185204a;p=thirdparty%2FPython%2Fcpython.git Tweak test_communicate_stderr so that it works when run under a pydebug build. --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index efee5b525d2c..e6f981dfc1dc 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",