A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-July/101581.html below:

[Python-Dev] Python equivalents in stdlib Was: Include datetime.py in stdlib or not?

[Python-Dev] Python equivalents in stdlib Was: Include datetime.py in stdlib or not? [Python-Dev] Python equivalents in stdlib Was: Include datetime.py in stdlib or not?Benjamin Peterson benjamin at python.org
Thu Jul 8 01:13:33 CEST 2010
2010/7/7 Nick Coghlan <ncoghlan at gmail.com>:
> On Thu, Jul 8, 2010 at 7:56 AM, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
>> Using a class decorator to duplicate each _test_ into two test_* methods
>> sounds  like a good approach.
>
> Note that parameterised methods have a similar problem to
> parameterised modules - unittest results are reported in terms of
> "testmodule.testclass.testfunction", so proper attribution of results
> in the test output will require additional work. The separate
> subclasses approach doesn't share this issue, since it changes the
> value of the second item in accordance with the module under test.

A good parameterized implementation, though, gives the repr() of the
parameters in failure output.



-- 
Regards,
Benjamin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4