summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-02-13 14:54:48 +0000
committerJonathan Lange <jml@canonical.com>2011-02-13 14:54:48 +0000
commit2d2aa86675f7e320ad146a6f42bca8f86f51682c (patch)
tree1f56c3edfdc5a7dbe60f44bb2eb48612de333379 /python
parent7e0f91fee35ac314e52043f01502857871f75cd8 (diff)
downloadsubunit-git-2d2aa86675f7e320ad146a6f42bca8f86f51682c.tar.gz
Consistently use super() rather than upcalling.
Diffstat (limited to 'python')
-rw-r--r--python/subunit/test_results.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py
index e1e59df..e7f9171 100644
--- a/python/subunit/test_results.py
+++ b/python/subunit/test_results.py
@@ -199,7 +199,7 @@ class TagCollapsingDecorator(TestResultDecorator):
"""Collapses many 'tags' calls into one where possible."""
def __init__(self, result):
- TestResultDecorator.__init__(self, result)
+ super(TagCollapsingDecorator, self).__init__(result)
# The current test (for filtering tags)
self._current_test = None
# The (new, gone) tags for the current test.
@@ -251,7 +251,7 @@ class TimeCollapsingDecorator(HookedTestResultDecorator):
"""Only pass on the first and last of a consecutive sequence of times."""
def __init__(self, decorated):
- HookedTestResultDecorator.__init__(self, decorated)
+ super(TimeCollapsingDecorator, self).__init__(decorated)
self._last_received_time = None
self._last_sent_time = None
@@ -307,7 +307,7 @@ class TestResultFilter(TestResultDecorator):
metadata is available. outcome is the name of the outcome such
as 'success' or 'failure'.
"""
- TestResultDecorator.__init__(self, result)
+ super(TestResultFilter, self).__init__(result)
self.decorated = TimeCollapsingDecorator(
TagCollapsingDecorator(self.decorated))
predicates = []
@@ -414,7 +414,7 @@ class TestIdPrintingResult(testtools.TestResult):
def __init__(self, stream, show_times=False):
"""Create a FilterResult object outputting to stream."""
- testtools.TestResult.__init__(self)
+ super(TestIdPrintingResult, self).__init__()
self._stream = stream
self.failed_tests = 0
self.__time = 0