diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-03 23:47:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-03 23:47:26 (GMT) |
commit | 309633db08489a30fb15967447f2502d5884818a (patch) | |
tree | 08822ef3c00f98678ad3e796a3672e991aaca206 /Lib/importlib | |
parent | 1e1d7d2b4f1fc9665522a29d11d1cd55848eb253 (diff) | |
download | cpython-309633db08489a30fb15967447f2502d5884818a.zip cpython-309633db08489a30fb15967447f2502d5884818a.tar.gz cpython-309633db08489a30fb15967447f2502d5884818a.tar.bz2 |
fix naming
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/test/util.py | 6 |
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 |