From 4000ffa19c6e02ff84984fca226fa848e2483581 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 15 May 2010 01:40:41 +0000 Subject: [PATCH] Fix test_capi for Windows: strip newline characters Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605). --- Lib/test/test_capi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 7a6870dc6a..246e25bbc7 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.') -- 2.50.0