From 77c9c58133de6bee368c524918c0fa8978d254da Mon Sep 17 00:00:00 2001 From: Jonathan Lange Date: Fri, 11 Feb 2011 17:45:41 +0000 Subject: Pass through time when we aren't in tests. --- python/subunit/test_results.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python/subunit/test_results.py') diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py index 4079cea..f2f5d82 100644 --- a/python/subunit/test_results.py +++ b/python/subunit/test_results.py @@ -333,7 +333,10 @@ class TestResultFilter(TestResultDecorator): return self.decorated.tags(new_tags, gone_tags) def time(self, a_time): - self._buffered_calls.append(('time', [a_time], {})) + if self._current_test is not None: + self._buffered_calls.append(('time', [a_time], {})) + else: + return self.decorated.time(a_time) def id_to_orig_id(self, id): if id.startswith("subunit.RemotedTestCase."): -- cgit v1.2.1