mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
bpo-9263: _Py_NegativeRefcount() use _PyObject_AssertFailed() (GH-10109)
_Py_NegativeRefcount() now uses _PyObject_AssertFailed() to dump the object to help debugging.
This commit is contained in:
parent
c89a932714
commit
3ec9af75f6
2 changed files with 8 additions and 10 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue