summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_capi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 7a6870d..246e25b 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -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.')