[issue9315] The trace module lacks unit tests

Eli Bendersky report at bugs.python.org
Sat Jul 31 07:24:39 CEST 2010


Eli Bendersky <eliben at gmail.com> added the comment:

Alexander,

Your issue9315.3.patch file doesn't contain the new test module at all.
 
I'm attaching the updated test_trace.py, fixing the problem with running via regrtest. The problem was very simple and not about the fake module - I fixed to runctx with globals() and vars() instead of run on tracer (since the called function is in my module). The fix is on line 218 (with a docstring fix on line 213). 

Now `py27 regrtest.py -v test_trace` passes cleanly. I apologize for not trying it before. I'll learn for the future :-)

----------
Added file: http://bugs.python.org/file18282/test_trace.py

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


More information about the Python-bugs-list mailing list