diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-12 06:45:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 06:45:34 (GMT) |
commit | 34e3c7592be70f652c293eb179593bf2928adeb4 (patch) | |
tree | a61c3fe943d0f9bd34a62238c261486a7c1deecd /Lib | |
parent | c2577b9e0e2f8652f079b4ac473347c63f15e25c (diff) | |
download | cpython-34e3c7592be70f652c293eb179593bf2928adeb4.zip cpython-34e3c7592be70f652c293eb179593bf2928adeb4.tar.gz cpython-34e3c7592be70f652c293eb179593bf2928adeb4.tar.bz2 |
bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)
Argument script_exec_args is usually an absolute file name,
but twice has form ['-m', 'module_name'].
(cherry picked from commit 7e711ead26fea6465e0ef2e3b8880b57ba8fc129)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_cmd_line_script.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py index 15fca7b..7a3707d 100644 --- a/Lib/test/test_cmd_line_script.py +++ b/Lib/test/test_cmd_line_script.py @@ -143,7 +143,7 @@ class CmdLineTest(unittest.TestCase): *run_args, __isolated=False, __cwd=cwd, **env_vars ) if verbose > 1: - print('Output from test script %r:' % script_exec_args) + print(f'Output from test script {script_exec_args!r:}') print(repr(err)) print('Expected output: %r' % expected_msg) self.assertIn(expected_msg.encode('utf-8'), err) |