[Python-checkins] r81183 - python/branches/py3k/Lib/test/test_capi.py
victor.stinner
python-checkins at python.org
Sat May 15 03:40:41 CEST 2010
Author: victor.stinner
Date: Sat May 15 03:40:41 2010
New Revision: 81183
Log:
Fix test_capi for Windows: strip newline characters
Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
Modified:
python/branches/py3k/Lib/test/test_capi.py
Modified: python/branches/py3k/Lib/test/test_capi.py
==============================================================================
--- python/branches/py3k/Lib/test/test_capi.py (original)
+++ python/branches/py3k/Lib/test/test_capi.py Sat May 15 03:40:41 2010
@@ -45,9 +45,9 @@
(out, err) = p.communicate()
self.assertEqual(out, b'')
# This used to cause an infinite loop.
- self.assertEqual(err,
+ self.assertEqual(err.rstrip(),
b'Fatal Python error:'
- b' PyThreadState_Get: no current thread\n')
+ b' PyThreadState_Get: no current thread')
@unittest.skipUnless(threading, 'Threading required for this test.')
More information about the Python-checkins
mailing list