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.0483623
Marked as misclassified No
Message-id <>
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 is in C:\, it will fail to produce a coverage results file
for C:\tracebug\dir2\  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
Date User Action Args
2009-01-14 04:16:07matthewlmccluresetrecipients: + matthewlmcclure
2009-01-14 04:16:06matthewlmccluresetmessageid: <>
2009-01-14 04:16:06matthewlmcclurelinkissue4943 messages
2009-01-14 04:16:05matthewlmcclurecreate