[issue3821] trace module bug when using --missing
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3821] trace module bug when using --missing
Eli Bendersky eli...@gmail.com added the comment: TestCoverage.test_coverage_ignore fails when running in verbose mode (python regrtest.py -v test_trace, or directly python test_trace.py), because it attempts to compare stdout.getvalue() with the empty string, while verbose places output there. I will fix it as part of my merge with the larger test_trace.py for issue 9315. -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3821] trace module bug when using --missing
Georg Brandl ge...@python.org added the comment: Fixed the test cases and committed them in r83527. -- nosy: +georg.brandl status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3821] trace module bug when using --missing
R. David Murray rdmur...@bitdance.com added the comment: Brett Cannon apparently fixed this in r69111 for 3.1. I merged it to the 30-maint branch in r73030. It would be nice to add the tests, but they don't currently pass (test_coverage_ignore fails). I don't know if that's a test bug or a code bug, not being familiar with the trace module. -- nosy: +r.david.murray priority: critical - low resolution: - fixed stage: - patch review type: - behavior versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3821] trace module bug when using --missing
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This can be further simplified: line_increments = code.co_lnotab[1::2] Assigning to myself, I will try to add unit tests as well. the trace module is not tested at all... -- assignee: - amaury.forgeotdarc nosy: +amaury.forgeotdarc priority: - critical ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3821] trace module bug when using --missing
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Here is a simple test suite for the trace module, and two corrections to make it work. The test file is suitable for 2.6 (simply replace test.support with test.test_support) -- keywords: +needs review, patch Added file: http://bugs.python.org/file11460/trace.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3821] trace module bug when using --missing
New submission from Juan Javier [EMAIL PROTECTED]: I get the following exception: $ /opt/python3.0b2/bin/python3.0 -m trace -c -m run.py Traceback (most recent call last): File /opt/python3.0b2/lib/python3.0/runpy.py, line 121, in _run_module_as_main __main__, fname, loader, pkg_name) File /opt/python3.0b2/lib/python3.0/runpy.py, line 34, in _run_code exec(code, run_globals) File /opt/python3.0b2/lib/python3.0/trace.py, line 809, in module main() File /opt/python3.0b2/lib/python3.0/trace.py, line 806, in main results.write_results(missing, summary=summary, coverdir=coverdir) File /opt/python3.0b2/lib/python3.0/trace.py, line 303, in write_results lnotab = find_executable_linenos(filename) File /opt/python3.0b2/lib/python3.0/trace.py, line 428, in find_executable_linenos return find_lines(code, strs) File /opt/python3.0b2/lib/python3.0/trace.py, line 392, in find_lines linenos.update(find_lines(c, strs)) File /opt/python3.0b2/lib/python3.0/trace.py, line 386, in find_lines linenos = find_lines_from_code(code, strs) File /opt/python3.0b2/lib/python3.0/trace.py, line 370, in find_lines_from_code line_increments = [ord(c) for c in code.co_lnotab[1::2]] File /opt/python3.0b2/lib/python3.0/trace.py, line 370, in listcomp line_increments = [ord(c) for c in code.co_lnotab[1::2]] TypeError: ord() expected string of length 1, but int found I think that line 370 of trace.py should say: line_increments = [int(c) for c in code.co_lnotab[1::2]] instead of: line_increments = [ord(c) for c in code.co_lnotab[1::2]] -- components: Library (Lib) messages: 72879 nosy: jjdominguezm severity: normal status: open title: trace module bug when using --missing versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3821 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com