mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Close #14032: fix incorrect variable reference in test_cmd_line_script
This commit is contained in:
parent
0780b6bc58
commit
10ac77d2d8
3 changed files with 5 additions and 1 deletions
|
@ -242,7 +242,7 @@ class CmdLineTest(unittest.TestCase):
|
|||
script_name = _make_test_script(pkg_dir, 'script')
|
||||
rc, out, err = assert_python_ok('-m', 'test_pkg.script')
|
||||
if verbose > 1:
|
||||
print(data)
|
||||
print(out)
|
||||
expected = "init_argv0==%r" % '-m'
|
||||
self.assertIn(expected.encode('utf-8'), out)
|
||||
self._check_output(script_name, rc, out,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue