Renamed locals to better reflect their meanings.

This commit is contained in:
Tim Peters 2004-08-08 16:37:37 +00:00
parent b6ecc165f2
commit 2a5f656d0c

View file

@ -15,16 +15,16 @@ class CompilerTest(unittest.TestCase):
testdir = os.path.dirname(test.test_support.__file__) testdir = os.path.dirname(test.test_support.__file__)
for dir in [libdir, testdir]: for dir in [libdir, testdir]:
for path in os.listdir(dir): for basename in os.listdir(dir):
if not path.endswith(".py"): if not basename.endswith(".py"):
continue continue
fpath = os.path.join(dir, path) path = os.path.join(dir, basename)
if test.test_support.verbose: if test.test_support.verbose:
print "compiling", fpath print "compiling", path
f = open(fpath) f = open(path)
buf = f.read() buf = f.read()
f.close() f.close()
compiler.compile(buf, path, "exec") compiler.compile(buf, basename, "exec")
def test_main(): def test_main():
test.test_support.requires("compiler") test.test_support.requires("compiler")