Yes, it was that. Thanks for the fast answer
2009/12/31 holger krekel <hol...@merlinux.eu>: > On Thu, Dec 31, 2009 at 11:58 +0000, Joan Miller wrote: >> Is pssible to instance a class at module level (setup_module) and that >> it can be used from a test class? > > Do you mean like this: > > class MyClass: > pass > > def setup_module(mod): > mod.myclass = MyClass() # put instance to module globals > > class TestHello: > def test_world(self): > x = myclass # use module-global myclass instance > ... > > ? > > If not, can you provide an example? > > cheers, > holger > _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev