Message79826
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(). |
|
Date |
User |
Action |
Args |
2009-01-14 04:16:07 | matthewlmcclure | set | recipients:
+ matthewlmcclure |
2009-01-14 04:16:06 | matthewlmcclure | set | messageid: <1231906566.94.0.987113502153.issue4943@psf.upfronthosting.co.za> |
2009-01-14 04:16:06 | matthewlmcclure | link | issue4943 messages |
2009-01-14 04:16:05 | matthewlmcclure | create | |
|