os.path.listdir -> os.listdir

This commit is contained in:
Benjamin Peterson 2009-04-03 22:23:43 +00:00
parent 8f76b495ec
commit 8d55a9e8dd
1 changed files with 1 additions and 1 deletions

View 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: