testtools should use super() when calling setUp/tearDown
Bug #771508 reported by
Tim Cole
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Low
|
Tim Cole | ||
python-testtools (Ubuntu) |
Fix Released
|
Undecided
|
Jelmer Vernooij |
Bug Description
Binary package hint: python-testtools
In python 2.7, unittest.TestCase is a new-style class. testtools.TestCase should use super() when calling setUp/tearDown in order to avoid breaking multiple inheritance.
python-testtools:
Installed: 0.9.8-1
Candidate: 0.9.8-1
Version table:
*** 0.9.8-1 0
500 http://
100 /var/lib/
Related branches
lp:~tcole/testtools/use-super
- Jonathan Lange: Approve
-
Diff: 66 lines (+33/-2)2 files modifiedtesttools/testcase.py (+3/-2)
testtools/tests/test_testtools.py (+30/-0)
Changed in testtools: | |
status: | New → Fix Committed |
assignee: | nobody → Tim Cole (tcole) |
milestone: | none → next |
importance: | Undecided → Low |
Changed in testtools: | |
status: | Fix Committed → Fix Released |
Changed in python-testtools (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Jelmer Vernooij (jelmer) |
To post a comment you must log in.
precise has 0.9.14, which has the fix for this.