This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients Arfrever, effbot, eli.bendersky, eric.araujo, ezio.melotti, flox, python-dev, scoder
Date 2012-03-04.08:54:26
SpamBayes Score 0.00012468251
Marked as misclassified No
Message-id <1330851327.55.0.318473674255.issue14128@psf.upfronthosting.co.za>
In-reply-to
Content
É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.
History
Date User Action Args
2012-03-04 08:57:01eli.benderskyunlinkissue14128 messages
2012-03-04 08:55:27eli.benderskysetrecipients: + eli.bendersky, effbot, scoder, ezio.melotti, eric.araujo, Arfrever, flox, python-dev
2012-03-04 08:55:27eli.benderskysetmessageid: <1330851327.55.0.318473674255.issue14128@psf.upfronthosting.co.za>
2012-03-04 08:54:26eli.benderskylinkissue14128 messages
2012-03-04 08:54:26eli.benderskycreate