summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-21 16:24:50 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-21 16:24:50 (GMT)
commit4f0efb0522bb8230135e8de4f6eb91f2488ea537 (patch)
treea636b36c032c73a5da6ba07aa37e9db527db6056 /Lib/test/test_capi.py
parentefde146b0c42f2643f96d00896c99a90d501fb69 (diff)
downloadcpython-4f0efb0522bb8230135e8de4f6eb91f2488ea537.zip
cpython-4f0efb0522bb8230135e8de4f6eb91f2488ea537.tar.gz
cpython-4f0efb0522bb8230135e8de4f6eb91f2488ea537.tar.bz2
Issue #23571: Fix test_capi
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index ef6e94b..fc48e38 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -184,7 +184,7 @@ class CAPITest(unittest.TestCase):
_testcapi.return_null_without_error()
""")
rc, out, err = assert_python_failure('-c', code)
- self.assertIn(b'_Py_CheckFunctionResult: Assertion', err)
+ self.assertIn(b'_Py_CheckFunctionResult', err)
else:
with self.assertRaises(SystemError) as cm:
_testcapi.return_null_without_error()
@@ -203,7 +203,7 @@ class CAPITest(unittest.TestCase):
_testcapi.return_result_with_error()
""")
rc, out, err = assert_python_failure('-c', code)
- self.assertIn(b'_Py_CheckFunctionResult: Assertion', err)
+ self.assertIn(b'_Py_CheckFunctionResult', err)
else:
with self.assertRaises(SystemError) as cm:
_testcapi.return_result_with_error()