Walter Dörwald wrote: > Skip Montanaro wrote: > >> Walter> The Python code coverage tool available at >> Walter> http://coverage.livinglogic.de/ has been updated. (It runs >> the >> Walter> Python test suite once a month and makes the resulting code >> Walter> coverage info available as a web application). >> >> This looks very interesting, but the results seem a bit mystifying. For >> example, it says that Lib/Queue.py has 169 lines, none of which are >> coverable. It also shows that no lines were covered, which seems odd >> considering the fact the distribution does have a test_queue.py test >> module. > > > The same happened to string.py. The run from yesterday *does* include > string.py as a covered file, but only two lines were covered, which is > even stranger. > > Maybe the problem is the fact, that I'm using an old version of > trace.py? I'll updated trace.py and rerun the job. This doesn't help. The following assert in trace.py raises an AssertionError: assert filename.endswith('.py') I've added print statements to find_executable_linenos() and got the following: [...] /home/coverage/LivingLogic/Python/PythonCodeCoverage/jobs/python/dist/src/Lib/sre_compile.py /home/coverage/LivingLogic/Python/PythonCodeCoverage/jobs/python/dist/src/Lib/test/__init__.py <doctest _threading_local[7]> Traceback (most recent call last): File "../../../trace.py", line 790, in ? main() File "../../../trace.py", line 787, in main results.write_results(missing, summary=summary, coverdir=coverdir) File "../../../trace.py", line 301, in write_results lnotab = find_executable_linenos(filename) File "../../../trace.py", line 420, in find_executable_linenos assert filename.endswith('.py') AssertionError So what is <doctest _threading_local[7]>? Bye, Walter Dörwald
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4