summaryrefslogtreecommitdiff
path: root/Tools/scripts/trace.py
AgeCommit message (Collapse)AuthorLines
2001-11-28Checking in Zooko's version per SF patch #476866, plus my changes toGuido van Rossum-388/+422
the usage docs: (a) align properly, (b) explain properly.
2001-10-08Replace all instances of err.strerror with err.Jeremy Hylton-6/+6
The strerror attribute contained only partial information about the exception and produced some very confusing error messages. By passing err (the exception object itself) and letting it convert itself to a string, the error messages are better.
2001-05-08Fix several bugs and add two features.Jeremy Hylton-34/+88
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)
2001-01-17Whitespace normalization.Tim Peters-5/+5
2000-09-18satisfy the tabnannyJeremy Hylton-298/+297
2000-08-03Python code coverage tool by Skip Montanaro and Andrew DalkeJeremy Hylton-0/+661