[issue9317] Incorrect coverage file from trace test_pickle.py

Alexander Belopolsky report at bugs.python.org
Wed Jul 21 05:25:00 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Does the trace module even work in 3.x?

I created attached trivial traceme.py file.

With python 2.7, I get 
$ python2 -m trace  -c -s traceme.py
lines   cov%   module   (path)
    1   100%   threading   (Lib/threading.py)
    6   100%   traceme   (traceme.py)

The first entry is clearly spurious, but traceme looks right.  With py3k, however, I get

$ python3 -m trace  -c -s traceme.py
lines   cov%   module   (path)
    1   100%   threading   (Lib/threading.py)

No traceme line at all.

----------
Added file: http://bugs.python.org/file18097/traceme.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9317>
_______________________________________


More information about the Python-bugs-list mailing list