summaryrefslogtreecommitdiff
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index a732f4f82f..b3600ebe99 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):