[pypy-dev] Some issues with the testing framework

Maciek Fijalkowski fijal at genesilico.pl
Wed Oct 17 23:42:24 CEST 2007


Elmo Mäntynen wrote:

<snip>

Solution to the first problem:

class BaseAppTestInheritance:
    def setup_class(cls):
        pass
   
    def test_foo(self):
        pass

class AppTest(BaseAppTestInheritance):
    def setup_class(cls):
        BaseAppTestInheritance.setup_class.im_func(cls)

(im_func is here a trick). That's python fault/feature in my opinion.

Cheers,
fijal




:.




More information about the Pypy-dev mailing list