Kaydet (Commit) 4000ffa1 authored tarafından Victor Stinner's avatar Victor Stinner

Fix test_capi for Windows: strip newline characters

Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
üst c807a613
......@@ -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.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment