summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-02-13 14:53:05 +0000
committerJonathan Lange <jml@canonical.com>2011-02-13 14:53:05 +0000
commit7e0f91fee35ac314e52043f01502857871f75cd8 (patch)
tree14f91a09a5aee6c8e217f301b2d9b66f6d1dbb22 /python
parente0581e6819db7c2872ced4d43e803ae7b5e7bd05 (diff)
downloadsubunit-git-7e0f91fee35ac314e52043f01502857871f75cd8.tar.gz
Use the time collapsing decorator as well.
Diffstat (limited to 'python')
-rw-r--r--python/subunit/test_results.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py
index a3f640d..e1e59df 100644
--- a/python/subunit/test_results.py
+++ b/python/subunit/test_results.py
@@ -308,7 +308,8 @@ class TestResultFilter(TestResultDecorator):
as 'success' or 'failure'.
"""
TestResultDecorator.__init__(self, result)
- self.decorated = TagCollapsingDecorator(self.decorated)
+ self.decorated = TimeCollapsingDecorator(
+ TagCollapsingDecorator(self.decorated))
predicates = []
if filter_error:
predicates.append(lambda t, outcome, e, d: outcome != 'error')
@@ -398,7 +399,6 @@ class TestResultFilter(TestResultDecorator):
self._buffered_calls = []
def time(self, a_time):
- # XXX: Make a TimeCollapsingDecorator.
if self._current_test is not None:
self._buffered_calls.append(('time', [a_time], {}))
else: