diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-20 13:02:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-20 13:02:33 (GMT) |
commit | 268225f154dbd05f1967129d78609cc25c791e3f (patch) | |
tree | 2c7e94f9fb992009354c4177bdf31e6933a58a55 /Lib/test | |
parent | 57d516bd6bfd1ae9a316c376bc72a96c4fa40c9f (diff) | |
download | cpython-268225f154dbd05f1967129d78609cc25c791e3f.zip cpython-268225f154dbd05f1967129d78609cc25c791e3f.tar.gz cpython-268225f154dbd05f1967129d78609cc25c791e3f.tar.bz2 |
Issue #23715: Fix test_script_helper
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | 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 index 74333c9..7f5d654 100755 --- a/Lib/test/test_script_helper.py +++ b/Lib/test/test_script_helper.py @@ -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.') |