mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #23571: Fix test_capi
This commit is contained in:
parent
efde146b0c
commit
4f0efb0522
1 changed files with 2 additions and 2 deletions
|
|
@ -184,7 +184,7 @@ class CAPITest(unittest.TestCase):
|
|||
_testcapi.return_null_without_error()
|
||||
""")
|
||||
rc, out, err = assert_python_failure('-c', code)
|
||||
self.assertIn(b'_Py_CheckFunctionResult: Assertion', err)
|
||||
self.assertIn(b'_Py_CheckFunctionResult', err)
|
||||
else:
|
||||
with self.assertRaises(SystemError) as cm:
|
||||
_testcapi.return_null_without_error()
|
||||
|
|
@ -203,7 +203,7 @@ class CAPITest(unittest.TestCase):
|
|||
_testcapi.return_result_with_error()
|
||||
""")
|
||||
rc, out, err = assert_python_failure('-c', code)
|
||||
self.assertIn(b'_Py_CheckFunctionResult: Assertion', err)
|
||||
self.assertIn(b'_Py_CheckFunctionResult', err)
|
||||
else:
|
||||
with self.assertRaises(SystemError) as cm:
|
||||
_testcapi.return_result_with_error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue