summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-06 10:34:50 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-06 10:34:50 (GMT)
commit73954040f6b9459e59803fd62af14c547a7b3636 (patch)
tree7c2eebf5a444d61b18c61d34bdeda2cfee34555e /Lib
parent363712349a2b6e2a3f4257e4351ee44c8a2dde5c (diff)
downloadcpython-73954040f6b9459e59803fd62af14c547a7b3636.zip
cpython-73954040f6b9459e59803fd62af14c547a7b3636.tar.gz
cpython-73954040f6b9459e59803fd62af14c547a7b3636.tar.bz2
Issue #9116: Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message.
Diffstat (limited to 'Lib')
-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 07ec623..a58c577 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -48,9 +48,9 @@ class CAPITest(unittest.TestCase):
(out, err) = p.communicate()
self.assertEqual(out, b'')
# This used to cause an infinite loop.
- self.assertEqual(err.rstrip(),
+ self.assertTrue(err.rstrip().startswith(
b'Fatal Python error:'
- b' PyThreadState_Get: no current thread')
+ b' PyThreadState_Get: no current thread'))
def test_memoryview_from_NULL_pointer(self):
self.assertRaises(ValueError, _testcapi.make_memoryview_from_NULL_pointer)