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, eli.bendersky, eric.snow, ezio.melotti, pitrou
Date 2013-02-07.18:20:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360261242.45.0.906636418064.issue17037@psf.upfronthosting.co.za>
In-reply-to
Content
At this point let's just start with the helper class which takes the arguments as necessary to do the proper importing of both the pure Python and accelerated versions of the module and optionally the name of the attribute the test classes expect (otherwise just use the name of the module itself). Then expose two decorator methods to use on subclasses to set the proper class with the proper attribute name. Going fancier with a method that generates the subclasses can come in a separate patch. import_fresh_module() can stay as-is and this class just becomes the preferred way to get both versions of a module at the same time.
History
Date User Action Args
2013-02-07 18:20:42brett.cannonsetrecipients: + brett.cannon, pitrou, ezio.melotti, Arfrever, eli.bendersky, eric.snow
2013-02-07 18:20:42brett.cannonsetmessageid: <1360261242.45.0.906636418064.issue17037@psf.upfronthosting.co.za>
2013-02-07 18:20:42brett.cannonlinkissue17037 messages
2013-02-07 18:20:42brett.cannoncreate