diff options
author | Guido van Rossum <guido@python.org> | 2002-01-15 21:25:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-01-15 21:25:51 (GMT) |
commit | eaa0a22f433fd8c2774976a4482035491a64d6f2 (patch) | |
tree | f67e8bfc8f8e40d7fe15b11058424bf028b791ef /Lib | |
parent | 340cbe74b9e26823cdc7e7803e5fbdb9e6946f6e (diff) | |
download | cpython-eaa0a22f433fd8c2774976a4482035491a64d6f2.zip cpython-eaa0a22f433fd8c2774976a4482035491a64d6f2.tar.gz cpython-eaa0a22f433fd8c2774976a4482035491a64d6f2.tar.bz2 |
Disable code intended for PEP 277.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicode_file.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/test/test_unicode_file.py b/Lib/test/test_unicode_file.py index 6cd965e..e46e1a9 100644 --- a/Lib/test/test_unicode_file.py +++ b/Lib/test/test_unicode_file.py @@ -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()" |