From 5660267e5b9cc35280e7ecbc59d67fa035e6691d Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 27 Dec 2019 08:57:34 +0100 Subject: [PATCH] Fixed #31121 -- Cleared Site cache in SitesFrameworkTests. Thanks Matthijs Kooijman for the report and analysis. --- tests/sites_tests/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/sites_tests/tests.py b/tests/sites_tests/tests.py index 500a422b21..3de0049c62 100644 --- a/tests/sites_tests/tests.py +++ b/tests/sites_tests/tests.py @@ -25,6 +25,9 @@ class SitesFrameworkTests(TestCase): cls.site = Site(id=settings.SITE_ID, domain='example.com', name='example.com') cls.site.save() + def setUp(self): + Site.objects.clear_cache() + def tearDown(self): Site.objects.clear_cache()