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
29256f96
Commit
29256f96
authored
Jan 15, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable code intended for PEP 277.
parent
5011e1e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Lib/test/test_unicode_file.py
Lib/test/test_unicode_file.py
+6
-5
No files found.
Lib/test/test_unicode_file.py
View file @
29256f96
...
...
@@ -55,11 +55,12 @@ if not os.path.isfile(TESTFN_UNICODE) or \
print
"File doesn't exist after creating it"
path
,
base
=
os
.
path
.
split
(
os
.
path
.
abspath
(
TESTFN_ENCODED
))
if
base
not
in
os
.
listdir
(
path
):
print
"Filename did not appear in os.listdir()"
path
,
base
=
os
.
path
.
split
(
os
.
path
.
abspath
(
TESTFN_UNICODE
))
if
base
not
in
os
.
listdir
(
path
):
print
"Unicode filename did not appear in os.listdir()"
# Until PEP 277 is adopted, this test is not portable
# if base not in os.listdir(path):
# print "Filename did not appear in os.listdir()"
# path, base = os.path.split(os.path.abspath(TESTFN_UNICODE))
# if base not in os.listdir(path):
# print "Unicode filename did not appear in os.listdir()"
if
os
.
path
.
abspath
(
TESTFN_ENCODED
)
!=
os
.
path
.
abspath
(
glob
.
glob
(
TESTFN_ENCODED
)[
0
]):
print
"Filename did not appear in glob.glob()"
...
...
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