diff options
| author | Jonathan Lange <jml@mumak.net> | 2012-04-26 17:30:22 +0100 |
|---|---|---|
| committer | Jonathan Lange <jml@mumak.net> | 2012-04-26 17:30:22 +0100 |
| commit | c230e78f9e3f9a464c011b85779700452c647dfb (patch) | |
| tree | 6ed6da64dd7b8402d44136097bdf351f2c0e6db4 /python/subunit | |
| parent | 88fb8f5bb9d1eaa3807d597661e4215b4727b894 (diff) | |
| parent | 921271fc0df34aebd9610e41b49b26dfb9831d16 (diff) | |
| download | subunit-git-c230e78f9e3f9a464c011b85779700452c647dfb.tar.gz | |
Always forward time events from TestResultFilter.
Diffstat (limited to 'python/subunit')
| -rw-r--r-- | python/subunit/test_results.py | 5 | ||||
| -rw-r--r-- | python/subunit/tests/test_subunit_filter.py | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py index 8db40e1..b800be9 100644 --- a/python/subunit/test_results.py +++ b/python/subunit/test_results.py @@ -439,10 +439,7 @@ class TestResultFilter(TestResultDecorator): self._buffered_calls = [] def time(self, a_time): - if self._current_test is not None: - self._buffered_calls.append(('time', [a_time], {})) - else: - return self.decorated.time(a_time) + return self.decorated.time(a_time) def id_to_orig_id(self, id): if id.startswith("subunit.RemotedTestCase."): diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py index 0675484..123be08 100644 --- a/python/subunit/tests/test_subunit_filter.py +++ b/python/subunit/tests/test_subunit_filter.py @@ -179,10 +179,11 @@ xfail todo result_filter = TestResultFilter(result) self.run_tests(result_filter, subunit_stream) foo = subunit.RemotedTestCase('foo') - self.assertEquals( + self.maxDiff = None + self.assertSequenceEqual( [('time', date_a), - ('startTest', foo), ('time', date_b), + ('startTest', foo), ('addError', foo, {}), ('stopTest', foo), ('time', date_c)], result._events) |
