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'].
This commit is contained in:
Terry Jan Reedy 2020-09-12 02:25:36 -04:00 committed by GitHub
parent 31c9828ec0
commit 7e711ead26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -0,0 +1 @@
Make test_cmd_line_script pass with option '-vv'.