diff options
author | Jelmer Vernooij <jelmer@jelmer.uk> | 2023-01-28 16:55:56 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@jelmer.uk> | 2023-02-10 17:47:03 +0000 |
commit | 496a0a483dd8629deaf7821c739b2b83c8e7d3d6 (patch) | |
tree | fc829e4d55d66082e48c0dcb0389b9f7efe377db /python/subunit/tests/test_test_protocol.py | |
parent | e40507dfb292de805fcbd125594579c40e5165a8 (diff) | |
download | subunit-git-external-iso8601.tar.gz |
Rely on external copy of iso8601external-iso8601
Diffstat (limited to 'python/subunit/tests/test_test_protocol.py')
-rw-r--r-- | python/subunit/tests/test_test_protocol.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index a40591e..7ad28d2 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -39,8 +39,9 @@ except ImportError: from testtools.matchers import Contains, Equals, MatchesAny +import iso8601 + import subunit -import subunit.iso8601 as iso8601 from subunit.tests import (_remote_exception_repr, _remote_exception_repr_chunked, _remote_exception_str, @@ -981,7 +982,7 @@ class TestTestProtocolServerStreamTime(unittest.TestCase): self.assertEqual(_b(""), self.stream.getvalue()) self.assertEqual([ ('time', datetime.datetime(2001, 12, 12, 12, 59, 59, 0, - iso8601.Utc())) + iso8601.UTC)) ], self.result._events) @@ -1386,7 +1387,7 @@ class TestTestProtocolClient(TestCase): def test_time(self): # Calling time() outputs a time signal immediately. self.protocol.time( - datetime.datetime(2009,10,11,12,13,14,15, iso8601.Utc())) + datetime.datetime(2009,10,11,12,13,14,15, iso8601.UTC)) self.assertEqual( _b("time: 2009-10-11 12:13:14.000015Z\n"), self.io.getvalue()) |