[py-dev] Instantiating Test* classes

holger krekel hpk at trillke.net
Sat May 7 09:58:05 CEST 2005


Hi Ian, 

On Fri, May 06, 2005 at 12:10 -0500, Ian Bicking wrote:
> At some point py.test started instantiating all my classes that start 
> with Test*.  This is somewhat problematic, as I have lots of support 
> classes named TestSomething, which aren't themselves test cases.  

you are talking about classes in test_*.py files, i presume. 

> It wasn't doing this before, though I must admit I haven't run the tests 
> for a while so I'm not sure when the change happened.
> 
> I can rename all the classes, but of coures I'd rather not.  Is there 
> another way of dealing with this?

not that i currently can think of.  you might set 
'disabled=True' on class level. 

    holger



More information about the Pytest-dev mailing list