summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/subunit/tests/test_subunit_filter.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py
index 2f26f39..69e32a0 100644
--- a/python/subunit/tests/test_subunit_filter.py
+++ b/python/subunit/tests/test_subunit_filter.py
@@ -119,9 +119,10 @@ xfail todo
# Only success should pass
self.assertEqual(1, filtered_result.testsRun)
- def run_tests(self, result_filter):
- input_stream = make_stream(self.example_subunit_stream)
- test = subunit.ProtocolTestCase(input_stream)
+ def run_tests(self, result_filter, input_stream=None):
+ if input_stream is None:
+ input_stream = self.example_subunit_stream
+ test = subunit.ProtocolTestCase(make_stream(input_stream))
test.run(result_filter)