From 4f0efb0522bb8230135e8de4f6eb91f2488ea537 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 21 Mar 2015 17:24:50 +0100 Subject: Issue #23571: Fix test_capi --- Lib/test/test_capi.py | 4 ++-- 1 file 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() -- cgit v0.12