summaryrefslogtreecommitdiff
path: root/Lib/test/test_compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_compiler.py')
-rw-r--r--Lib/test/test_compiler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py
index fc6fdf83d7..f11bad6c51 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")