[Python-checkins] cpython: Issue #23715: Fix test_script_helper

victor.stinner python-checkins at python.org
Fri Mar 20 14:02:51 CET 2015


https://hg.python.org/cpython/rev/ed8c2a4a6d3d
changeset:   95096:ed8c2a4a6d3d
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Mar 20 14:02:33 2015 +0100
summary:
  Issue #23715: Fix test_script_helper

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


diff --git a/Lib/test/test_script_helper.py b/Lib/test/test_script_helper.py
--- a/Lib/test/test_script_helper.py
+++ b/Lib/test/test_script_helper.py
@@ -22,14 +22,14 @@
         with self.assertRaises(AssertionError) as error_context:
             script_helper._assert_python(True, '-c', 'sys.exit(0)')
         error_msg = str(error_context.exception)
-        self.assertIn('command line was:', error_msg)
+        self.assertIn('command line:', error_msg)
         self.assertIn('sys.exit(0)', error_msg, msg='unexpected command line')
 
     def test_assert_python_raises_expect_failure(self):
         with self.assertRaises(AssertionError) as error_context:
             script_helper._assert_python(False, '-c', 'import sys; sys.exit(0)')
         error_msg = str(error_context.exception)
-        self.assertIn('Process return code is 0,', error_msg)
+        self.assertIn('Process return code is 0\n', error_msg)
         self.assertIn('import sys; sys.exit(0)', error_msg,
                       msg='unexpected command line.')
 

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


More information about the Python-checkins mailing list