diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-22 23:51:20 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-22 23:51:20 (GMT) |
commit | 32f4e6e991c25713a6dcb181f7c9b8c062e706ef (patch) | |
tree | cc828f9d8bc9e55e0015a37a8e1fdace2423f6af /Lib/test/test_cmd_line.py | |
parent | 588090ff39da300e058848a8196d3c81c91c1ea7 (diff) | |
download | cpython-32f4e6e991c25713a6dcb181f7c9b8c062e706ef.zip cpython-32f4e6e991c25713a6dcb181f7c9b8c062e706ef.tar.gz cpython-32f4e6e991c25713a6dcb181f7c9b8c062e706ef.tar.bz2 |
#16309: avoid using deprecated method and turn docstring in a comment.
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r-- | Lib/test/test_cmd_line.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index a4b2508..aa99c15 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -218,11 +218,11 @@ class CmdLineTest(unittest.TestCase): self.assertIn(path2.encode('ascii'), out) def test_empty_PYTHONPATH_issue16309(self): - """On Posix, it is documented that setting PATH to the - empty string is equivalent to not setting PATH at all, - which is an exception to the rule that in a string like - "/bin::/usr/bin" the empty string in the middle gets - interpreted as '.'""" + # On Posix, it is documented that setting PATH to the + # empty string is equivalent to not setting PATH at all, + # which is an exception to the rule that in a string like + # "/bin::/usr/bin" the empty string in the middle gets + # interpreted as '.' code = """if 1: import sys path = ":".join(sys.path) @@ -232,7 +232,7 @@ class CmdLineTest(unittest.TestCase): rc2, out2, err2 = assert_python_ok('-c', code) # regarding to Posix specification, outputs should be equal # for empty and unset PYTHONPATH - self.assertEquals(out1, out2) + self.assertEqual(out1, out2) def test_displayhook_unencodable(self): for encoding in ('ascii', 'latin-1', 'utf-8'): |