[issue31908] trace module cli does not write cover files
Michael Selik
report at bugs.python.org
Tue Oct 31 18:46:10 EDT 2017
Michael Selik <michael.selik at gmail.com> added the comment:
The problem appears to be a mistake in commit f026dae130bf6f9015c4b212f16852ba4a3f3dec
https://github.com/python/cpython/commit/f026dae130bf6f9015c4b212f16852ba4a3f3dec
This made the writing of cover files conditional on ``show_missing`` which is the option to mark lines which weren't executed with several angle brackets ">>>>>".
https://github.com/python/cpython/blob/3.5/Lib/trace.py#L326
mike on mac in ~/
$ python -m trace --count foo.py
hello
mike on mac in ~/
$ ls *.cover
ls: *.cover: No such file or directory
mike on mac in ~/
$ python -m trace --count -m foo.py
hello
mike on mac in ~/
$ ls *.cover
-rw-r--r-- 1 mike staff 22B Oct 31 15:40 foo.cover
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31908>
_______________________________________
More information about the Python-bugs-list
mailing list