summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-02-11 17:45:41 +0000
committerJonathan Lange <jml@canonical.com>2011-02-11 17:45:41 +0000
commitc25e81d48ca466c051621418c8e125f4ee1798d1 (patch)
tree9d7ad5f9c0a1bbadb2295632f0679fd6ed69b1fe /python/subunit/tests
parent45b4ade5d52f37ea2d0ce8491035c096c6e9ea79 (diff)
downloadsubunit-c25e81d48ca466c051621418c8e125f4ee1798d1.tar.gz
Pass through time when we aren't in tests.
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/test_subunit_filter.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py
index 0548966..a728860 100644
--- a/python/subunit/tests/test_subunit_filter.py
+++ b/python/subunit/tests/test_subunit_filter.py
@@ -146,12 +146,14 @@ xfail todo
# directives that are still included.
date_a = datetime(year=2000, month=1, day=1, tzinfo=iso8601.UTC)
date_b = datetime(year=2000, month=1, day=2, tzinfo=iso8601.UTC)
+ date_c = datetime(year=2000, month=1, day=3, tzinfo=iso8601.UTC)
subunit_stream = '\n'.join([
"time: %s",
"test: foo",
"time: %s",
"error: foo",
- ""]) % (date_a, date_b)
+ "time: %s",
+ ""]) % (date_a, date_b, date_c)
result = ExtendedTestResult()
result_filter = TestResultFilter(result)
self.run_tests(result_filter, subunit_stream)
@@ -161,7 +163,8 @@ xfail todo
('startTest', foo),
('time', date_b),
('addError', foo, {}),
- ('stopTest', foo)], result._events)
+ ('stopTest', foo),
+ ('time', date_c)], result._events)
def test_suite():