Message181641
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. |
|
Date |
User |
Action |
Args |
2013-02-07 18:20:42 | brett.cannon | set | recipients:
+ brett.cannon, pitrou, ezio.melotti, Arfrever, eli.bendersky, eric.snow |
2013-02-07 18:20:42 | brett.cannon | set | messageid: <1360261242.45.0.906636418064.issue17037@psf.upfronthosting.co.za> |
2013-02-07 18:20:42 | brett.cannon | link | issue17037 messages |
2013-02-07 18:20:42 | brett.cannon | create | |
|