Commit 4efe1b79 authored by Tim Graham's avatar Tim Graham
Browse files

Refs #23884 -- Silenced a deprecation warning in sitemaps tests.

parent c17d821f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ class FlatpagesSitemapTests(SitemapTestsBase):
            registration_required=True
        )
        private.sites.add(settings.SITE_ID)
        with warnings.catch_warnings():
            warnings.simplefilter('ignore')
            response = self.client.get('/flatpages/sitemap.xml')
        # Public flatpage should be in the sitemap
        self.assertContains(response, '<loc>%s%s</loc>' % (self.base_url, public.url))