Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
32f4e6e9
Commit
32f4e6e9
authored
Nov 23, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#16309: avoid using deprecated method and turn docstring in a comment.
parent
588090ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Lib/test/test_cmd_line.py
Lib/test/test_cmd_line.py
+6
-6
No files found.
Lib/test/test_cmd_line.py
View file @
32f4e6e9
...
...
@@ -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
.
assertEqual
s
(
out1
,
out2
)
self
.
assertEqual
(
out1
,
out2
)
def
test_displayhook_unencodable
(
self
):
for
encoding
in
(
'ascii'
,
'latin-1'
,
'utf-8'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment