From 496a0a483dd8629deaf7821c739b2b83c8e7d3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sat, 28 Jan 2023 16:55:56 +0000 Subject: Rely on external copy of iso8601 --- python/subunit/tests/test_test_protocol.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python/subunit/tests/test_test_protocol.py') 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()) -- cgit v1.2.1