For some reason, using string here caused the subunit stream to get corrupted

This commit is contained in:
Jonathan Lange
2011-07-27 00:48:48 +01:00
parent faaa7118ed
commit 17b8f89d09

View File

@@ -18,6 +18,7 @@ from testtools import (
skipUnless, skipUnless,
testcase, testcase,
) )
from testtools.compat import _b
from testtools.matchers import ( from testtools.matchers import (
Equals, Equals,
MatchesException, MatchesException,
@@ -714,7 +715,7 @@ class TestWithDetails(TestCase):
def get_content(self): def get_content(self):
return content.Content( return content.Content(
content.ContentType("text", "foo"), lambda: ['foo']) content.ContentType("text", "foo"), lambda: [_b('foo')])
class TestExpectedFailure(TestWithDetails): class TestExpectedFailure(TestWithDetails):