Kaydet (Commit) eaa0a22f authored tarafından Guido van Rossum's avatar Guido van Rossum

Disable code intended for PEP 277.

üst 340cbe74
...@@ -55,11 +55,12 @@ if not os.path.isfile(TESTFN_UNICODE) or \ ...@@ -55,11 +55,12 @@ if not os.path.isfile(TESTFN_UNICODE) or \
print "File doesn't exist after creating it" print "File doesn't exist after creating it"
path, base = os.path.split(os.path.abspath(TESTFN_ENCODED)) path, base = os.path.split(os.path.abspath(TESTFN_ENCODED))
if base not in os.listdir(path): # Until PEP 277 is adopted, this test is not portable
print "Filename did not appear in os.listdir()" # if base not in os.listdir(path):
path, base = os.path.split(os.path.abspath(TESTFN_UNICODE)) # print "Filename did not appear in os.listdir()"
if base not in os.listdir(path): # path, base = os.path.split(os.path.abspath(TESTFN_UNICODE))
print "Unicode filename did not appear in os.listdir()" # 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]): if os.path.abspath(TESTFN_ENCODED) != os.path.abspath(glob.glob(TESTFN_ENCODED)[0]):
print "Filename did not appear in glob.glob()" print "Filename did not appear in glob.glob()"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment