From 7e0f91fee35ac314e52043f01502857871f75cd8 Mon Sep 17 00:00:00 2001 From: Jonathan Lange Date: Sun, 13 Feb 2011 14:53:05 +0000 Subject: Use the time collapsing decorator as well. --- python/subunit/test_results.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/subunit') 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: -- cgit v1.2.1