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:
Victor Stinner 2018-11-21 23:53:44 +01:00 committed by GitHub
parent bcda8f1d42
commit f1d002c1e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 14 deletions

View file

@ -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')