mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #9116: Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message.
This commit is contained in:
parent
363712349a
commit
73954040f6
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue