mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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.
This commit is contained in:
parent
83b57355a8
commit
b6ecc165f2
1 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue