diff options
| author | Jonathan Lange <jml@canonical.com> | 2011-02-12 11:10:13 +0000 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2011-02-12 11:10:13 +0000 |
| commit | c592e36438ec3931c1a8f0e324e382f005eaa31f (patch) | |
| tree | 1d348ffa536a9aa5e660a2338e88097d15589156 /python | |
| parent | 971b2fa35673d8508f0f1324efe8028458b4ee94 (diff) | |
| download | subunit-git-c592e36438ec3931c1a8f0e324e382f005eaa31f.tar.gz | |
Delete unnecessary code.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/tests/test_subunit_filter.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py index a728860..cf6c2b6 100644 --- a/python/subunit/tests/test_subunit_filter.py +++ b/python/subunit/tests/test_subunit_filter.py @@ -28,14 +28,6 @@ import subunit from subunit.test_results import TestResultFilter -def make_stream(bytes): - """Take a string and return a stream from which that string can be read.""" - stream = StringIO() - stream.write(bytes) - stream.seek(0) - return stream - - class TestTestResultFilter(TestCase): """Test for TestResultFilter, a TestResult object which filters tests.""" @@ -69,7 +61,7 @@ xfail todo """ if input_stream is None: input_stream = self.example_subunit_stream - test = subunit.ProtocolTestCase(make_stream(input_stream)) + test = subunit.ProtocolTestCase(StringIO(input_stream)) test.run(result_filter) def test_default(self): |
