]> granicus.if.org Git - python/commitdiff
Disable code intended for PEP 277.
authorGuido van Rossum <guido@python.org>
Tue, 15 Jan 2002 21:25:51 +0000 (21:25 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 15 Jan 2002 21:25:51 +0000 (21:25 +0000)
Lib/test/test_unicode_file.py

index 6cd965e83c8574d9e921dbc45e29381151914eb2..e46e1a9e37d2c8cbec242f38ce8b42d9226ce94a 100644 (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()"