diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/__init__.py | 2 | ||||
| -rw-r--r-- | python/subunit/filters.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index 7470f92..082da90 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -160,7 +160,7 @@ from subunit.v2 import ByteStreamToStreamResult, StreamResultToBytes # If the releaselevel is 'final', then the tarball will be major.minor.micro. # Otherwise it is major.minor.micro~$(revno). -__version__ = (0, 0, 10, 'final', 0) +__version__ = (0, 0, 11, 'final', 0) PROGRESS_SET = 0 PROGRESS_CUR = 1 diff --git a/python/subunit/filters.py b/python/subunit/filters.py index bc9ddef..08ea136 100644 --- a/python/subunit/filters.py +++ b/python/subunit/filters.py @@ -82,7 +82,7 @@ def run_tests_from_stream(input_stream, result, passthrough_stream=None, if passthrough_stream is None: # Not passing non-test events - split them off to nothing. router = StreamResultRouter(forward_result) - router.map(StreamResult(), 'test_id', test_id=None) + router.add_rule(StreamResult(), 'test_id', test_id=None) result = CopyStreamResult([router, result]) else: # otherwise, copy all events to forward_result @@ -95,7 +95,7 @@ def run_tests_from_stream(input_stream, result, passthrough_stream=None, else: passthrough_result = StreamResultToBytes(passthrough_stream) result = StreamResultRouter(result) - result.map(passthrough_result, 'test_id', test_id=None) + result.add_rule(passthrough_result, 'test_id', test_id=None) test = ByteStreamToStreamResult(input_stream, non_subunit_name='stdout') else: |
