Fix test_capi for Windows: strip newline characters

Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
This commit is contained in:
Victor Stinner 2010-05-15 01:40:41 +00:00
parent c807a613ee
commit 4000ffa19c

View file

@ -45,9 +45,9 @@ class CAPITest(unittest.TestCase):
(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.')