Message154882
É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. |
|
Date |
User |
Action |
Args |
2012-03-04 08:54:23 | eli.bendersky | set | recipients:
+ eli.bendersky, effbot, scoder, ezio.melotti, eric.araujo, Arfrever, flox, python-dev |
2012-03-04 08:54:23 | eli.bendersky | set | messageid: <1330851263.22.0.0242055536536.issue14128@psf.upfronthosting.co.za> |
2012-03-04 08:53:22 | eli.bendersky | link | issue14128 messages |
2012-03-04 08:53:22 | eli.bendersky | create | |
|