summaryrefslogtreecommitdiff
path: root/python/subunit/tests/test_test_protocol2.py
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2013-08-25 01:51:28 +1200
committerRobert Collins <robertc@robertcollins.net>2013-08-25 01:51:28 +1200
commit273a4c27aba153af19925c0e7f293d2d696fad7b (patch)
tree6c839c5c4538b80ce2875a51bde7f1d52e8601cd /python/subunit/tests/test_test_protocol2.py
parentf226d226e2a744b753b6b48ef8a3e7f7abba025e (diff)
downloadsubunit-git-273a4c27aba153af19925c0e7f293d2d696fad7b.tar.gz
* Clients of subunit did not expect memoryview objects in StreamResult events.
(Robert Collins)
Diffstat (limited to 'python/subunit/tests/test_test_protocol2.py')
-rw-r--r--python/subunit/tests/test_test_protocol2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/subunit/tests/test_test_protocol2.py b/python/subunit/tests/test_test_protocol2.py
index ded56b8..f88e0aa 100644
--- a/python/subunit/tests/test_test_protocol2.py
+++ b/python/subunit/tests/test_test_protocol2.py
@@ -303,6 +303,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].
+ for event in result._events:
+ if event[5] is not None:
+ self.assertIsInstance(event[6], bytes)
def check_event(self, source_bytes, test_status=None, test_id="foo",
route_code=None, timestamp=None, tags=None, mime_type=None,