mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-35059: Enhance _PyObject_AssertFailed() (GH-10642)
Enhance _PyObject_AssertFailed() * Exchange 'expr' and 'msg' parameters * 'expr' and 'func' arguments can now be NULL
This commit is contained in:
parent
bcda8f1d42
commit
f1d002c1e0
3 changed files with 20 additions and 14 deletions
|
@ -330,7 +330,7 @@ class CAPITest(unittest.TestCase):
|
|||
rc, out, err = assert_python_failure('-c', code)
|
||||
self.assertRegex(err,
|
||||
br'_testcapimodule\.c:[0-9]+: '
|
||||
br'_Py_NegativeRefcount: Assertion ".*" failed; '
|
||||
br'_Py_NegativeRefcount: Assertion failed: '
|
||||
br'object has negative ref count')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue