diff options
| author | Robert Collins <robertc@robertcollins.net> | 2013-04-08 22:27:29 +1200 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2013-04-08 22:27:29 +1200 |
| commit | 6aaa20b82104f26fd1aa40df09a42dd3bd5110f9 (patch) | |
| tree | 8193e0c792c1167f8f41c72f333baf673b778dca /python | |
| parent | 03264963c5fc0a145880c20cd1de9800a23a206c (diff) | |
| download | subunit-git-6aaa20b82104f26fd1aa40df09a42dd3bd5110f9.tar.gz | |
Release 0.0.11, depending on the new testtools StreamResult API.0.0.11
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: |
