Test Coverage Analysis for Python scripts

Skip Montanaro skip at mojam.com
Tue Sep 19 15:33:21 CEST 2000

    Harald> AttributeError: 'string' object has no attribute 'startswith'
    Harald> lionsp093:tmp) python
    Harald> Python 1.5.2 (#1, Feb  1 2000, 16:32:16)  [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386
    Harald> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam

    Harald> What is missing?

2.0.  I've been running using the CVS repository for quite awhile.  I made
some mods to trace.py when developing (that's too kind a word) the test
coverage stuff.  I corrected the usage of startswith and endswith in the
trace.py module with 1.5-compatible stuff and updated it at


Let me know if you find any more 2.0 creeping features in that code.  I'll
try to retain 1.5 compatibility until the next time I forget...

Skip Montanaro (skip at mojam.com)

More information about the Python-list mailing list