diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-15 01:40:41 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-15 01:40:41 (GMT) |
commit | 4000ffa19c6e02ff84984fca226fa848e2483581 (patch) | |
tree | db539095cc57180705805c4e1b08ade1df36ea3c | |
parent | c807a613ee2f8e453795eeb3986d6e25d3166bd0 (diff) | |
download | cpython-4000ffa19c6e02ff84984fca226fa848e2483581.zip cpython-4000ffa19c6e02ff84984fca226fa848e2483581.tar.gz cpython-4000ffa19c6e02ff84984fca226fa848e2483581.tar.bz2 |
Fix test_capi for Windows: strip newline characters
Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
-rw-r--r-- | Lib/test/test_capi.py | 4 |
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.') |