diff options
author | Jelmer Vernooij <jelmer@jelmer.uk> | 2023-01-28 15:20:09 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@jelmer.uk> | 2023-01-28 15:38:45 +0000 |
commit | f315464df26e4122758da26f40a76aa19a08ff60 (patch) | |
tree | 91d4a4065db30bda341e9ff74130f12d7a2ffee6 /python/subunit/tests/test_test_protocol2.py | |
parent | 9200d9eeff3d624d592d01d618ad30f02dc68afd (diff) | |
download | subunit-git-f315464df26e4122758da26f40a76aa19a08ff60.tar.gz |
Drop compatibility wrappers for memoryview in older Python versions
Diffstat (limited to 'python/subunit/tests/test_test_protocol2.py')
-rw-r--r-- | python/subunit/tests/test_test_protocol2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/subunit/tests/test_test_protocol2.py b/python/subunit/tests/test_test_protocol2.py index bbf510e..0b40929 100644 --- a/python/subunit/tests/test_test_protocol2.py +++ b/python/subunit/tests/test_test_protocol2.py @@ -312,10 +312,10 @@ class TestByteStreamToStreamResult(TestCase): source, non_subunit_name="stdout").run(result) self.assertEqual(b'', source.read()) self.assertEqual(events, result._events) - #- any file attachments should be byte contents [as users assume that]. + #- any file attachments should be bytes equivalent [as users assume that]. for event in result._events: if event[5] is not None: - self.assertIsInstance(event[6], bytes) + bytes(event[6]) def check_event(self, source_bytes, test_status=None, test_id="foo", route_code=None, timestamp=None, tags=None, mime_type=None, |