testresources should use super() when calling setUp/tearDown

Bug #771505 reported by Tim Cole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testresources
Fix Released
Critical
Unassigned
testresources (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-testresources

In python2.7, unittest.TestCase is a new-style class; testtools.ResourcedTestCase should use super() when calling setUp and tearDown in order to avoid breaking multiple inheritance.

python-testresources:
  Installed: 0.2.4-1
  Candidate: 0.2.4-1
  Version table:
 *** 0.2.4-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

Related branches

Tim Cole (tcole)
summary: - testtools should use super() when calling setUp/tearDown
+ testresources should use super() when calling setUp/tearDown
Revision history for this message
Tim Cole (tcole) wrote :

Actually this has been an issue since python 2.4, but we're only now starting to get bitten by it.

Revision history for this message
Tim Cole (tcole) wrote :

I've associated a branch with fixes.

Revision history for this message
Robert Collins (lifeless) wrote :

Merged with some stylistic tweaks.

Changed in testresources:
status: New → Fix Committed
importance: Undecided → Critical
Changed in testresources:
milestone: none → next
status: Fix Committed → Fix Released
James Page (james-page)
Changed in testresources (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.