diff options
| author | Victor Stinner <vstinner@redhat.com> | 2018-11-21 22:53:44 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-21 22:53:44 (GMT) |
| commit | f1d002c1e094922b0f17a820f90ff102d68ab253 (patch) | |
| tree | 4f9b4d17b8465d0b9b2fbd1f8da4491011a8e00d /Lib/test/test_capi.py | |
| parent | bcda8f1d42a98d9022736dd52d855be8e220fe15 (diff) | |
| download | cpython-f1d002c1e094922b0f17a820f90ff102d68ab253.zip cpython-f1d002c1e094922b0f17a820f90ff102d68ab253.tar.gz cpython-f1d002c1e094922b0f17a820f90ff102d68ab253.tar.bz2 | |
bpo-35059: Enhance _PyObject_AssertFailed() (GH-10642)
Enhance _PyObject_AssertFailed()
* Exchange 'expr' and 'msg' parameters
* 'expr' and 'func' arguments can now be NULL
Diffstat (limited to 'Lib/test/test_capi.py')
| -rw-r--r-- | Lib/test/test_capi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 3c8c3f0..7c68b2c 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -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') |
