]> granicus.if.org Git - python/commitdiff
Merged revisions 81267 via svnmerge from
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 May 2010 14:37:57 +0000 (14:37 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 May 2010 14:37:57 +0000 (14:37 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r81267 | victor.stinner | 2010-05-17 16:36:43 +0200 (lun., 17 mai 2010) | 2 lines

  Improve test_exit() error message to analyze sparc failures
........

Lib/test/test_sys.py

index b3a0676328945531cdd16ea474bab018ec114b96..903ad91703f77f48ad305e60634a6944d55e1dc6 100644 (file)
@@ -144,7 +144,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