For some reason, using string here caused the subunit stream to get corrupted
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user