summaryrefslogtreecommitdiff
path: root/python/subunit/tests/test_run.py
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2012-05-08 07:36:05 +1200
committerRobert Collins <robertc@robertcollins.net>2012-05-08 07:36:05 +1200
commit974cb83973f69591502d2aad968b31edb234ccc2 (patch)
tree6a52b2a29c9c5bd5cddc58f55d50418bf53283f8 /python/subunit/tests/test_run.py
parentab9e87a042a19081b7371baedfc0ff1eb5b86349 (diff)
downloadsubunit-974cb83973f69591502d2aad968b31edb234ccc2.tar.gz
* Python3 support regressed in trunk.
(Arfrever Frehtes Taifersar Arahesis, #987514)
Diffstat (limited to 'python/subunit/tests/test_run.py')
-rw-r--r--python/subunit/tests/test_run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/subunit/tests/test_run.py b/python/subunit/tests/test_run.py
index 5a96bcf..10519ed 100644
--- a/python/subunit/tests/test_run.py
+++ b/python/subunit/tests/test_run.py
@@ -14,7 +14,7 @@
# limitations under that license.
#
-from cStringIO import StringIO
+from testtools.compat import BytesIO
import unittest
from testtools import PlaceHolder
@@ -42,7 +42,7 @@ class TimeCollectingTestResult(unittest.TestResult):
class TestSubunitTestRunner(unittest.TestCase):
def test_includes_timing_output(self):
- io = StringIO()
+ io = BytesIO()
runner = SubunitTestRunner(stream=io)
test = PlaceHolder('name')
runner.run(test)