diff options
| author | Jonathan Lange <jml@canonical.com> | 2011-02-11 17:45:41 +0000 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2011-02-11 17:45:41 +0000 |
| commit | 77c9c58133de6bee368c524918c0fa8978d254da (patch) | |
| tree | 9d7ad5f9c0a1bbadb2295632f0679fd6ed69b1fe /python/subunit/test_results.py | |
| parent | dd089db28901fa5c05dc5ead9a6db1ca9ef5e80b (diff) | |
| download | subunit-git-77c9c58133de6bee368c524918c0fa8978d254da.tar.gz | |
Pass through time when we aren't in tests.
Diffstat (limited to 'python/subunit/test_results.py')
| -rw-r--r-- | python/subunit/test_results.py | 5 |
1 files changed, 4 insertions, 1 deletions
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."): |
