diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-10-26 00:12:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 00:12:34 (GMT) |
commit | 3ec9af75f6825a32f369ee182a388c365db241b6 (patch) | |
tree | 24c62eb4ca7b34034abb7eb5b1a0eff083f41b99 /Lib/test/test_capi.py | |
parent | c89a93271447ec65e83a1dc7605e62dbf272cafd (diff) | |
download | cpython-3ec9af75f6825a32f369ee182a388c365db241b6.zip cpython-3ec9af75f6825a32f369ee182a388c365db241b6.tar.gz cpython-3ec9af75f6825a32f369ee182a388c365db241b6.tar.bz2 |
bpo-9263: _Py_NegativeRefcount() use _PyObject_AssertFailed() (GH-10109)
_Py_NegativeRefcount() now uses _PyObject_AssertFailed() to dump the
object to help debugging.
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r-- | Lib/test/test_capi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index a732f4f..b3600eb 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -329,8 +329,9 @@ class CAPITest(unittest.TestCase): """) rc, out, err = assert_python_failure('-c', code) self.assertRegex(err, - br'_testcapimodule\.c:[0-9]+ object at .* ' - br'has negative ref count', err) + br'_testcapimodule\.c:[0-9]+: ' + br'_Py_NegativeRefcount: Assertion ".*" failed; ' + br'object has negative ref count') class TestPendingCalls(unittest.TestCase): |