homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, vstinner
Date 2010年11月06日.15:26:45
SpamBayes Score 2.5185236e-07
Marked as misclassified No
Message-id <1289057209.7.0.964126417973.issue10342@psf.upfronthosting.co.za>
In-reply-to
Content
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): $
History
Date User Action Args
2010年11月06日 15:26:50belopolskysetrecipients: + belopolsky, vstinner
2010年11月06日 15:26:49belopolskysetmessageid: <1289057209.7.0.964126417973.issue10342@psf.upfronthosting.co.za>
2010年11月06日 15:26:46belopolskylinkissue10342 messages
2010年11月06日 15:26:45belopolskycreate

AltStyle によって変換されたページ (->オリジナル) /