summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-17 14:37:57 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-17 14:37:57 (GMT)
commitdf47ffd773efc8fc78ffc3354fc8630d84226503 (patch)
treeee0bd24631edcb30c0a94ab97d22026f085bb8bb /Lib/test/test_sys.py
parent42db5c30331c0678702e16d5c6eb04b7c9a278b5 (diff)
downloadcpython-df47ffd773efc8fc78ffc3354fc8630d84226503.zip
cpython-df47ffd773efc8fc78ffc3354fc8630d84226503.tar.gz
cpython-df47ffd773efc8fc78ffc3354fc8630d84226503.tar.bz2
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 ........
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index b3a0676..903ad91 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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