Commit 7cf7d722 authored by Victor Stinner's avatar Victor Stinner

Improve test_exit() error message to analyze sparc failures

parent d7e4c1ca
......@@ -151,7 +151,8 @@ class SysModuleTest(unittest.TestCase):
stderr=subprocess.PIPE)
stdout, stderr = process.communicate()
self.assertEqual(process.returncode, 1)
self.assertTrue(stderr.startswith(expected), stderr)
self.assertTrue(stderr.startswith(expected),
"%r doesn't start with %r" % (stderr, expected))
# test that stderr buffer if flushed before the exit message is written
# into stderr
......
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