Skip to content

Commit 7e711ea

Browse files
authored
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'].
1 parent 31c9828 commit 7e711ea

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_cmd_line_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _check_import_error(self, script_exec_args, expected_msg,
145145
*run_args, __isolated=False, __cwd=cwd, **env_vars
146146
)
147147
if verbose > 1:
148-
print('Output from test script %r:' % script_exec_args)
148+
print(f'Output from test script {script_exec_args!r:}')
149149
print(repr(err))
150150
print('Expected output: %r' % expected_msg)
151151
self.assertIn(expected_msg.encode('utf-8'), err)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make test_cmd_line_script pass with option '-vv'.

0 commit comments

Comments
 (0)