From 653a5adcca68d445b21dd2a640627f0f0185204a Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 5 Mar 2005 06:40:52 +0000 Subject: Tweak test_communicate_stderr so that it works when run under a pydebug build. --- Lib/test/test_subprocess.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- cgit v0.12