summaryrefslogtreecommitdiff
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-21 23:53:44 +0100
committerGitHub <noreply@github.com>2018-11-21 23:53:44 +0100
commitf1d002c1e094922b0f17a820f90ff102d68ab253 (patch)
tree4f9b4d17b8465d0b9b2fbd1f8da4491011a8e00d /Lib/test/test_capi.py
parentbcda8f1d42a98d9022736dd52d855be8e220fe15 (diff)
downloadcpython-git-f1d002c1e094922b0f17a820f90ff102d68ab253.tar.gz
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 3c8c3f02bf..7c68b2c0fc 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')