From b6ecc165f289b488f729bc23fb95c75cc6a36612 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 8 Aug 2004 16:32:54 +0000 Subject: In verbose mode, display the name of each file before trying to compile it. Else when this fails, there's no way to tell which file it was chewing on. --- Lib/test/test_compiler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index fc6fdf8..f11bad6 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -18,7 +18,10 @@ class CompilerTest(unittest.TestCase): for path in os.listdir(dir): if not path.endswith(".py"): continue - f = open(os.path.join(dir, path), "r") + fpath = os.path.join(dir, path) + if test.test_support.verbose: + print "compiling", fpath + f = open(fpath) buf = f.read() f.close() compiler.compile(buf, path, "exec") -- cgit v0.12