diff --git a/wagtail/wagtaildocs/tests.py b/wagtail/wagtaildocs/tests.py index e7a67670d..007bff67c 100644 --- a/wagtail/wagtaildocs/tests.py +++ b/wagtail/wagtaildocs/tests.py @@ -416,4 +416,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.assertRegexpMatches(response.content, '
(\s|\n)*') + self.assertRegex(response.content, '(\s|\n)*')