diff --git a/wagtail/wagtaildocs/tests.py b/wagtail/wagtaildocs/tests.py index d337adb31..90be0da1e 100644 --- a/wagtail/wagtaildocs/tests.py +++ b/wagtail/wagtaildocs/tests.py @@ -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), '
(\s|\n)*') + self.assertRegex(response.content, b'(\s|\n)*')