Eli Bendersky <eli...@gmail.com> added the comment:

Éric,

The tests *do* use import_fresh_module, actually. Moreover, while 
monkeypatching exists it's rather limited (just setting the module name for 
test_main).

The biggest problem with these tests is that they're based on doctest, which 
wasn't designed to be too flexible for this purpose. All new tests I'm adding 
use the unittest infrastructure in a saner way. Rewriting all existing tests 
from doctest to unittest, while a worthy goal, would be probably too time 
consuming at this point.

If you have any specific suggestions for improvement, please open a separate 
issue.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14128>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to