[Python-checkins] cpython: Issue #23571: Fix test_capi

victor.stinner python-checkins at python.org
Sat Mar 21 17:25:08 CET 2015


https://hg.python.org/cpython/rev/970f33dff5ca
changeset:   95116:970f33dff5ca
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Mar 21 17:24:50 2015 +0100
summary:
  Issue #23571: Fix test_capi

files:
  Lib/test/test_capi.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -184,7 +184,7 @@
                     _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 @@
                     _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()

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list