summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-05-08 04:20:52 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-05-08 04:20:52 (GMT)
commit66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c (patch)
tree2afdb975f12a07779e731604f1af148eaa1fb5a5 /setup.py
parent9c90105cb000dbda5dead81732322a27b62319bb (diff)
downloadcpython-66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c.zip
cpython-66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c.tar.gz
cpython-66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c.tar.bz2
Fix several bugs and add two features.
Assertion error message had typos in arguments to string format. .cover files for modules in packages are now put in the right place. The code that generate .cover files seemed to prepend a "./" to many absolute paths, causing them to fail. The code now checks explicitly for absolute paths and leaves them alone. In trace/coverage code, recover from case where module has no __name__ attribute, when e.g. it is executed by PyRun_String(). In this case, assign modulename to None and hope for the best. There isn't anywhere to write out coverage data for this code anyway. Also, replace several sys.stderr.writes with print >> sys.stderr. New features: -C/--coverdir dir: Generate .cover files in specified directory instead of in the directory where the .py file is. -s: Print a short summary of files coverred (# lines, % coverage, name)
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions