When running trace, I get a a lot of lines like: filename: /usr/lib/python2.7/cmd.py, modulename: cmd, funcname: Cmd That is to say system modules are shown in the trace whereas I only want to see the code I am working on Ive tried python2.7 -m trace --listfuncs tt.py --ignore-dir '/usr/lib' > const-dir.trace python2.7 -m trace --listfuncs --ignore-module cmd tt.py > const.trace python2.7 -m trace --ignore-module --listfuncs cmd tt.py > const.trace
(When replying by email to an email, please remove any quotation, except possibly for a specific line or two. The message already appears about yours on the tracker.) Good. It will take about a week for the * to appear after your name. As the diff is posted, hg could not find trace.py to patch. Changing --- Lib/trace.py Fri Feb 24 15:58:24 2012 +++ Lib/trace.py Wed Oct 30 16:35:49 2013 --- a/Lib/trace.py Fri Feb 24 15:58:24 2012 +++ b/Lib/trace.py Wed Oct 30 16:35:49 2013 fixed that problem, and 3/4 chunks apply to 3.4 (map has already been replaced). Running test/test_trace.py (with repository 3.4) gives the same errors as without the patch. The changes look sensible. However, a test is needed that fails without the patch and passes with it. Can you write one that could be added to the test file, or at least pieces of a test and a manual test procedure?