Problems running coverage.py
Vijay Sankar
vijay_srr at yahoo.com
Mon Aug 30 02:46:08 EDT 2004
Hi,
I am using coverage.py to check the code coverage for some of my Python
scripts.
For a particular script which uses 'exit' calls, I am getting the following
error when I invoke the script with the -x option for coverage.
Error in sys.exitfunc:
Traceback (most recent call last):
File "D:\Python23\lib\atexit.py", line 20, in _run_exitfuncs
func(*targs, **kargs)
File "D:\Python23\Lib\site-packages\coverage.py", line 207, in save
cache = open(self.cache, 'wb')
TypeError: an integer is required
Looks like coverage.py is not able to record the coverage data on calling
exit.
Does anybody know how to solve this?
Thanks,
Vijay
More information about the Python-list
mailing list