summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2013-02-26 23:26:46 +1300
committerRobert Collins <robertc@robertcollins.net>2013-02-26 23:26:46 +1300
commitb6cb3c4d694d4621e83b8bdaf18f54cff87f8074 (patch)
treed8b231dc8db9f6d6668214d88f8f92c6779e3544 /python/subunit/tests
parent83eb75d1e9bc41e0f8057d20ac0488a4a3b9d690 (diff)
downloadsubunit-b6cb3c4d694d4621e83b8bdaf18f54cff87f8074.tar.gz
Batch up input in ByteStreamToStreamResult.
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/test_subunit_filter.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py
index 1cde16b..c28ca33 100644
--- a/python/subunit/tests/test_subunit_filter.py
+++ b/python/subunit/tests/test_subunit_filter.py
@@ -342,8 +342,7 @@ class TestFilterCommand(TestCase):
output = self.run_command([], b'hi thar')
byte_stream = BytesIO()
stream = StreamResultToBytes(byte_stream)
- for pos, _ in enumerate(b'hi thar'):
- stream.status(file_name="stdout", file_bytes=b'hi thar'[pos:pos+1])
+ stream.status(file_name="stdout", file_bytes=b'hi thar')
self.assertEqual(byte_stream.getvalue(), output)