[Python-Dev] Code coverage doesn't show .py stats
Walter Dörwald
walter at livinglogic.de
Thu Nov 4 14:19:16 CET 2010
On 03.11.10 19:21, anatoly techtonik wrote:
> Hi,
>
> Python code coverage doesn't include any .py files. What happened?
> http://coverage.livinglogic.de/
>
> Did it work before?
It did, however currently the logfile
http://coverage.livinglogic.de/testlog.txt
shows the following exception:
Traceback (most recent call last):
File "Lib/test/regrtest.py", line 1500, in <module>
main()
File "Lib/test/regrtest.py", line 696, in main
r.write_results(show_missing=True, summary=True, coverdir=coverdir)
File "/home/coverage/python/Lib/trace.py", line 319, in write_results
lnotab, count)
File "/home/coverage/python/Lib/trace.py", line 369, in write_results_file
outfile.write(line.expandtabs(8))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe4' in
position 30: ordinal not in range(128)
BTW, this is the py3k branch (i.e.
http://svn.python.org/snapshots/python3k.tar.bz2)
It seems the trace module has a problem with unicode.
Servus,
Walter
More information about the Python-Dev
mailing list