• Jeremy Hylton's avatar
    Fix several bugs and add two features. · 66a7e57c
    Jeremy Hylton yazdı
    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)
    66a7e57c
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
setup.py Loading commit data...