]> granicus.if.org Git - python/commitdiff
os.path.listdir -> os.listdir
authorBenjamin Peterson <benjamin@python.org>
Fri, 3 Apr 2009 22:23:43 +0000 (22:23 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 3 Apr 2009 22:23:43 +0000 (22:23 +0000)
Lib/importlib/test/util.py

index 0fe31a1e20ac1155af4e0e62cd63effa05316c1d..aa5aab28a560fb45308eb6fe3de9d8bb1ccc5c31 100644 (file)
@@ -10,7 +10,7 @@ def case_insensitive_tests(class_):
     """Class decorator that nullifies tests that require a case-insensitive
     file system."""
     if sys.platform not in ('win32', 'darwin', 'cygwin'):
-        original_name = os.path.listdir('.')[0]
+        original_name = os.listdir('.')[0]
         if name.upper() != name:
             changed_name = name.upper()
         else: