mirror of
https://github.com/python/cpython.git
synced 2025-07-22 02:35:22 +00:00
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 7e711ead26
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
c2577b9e0e
commit
34e3c7592b
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue