mirror of
https://github.com/python/cpython.git
synced 2024-11-29 04:44:13 +08:00
os.path.listdir -> os.listdir
This commit is contained in:
parent
8f76b495ec
commit
8d55a9e8dd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user