From 6aaa20b82104f26fd1aa40df09a42dd3bd5110f9 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Mon, 8 Apr 2013 22:27:29 +1200 Subject: Release 0.0.11, depending on the new testtools StreamResult API. --- python/subunit/__init__.py | 2 +- python/subunit/filters.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'python') 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: -- cgit v1.2.1