]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23715: Fix test_script_helper
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 20 Mar 2015 13:02:33 +0000 (14:02 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 20 Mar 2015 13:02:33 +0000 (14:02 +0100)
Lib/test/test_script_helper.py

index 74333c9db8fc5d7703440083ea61ba7998bb4ea3..7f5d65456ce8f792010f568b7409be3e410c83bd 100755 (executable)
@@ -22,14 +22,14 @@ class TestScriptHelper(unittest.TestCase):
         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.')