From 82824540ee2711e5abb4f1dcd8fb928ec12ae2b0 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Tue, 26 Feb 2013 23:26:46 +1300 Subject: Batch up input in ByteStreamToStreamResult. --- python/subunit/tests/test_subunit_filter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python/subunit/tests') 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) -- cgit v1.2.1