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-February/097657.html below:

[Python-Dev] setUpClass and setUpModule in unittest

[Python-Dev] setUpClass and setUpModule in unittest [Python-Dev] setUpClass and setUpModule in unittestAntoine Pitrou solipsis at pitrou.net
Sat Feb 13 11:42:41 CET 2010
Robert Collins <robertc <at> robertcollins.net> writes:
> 
> I'm not personally very keen on inspecting everything in self.__dict__,
> I suspect it would tickle bugs in other unittest extensions. However I'm
> not really /against/ it - I don't think it will result in bad test
> behaviour or isolation issues. So if users would like it, lets do it.

Why not take all resource_XXX attributes?

By the way, how does a given test access the allocated resource? Say, the DB
connection. Does it become an attribute of the test case instance?

Thank you

Antoine.


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