diff --git a/Lib/importlib/test/util.py b/Lib/importlib/test/util.py index d6804fbafc1..3a92684df7b 100644 --- a/Lib/importlib/test/util.py +++ b/Lib/importlib/test/util.py @@ -11,7 +11,7 @@ def case_insensitive_tests(class_): file system.""" if sys.platform not in ('win32', 'darwin', 'cygwin'): original_name = os.listdir('.')[0] - if name.upper() != original_name: + if orignal_name.upper() != original_name: changed_name = original_name.upper() else: changed_name = original_name.lower()