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 matthewlmcclure
Recipients matthewlmcclure
Date 2009-01-14.04:16:05
SpamBayes Score 0.048362304
Marked as misclassified No
Message-id <1231906566.94.0.987113502153.issue4943@psf.upfronthosting.co.za>
In-reply-to
Content
The function trace.CoverageResults.write_results() can't write coverage
results on Windows for modules loaded by using the __path__ feature of
PEP 302.

For example, Bazaar uses the __path__ feature to load plugins from
directories specified by the BZR_PLUGIN_PATH environment variable.

The attached zip file contains a test case.  If it is unpacked so that
tracebug.py is in C:\, it will fail to produce a coverage results file
for C:\tracebug\dir2\hello.py.  Instead it will produce an empty file
named C:\tracebug\out\C .

The bug appears to be that trace.fullmodname() returns
C:.tracebug.dir2.hello .  Since the result contains a colon (:), it
can't be used as the filename of the output file produced by
trace.CoverageResults.write_results().
History
Date User Action Args
2009-01-14 04:16:07matthewlmccluresetrecipients: + matthewlmcclure
2009-01-14 04:16:06matthewlmccluresetmessageid: <1231906566.94.0.987113502153.issue4943@psf.upfronthosting.co.za>
2009-01-14 04:16:06matthewlmcclurelinkissue4943 messages
2009-01-14 04:16:05matthewlmcclurecreate