]> granicus.if.org Git - python/commitdiff
Improve test_exit() error message to analyze sparc failures
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 May 2010 14:36:43 +0000 (14:36 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 May 2010 14:36:43 +0000 (14:36 +0000)
Lib/test/test_sys.py

index 2dd274609d81903684abdbd2b8f64c792f838c82..a1b5ee741ea36f2bf861dacf572ebe4056a3973b 100644 (file)
@@ -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