This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients benjamin.peterson, bob.ippolito, doerwalter, ezio.melotti, fdrake, jowillia, pitrou, rhettinger, xuanji
Date 2011-05-12.22:47:45
SpamBayes Score 0.0026356345
Marked as misclassified No
Message-id <1305240462.3548.7.camel@localhost.localdomain>
In-reply-to <1305239736.16.0.136374007773.issue5723@psf.upfronthosting.co.za>
Content
> With this approach is necessary to exclude the base class from the
> tests, either by listing all the Python/C tests explicitly or doing
> some automatic check to find these base classes.

It just needs a small change then:

class PyTest(TestCase):
    ...
class CTest(TestCase):
    ...

class TestSomething:
    def test_something(self): ...

class TestPySomething(TestSomething, PyTest): pass
class TestCSomething(TestSomething, CTest): pass
History
Date User Action Args
2011-05-12 22:47:46pitrousetrecipients: + pitrou, fdrake, doerwalter, rhettinger, bob.ippolito, benjamin.peterson, ezio.melotti, jowillia, xuanji
2011-05-12 22:47:45pitroulinkissue5723 messages
2011-05-12 22:47:45pitroucreate