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 brett.cannon
Recipients Arfrever, brett.cannon, eric.snow, nadeem.vawda, pitrou, skrah
Date 2012-05-06.16:23:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336321440.61.0.280194133984.issue14583@psf.upfronthosting.co.za>
In-reply-to
Content
Only two comments, otherwise LGTM (and I can't believe the solution was to go back through the import system just to pull out the cached module; the things we would change if we were doing this from scratch).

One, you have some "XXX False" markers in the tests. Should those get deleted or replaced with something?

Two, in your first test (at least) you only test what is in sys.modules once instead of after each attempted import. I would repeat the test after each import.
History
Date User Action Args
2012-05-06 16:24:00brett.cannonsetrecipients: + brett.cannon, pitrou, nadeem.vawda, Arfrever, skrah, eric.snow
2012-05-06 16:24:00brett.cannonsetmessageid: <1336321440.61.0.280194133984.issue14583@psf.upfronthosting.co.za>
2012-05-06 16:24:00brett.cannonlinkissue14583 messages
2012-05-06 16:23:59brett.cannoncreate