Disable code intended for PEP 277.

This commit is contained in:
Guido van Rossum 2002-01-15 21:25:51 +00:00
parent 340cbe74b9
commit eaa0a22f43
1 changed files with 6 additions and 5 deletions

View File

@ -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()"