From: Victor Stinner Date: Sat, 21 Mar 2015 16:24:50 +0000 (+0100) Subject: Issue #23571: Fix test_capi X-Git-Tag: v3.5.0a3~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f0efb0522bb8230135e8de4f6eb91f2488ea537;p=python Issue #23571: Fix test_capi --- diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index ef6e94b114..fc48e386c1 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()