summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cmd_line_script.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2020-09-12 06:25:36 (GMT)
committerGitHub <noreply@github.com>2020-09-12 06:25:36 (GMT)
commit7e711ead26fea6465e0ef2e3b8880b57ba8fc129 (patch)
tree0f649a341441ce1e1c7810902a24ab88fe878c42 /Lib/test/test_cmd_line_script.py
parent31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5 (diff)
downloadcpython-7e711ead26fea6465e0ef2e3b8880b57ba8fc129.zip
cpython-7e711ead26fea6465e0ef2e3b8880b57ba8fc129.tar.gz
cpython-7e711ead26fea6465e0ef2e3b8880b57ba8fc129.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'].
Diffstat (limited to 'Lib/test/test_cmd_line_script.py')
-rw-r--r--Lib/test/test_cmd_line_script.py2
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 6c8c28f..f10ab40 100644
--- a/Lib/test/test_cmd_line_script.py
+++ b/Lib/test/test_cmd_line_script.py
@@ -145,7 +145,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)