Message120626
Please run attached zip archive as a python script. Note that the problem is not specific for using __main__.py - any module that comes from a zip archive or loaded by a custom loader would show the same bug.
$ unzip -l test.zip
Archive: test.zip
Length Date Time Name
-------- ---- ---- ----
79 10-24-08 18:26 __main__.py
-------- -------
79 1 file
$ $ cat __main__.py
from trace import Trace
def traced(flag):
if flag:
return 1
else:
return 2
tracer = Trace()
tracer.runfunc(traced, False)
results = tracer.results()
results.write_results(coverdir='.')
$ python testtrace.zip
--- modulename: __main__, funcname: traced
Not printing coverage data for 'testtrace.zip/__main__.py': [Errno 20] Not a directory: 'testtrace.zip/__main__.py'
__main__.py(4): __main__.py(7): $ |
|
Date |
User |
Action |
Args |
2010-11-06 15:26:50 | belopolsky | set | recipients:
+ belopolsky, vstinner |
2010-11-06 15:26:49 | belopolsky | set | messageid: <1289057209.7.0.964126417973.issue10342@psf.upfronthosting.co.za> |
2010-11-06 15:26:46 | belopolsky | link | issue10342 messages |
2010-11-06 15:26:45 | belopolsky | create | |
|