diff options
-rw-r--r-- | Lib/test/test_compiler.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index f11bad6..0e6d1a9 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -15,16 +15,16 @@ class CompilerTest(unittest.TestCase): testdir = os.path.dirname(test.test_support.__file__) for dir in [libdir, testdir]: - for path in os.listdir(dir): - if not path.endswith(".py"): + for basename in os.listdir(dir): + if not basename.endswith(".py"): continue - fpath = os.path.join(dir, path) + path = os.path.join(dir, basename) if test.test_support.verbose: - print "compiling", fpath - f = open(fpath) + print "compiling", path + f = open(path) buf = f.read() f.close() - compiler.compile(buf, path, "exec") + compiler.compile(buf, basename, "exec") def test_main(): test.test_support.requires("compiler") |