Re: [Python-Dev] [Python-checkins] cpython: Make parameterized tests in email less hackish.

I'm not clear on why this is a metaclass rather than a simple class decorator. On Thu, May 31, 2012 at 11:54 AM, r.david.murray <python-checkins@python.org> wrote:
Your description doesn't match your examples or implementation. Assuming the example and implementation are correct (and they look more sensible than the currently described approach), I believe that last sentence should be: "The full name of a generated test is a 'test_' prefix, the portion of the test function name after the '_as_' separator, plus an '_', plus the name derived as explained above." Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia

On Thu, 31 May 2012 13:11:14 +1000, Nick Coghlan <ncoghlan@gmail.com> wrote:
I'm not clear on why this is a metaclass rather than a simple class decorator.
Because I didn't think of it. I don't (yet) think of "class" and "decorator" in the same sentence :)
Oops, yes. Thanks for the catch. --David

On Thu, 31 May 2012 13:11:14 +1000, Nick Coghlan <ncoghlan@gmail.com> wrote:
I'm not clear on why this is a metaclass rather than a simple class decorator.
Because I didn't think of it. I don't (yet) think of "class" and "decorator" in the same sentence :)
Oops, yes. Thanks for the catch. --David
participants (2)
-
Nick Coghlan
-
R. David Murray