From 7ea68aee3d3795840c990cf66e07a0851546cbd0 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 11 Sep 2020 19:06:52 -0400 Subject: [PATCH 1/2] bpo-41731: Make test_cmd_line_script pass with -vv Argument script_exec_args is usually an absolute file name, but twice has form ['-m', 'module_name']. --- Lib/test/test_cmd_line_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py index 6c8c28f40b564ba..f10ab40017a338b 100644 --- a/Lib/test/test_cmd_line_script.py +++ b/Lib/test/test_cmd_line_script.py @@ -145,7 +145,7 @@ def _check_import_error(self, script_exec_args, expected_msg, *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) From 2bad14b63081b24c0c1daac82a1e30705603c2d7 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 11 Sep 2020 19:12:56 -0400 Subject: [PATCH 2/2] Blurb. --- Misc/NEWS.d/next/Tests/2020-09-11-19-12-31.bpo-41731.Ivxh4U.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2020-09-11-19-12-31.bpo-41731.Ivxh4U.rst diff --git a/Misc/NEWS.d/next/Tests/2020-09-11-19-12-31.bpo-41731.Ivxh4U.rst b/Misc/NEWS.d/next/Tests/2020-09-11-19-12-31.bpo-41731.Ivxh4U.rst new file mode 100644 index 000000000000000..e368a60f77b1ea7 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2020-09-11-19-12-31.bpo-41731.Ivxh4U.rst @@ -0,0 +1 @@ +Make test_cmd_line_script pass with option '-vv'.