Commit 1875c50f authored by Denis Bilenko's avatar Denis Bilenko

test__subprocess.py: fix from failing on python-dbg

parent 507f9c9e
......@@ -40,7 +40,10 @@ class Test(greentest.TestCase):
stderr=subprocess.PIPE)
(stdout, stderr) = p.communicate("banana")
self.assertEqual(stdout, "banana")
self.assertEqual(stderr, "pineapple")
if sys.executable.endswith('-dbg'):
assert stderr.startswith('pineapple')
else:
self.assertEqual(stderr, "pineapple")
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment