Author brett.cannon
Recipients Arfrever, brett.cannon, eric.araujo, eric.smith, eric.snow, lemburg, ncoghlan, pitrou, python-dev
Date 2012-05-17.15:25:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337268351.03.0.34206190184.issue14657@psf.upfronthosting.co.za>
In-reply-to
Content
Realized that any decorator or context manager that is created for swapping _frozen_importlib/importlib._bootstrap should also verify no module is left in sys.modules with a bad loader and that sys.path_importer_cache doesn't have a bad finder (I would say that this would go into test.support.regrtest's state checks, but that seems overkill for only two tests).

And this might be worth doing as a decorator (method or class) to make it easier to make sure the requisite tests always run with both versions (or copying what test_warnings does). I don't want to do anything in a module's test_main() as that precludes using unittest's test discovery for running tests.
History
Date User Action Args
2012-05-17 15:25:51brett.cannonsetrecipients: + brett.cannon, lemburg, ncoghlan, pitrou, eric.smith, eric.araujo, Arfrever, python-dev, eric.snow
2012-05-17 15:25:51brett.cannonsetmessageid: <1337268351.03.0.34206190184.issue14657@psf.upfronthosting.co.za>
2012-05-17 15:25:50brett.cannonlinkissue14657 messages
2012-05-17 15:25:50brett.cannoncreate