summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-03 23:47:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-03 23:47:26 (GMT)
commit309633db08489a30fb15967447f2502d5884818a (patch)
tree08822ef3c00f98678ad3e796a3672e991aaca206 /Lib/importlib
parent1e1d7d2b4f1fc9665522a29d11d1cd55848eb253 (diff)
downloadcpython-309633db08489a30fb15967447f2502d5884818a.zip
cpython-309633db08489a30fb15967447f2502d5884818a.tar.gz
cpython-309633db08489a30fb15967447f2502d5884818a.tar.bz2
fix naming
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/test/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/importlib/test/util.py b/Lib/importlib/test/util.py
index aa5aab2..d6804fb 100644
--- a/Lib/importlib/test/util.py
+++ b/Lib/importlib/test/util.py
@@ -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