]> granicus.if.org Git - python/commitdiff
fix naming
authorBenjamin Peterson <benjamin@python.org>
Fri, 3 Apr 2009 23:47:26 +0000 (23:47 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 3 Apr 2009 23:47:26 +0000 (23:47 +0000)
Lib/importlib/test/util.py

index aa5aab28a560fb45308eb6fe3de9d8bb1ccc5c31..d6804fbafc191ccc87909326e426e4354e341474 100644 (file)
@@ -11,10 +11,10 @@ def case_insensitive_tests(class_):
     file system."""
     if sys.platform not in ('win32', 'darwin', 'cygwin'):
         original_name = os.listdir('.')[0]
-        if name.upper() != name:
-            changed_name = name.upper()
+        if name.upper() != original_name:
+            changed_name = original_name.upper()
         else:
-            changed_name = name.lower()
+            changed_name = original_name.lower()
         if os.path.exists(changed_name):
             return class_
         return unittest.TestCase