[Python-checkins] r81267 - python/branches/py3k/Lib/test/test_sys.py
victor.stinner
python-checkins at python.org
Mon May 17 16:36:43 CEST 2010
Author: victor.stinner
Date: Mon May 17 16:36:43 2010
New Revision: 81267
Log:
Improve test_exit() error message to analyze sparc failures
Modified:
python/branches/py3k/Lib/test/test_sys.py
Modified: python/branches/py3k/Lib/test/test_sys.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sys.py (original)
+++ python/branches/py3k/Lib/test/test_sys.py Mon May 17 16:36:43 2010
@@ -151,7 +151,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