]> granicus.if.org Git - python/commitdiff
Close #14032: fix incorrect variable reference in test_cmd_line_script
authorNick Coghlan <ncoghlan@gmail.com>
Thu, 19 Apr 2012 12:19:36 +0000 (22:19 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Thu, 19 Apr 2012 12:19:36 +0000 (22:19 +1000)
Lib/test/test_cmd_line_script.py
Misc/ACKS
Misc/NEWS

index 921c5f3df41960538c946a7c267e84ee35a8f49b..4d51ab624236072f2a1328a3a8a488779e9db9a2 100644 (file)
@@ -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,
index 625689db833d19fc04995fd24c35493bd7f8000e..6eedfc32a71cbe6531463da695e9f928850f7800 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1026,6 +1026,7 @@ Robert Xiao
 Florent Xicluna
 Hirokazu Yamamoto
 Ka-Ping Yee
+Jason Yeo
 Bob Yodlowski
 Danny Yoo
 George Yoshida
index 44cb4a10faa44494f2507161b2844b7e028c6267..b012d28467a1c719e2d57c78185f21f08e2d37df 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -152,6 +152,9 @@ Extension Modules
 Tests
 -----
 
+- Issue #14032: Fix incorrect variable name in test_cmd_line_script debugging
+  message (Patch by Jason Yeo)
+
 - Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing
   a test failure in test_ssl.