[Python-checkins] python/dist/src/Lib/test test_compiler.py, 1.2,
1.3
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Sun Aug 8 18:32:57 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12060/Lib/test
Modified Files:
test_compiler.py
Log Message:
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.
Index: test_compiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_compiler.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_compiler.py 8 Aug 2004 01:05:14 -0000 1.2
--- test_compiler.py 8 Aug 2004 16:32:54 -0000 1.3
***************
*** 19,23 ****
if not path.endswith(".py"):
continue
! f = open(os.path.join(dir, path), "r")
buf = f.read()
f.close()
--- 19,26 ----
if not path.endswith(".py"):
continue
! fpath = os.path.join(dir, path)
! if test.test_support.verbose:
! print "compiling", fpath
! f = open(fpath)
buf = f.read()
f.close()
More information about the Python-checkins
mailing list