Message160974
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. |
|
Date |
User |
Action |
Args |
2012-05-17 15:25:51 | brett.cannon | set | recipients:
+ brett.cannon, lemburg, ncoghlan, pitrou, eric.smith, eric.araujo, Arfrever, python-dev, eric.snow |
2012-05-17 15:25:51 | brett.cannon | set | messageid: <1337268351.03.0.34206190184.issue14657@psf.upfronthosting.co.za> |
2012-05-17 15:25:50 | brett.cannon | link | issue14657 messages |
2012-05-17 15:25:50 | brett.cannon | create | |
|