summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2012-05-08 08:27:36 +1200
committerRobert Collins <robertc@robertcollins.net>2012-05-08 08:27:36 +1200
commit3f2280edfafb8bee61986f5c35494bb50a0c6ca4 (patch)
treec700c362d98351fd8676b2d62ccb5a106594c799 /python/subunit/tests
parent974cb83973f69591502d2aad968b31edb234ccc2 (diff)
downloadsubunit-3f2280edfafb8bee61986f5c35494bb50a0c6ca4.tar.gz
Handle text stdin and stdout streams.
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/test_subunit_filter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py
index 222359b..3d63ff5 100644
--- a/python/subunit/tests/test_subunit_filter.py
+++ b/python/subunit/tests/test_subunit_filter.py
@@ -88,9 +88,9 @@ xfail todo
self.run_tests(result_filter)
tests_included = [
event[1] for event in result._events if event[0] == 'startTest']
- tests_expected = map(
+ tests_expected = list(map(
subunit.RemotedTestCase,
- ['passed', 'error', 'skipped', 'todo'])
+ ['passed', 'error', 'skipped', 'todo']))
self.assertEquals(tests_expected, tests_included)
def test_tags_tracked_correctly(self):
@@ -98,7 +98,7 @@ xfail todo
result = ExtendedTestResult()
result_filter = TestResultFilter(
result, filter_success=False, filter_predicate=tag_filter)
- input_stream = (
+ input_stream = _b(
"test: foo\n"
"tags: a\n"
"successful: foo\n"
@@ -319,7 +319,7 @@ xfail todo
return result._events
def test_default(self):
- output = self.run_command([], (
+ output = self.run_command([], _b(
"test: foo\n"
"skip: foo\n"
))
@@ -332,7 +332,7 @@ xfail todo
events)
def test_tags(self):
- output = self.run_command(['-s', '--with-tag', 'a'], (
+ output = self.run_command(['-s', '--with-tag', 'a'], _b(
"tags: a\n"
"test: foo\n"
"success: foo\n"