Message135881
| 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 |
|