mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Improve test_exit() error message to analyze sparc failures
This commit is contained in:
parent
d7e4c1caa6
commit
7cf7d72263
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue