mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Fix test_capi for Windows: strip newline characters
Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
This commit is contained in:
parent
c807a613ee
commit
4000ffa19c
1 changed files with 2 additions and 2 deletions
|
@ -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.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue