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 brett.cannon, ncoghlan
Date 2009-04-11.19:36:30
SpamBayes Score 1.6653345e-16
Marked as misclassified No
Message-id <bbaeab100904111236w278dc4cfqa0dc537a4ebb42e3@mail.gmail.com>
In-reply-to <1239460129.59.0.324151081249.issue5354@psf.upfronthosting.co.za>
Content
On Sat, Apr 11, 2009 at 07:28, Nick Coghlan <report@bugs.python.org> wrote:

>
> Nick Coghlan <ncoghlan@gmail.com> added the comment:
>
> Implemented for 2.7 in r71465
> Implemented for 3.1 in r7146
>

Style nit: why the extra check for block_names being None to later set it to
an empty tuple? Why not make the default argument the empty tuple?

>
> Leaving issue open for the moment - the 3.1 test_warnings fails if I
> don't get a fresh copy of _warnings before running the unit tests. I
> want to figure out why that is necessary before closing the issue.

Might have to do with _warnings trying to import warnings for certain things
in certain cases.

And just something I thought about, Nick, is possibly coming up with a class
decorator that sets self.module on the class. This could have the perk of
taking an optional argument that checks if the optimized module is even in
existence so as to skip running the tests twice if it is not needed. Then
again this might over-optimizing and best to just let the tests run twice
even if it is not needed.
Files
File name Uploaded
unnamed brett.cannon, 2009-04-11.19:36:29
History
Date User Action Args
2009-04-11 19:36:32brett.cannonsetrecipients: + brett.cannon, ncoghlan
2009-04-11 19:36:31brett.cannonlinkissue5354 messages
2009-04-11 19:36:31brett.cannoncreate