[issue9315] The trace module lacks unit tests

Eli Bendersky report at bugs.python.org
Fri Aug 6 09:03:28 CEST 2010


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

I'm attaching a new patch for unit-testing of trace.py. Changes:

1. Fixed the problems that caused failures when run through regrtest
2. Added the test class from issue 3821
3. Removed the fake module creation, replacing it with a directory named 'tracedmodules' in Lib/test where a test module resides. If you can think of a better name, please let me know.

As far as I see, the tests now run correctly both stand-alone and as part of 'python regrtest.py'. I have also fixed all whitespace issues. The patch was created vs. latest SVN checkout from the 2.7 maintenance branch.

----------
Added file: http://bugs.python.org/file18413/issue9315.27-maint.5.patch

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


More information about the Python-bugs-list mailing list