Thu Mar 23 19:02:35 2006
Ticket #22 (Closed: fixed)
loading tests from classes: beware subclassing
| Priority: | normal | Reporter: | jpellerin |
|---|---|---|---|
| Severity: | normal | Assigned to: | jpellerin |
| Component: | nose | Status: | closed |
| Version: | 0.9 | Resolution: | fixed |
| Milestone: | 0.9a1 | Keywords: |
Description by jpellerin:
The following case will currently result in wrong behavior:
class TestA: def test_a(self): pass class TestB(TestA): def test_b(self): pass
TestB will collect and run both test_a and test_b; it should only run test_a
Changelog
Thu Mar 23 19:02:44 2006: Modified by jpellerin
- status changed from new to assigned
Thu Mar 23 20:51:38 2006: Modified by jpellerin
- milestone changed from 0.9 to 0.9a1
Sun Apr 2 22:28:26 2006: Modified by jpellerin
- resolution set to fixed
- status changed from assigned to closed

The description above is incorrect, but as of [18] the behavior is correct and matches unittest's behavior.