Fix Python 3 test failure

This commit is contained in:
Tom Talbot 2014-07-14 11:44:01 +01:00
parent f4b5145368
commit 2fde7c6310

View file

@ -413,4 +413,4 @@ class TestUsedBy(TestCase, WagtailTestUtils):
response = self.client.get(reverse('wagtaildocs_document_usage',
args=(1,)))
# There's no usage so there should be no table rows
self.assertRegex(str(response.content), '<tbody>(\s|\n)*</tbody>')
self.assertRegex(response.content, b'<tbody>(\s|\n)*</tbody>')