[issue9315] The trace module lacks unit tests
Eli Bendersky
report at bugs.python.org
Mon Jul 26 06:49:25 CEST 2010
Eli Bendersky <eliben at gmail.com> added the comment:
The test failure of the py3k ports boils down to this: the 'runfunc' method of 'Trace' appears as a caller to '_traced_func_importing_caller'. In 2.7 it appears as 'Trace.runfunc', in py3k as just 'runfunc'.
This raises a question: should method names of classes come after the class names when appearing in a trace? Intuitively yes, but I want to investigate some more, probably by adding a couple more test cases where the traced functions are methods of objects rather than plain functions.
I hope to get to it later today. If not, later this week. In any case, I will address both this issue and your other comments and will submit a new patch.
Thanks for the quick review.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9315>
_______________________________________
More information about the Python-bugs-list
mailing list