diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-17 14:36:43 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-17 14:36:43 (GMT) |
commit | 7cf7d722633e9b76db47308c8a568f98febaae7f (patch) | |
tree | 647148c5e980b7c26a24b75dc1eb54250bc8b70e /Lib/test | |
parent | d7e4c1caa61bdeb1829bb84001b4a3417ab95522 (diff) | |
download | cpython-7cf7d722633e9b76db47308c8a568f98febaae7f.zip cpython-7cf7d722633e9b76db47308c8a568f98febaae7f.tar.gz cpython-7cf7d722633e9b76db47308c8a568f98febaae7f.tar.bz2 |
Improve test_exit() error message to analyze sparc failures
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_sys.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 2dd2746..a1b5ee7 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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 |