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_protocol2.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_protocol2.py')
-rw-r--r-- | python/subunit/tests/test_test_protocol2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/subunit/tests/test_test_protocol2.py b/python/subunit/tests/test_test_protocol2.py index 4f0eb9f..ef88092 100644 --- a/python/subunit/tests/test_test_protocol2.py +++ b/python/subunit/tests/test_test_protocol2.py @@ -32,7 +32,7 @@ from testtools.testresult.doubles import StreamResult from testtools.tests.test_testresult import TestStreamResultContract import subunit -import subunit.iso8601 as iso8601 +import iso8601 CONSTANT_ENUM = b'\xb3)\x01\x0c\x03foo\x08U_\x1b' CONSTANT_INPROGRESS = b'\xb3)\x02\x0c\x03foo\x8e\xc1-\xb5' @@ -218,7 +218,7 @@ class TestStreamResultToBytes(TestCase): def test_timestamp(self): timestamp = datetime.datetime(2001, 12, 12, 12, 59, 59, 45, - iso8601.Utc()) + iso8601.UTC) result, output = self._make_result() result.status(test_id="bar", test_status='success', timestamp=timestamp) self.assertEqual(CONSTANT_TIMESTAMP, output.getvalue()) @@ -382,7 +382,7 @@ class TestByteStreamToStreamResult(TestCase): def test_timestamp(self): timestamp = datetime.datetime(2001, 12, 12, 12, 59, 59, 45, - iso8601.Utc()) + iso8601.UTC) self.check_event(CONSTANT_TIMESTAMP, 'success', test_id='bar', timestamp=timestamp) |