[Python-checkins] r81268 - in python/branches/release31-maint: Lib/test/test_sys.py

victor.stinner python-checkins at python.org
Mon May 17 16:37:57 CEST 2010


Author: victor.stinner
Date: Mon May 17 16:37:57 2010
New Revision: 81268

Log:
Merged revisions 81267 via svnmerge from 
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
........


Modified:
   python/branches/release31-maint/   (props changed)
   python/branches/release31-maint/Lib/test/test_sys.py

Modified: python/branches/release31-maint/Lib/test/test_sys.py
==============================================================================
--- python/branches/release31-maint/Lib/test/test_sys.py	(original)
+++ python/branches/release31-maint/Lib/test/test_sys.py	Mon May 17 16:37:57 2010
@@ -144,7 +144,8 @@
                                        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


More information about the Python-checkins mailing list