Removed site cache clearing in TestCase._fixture_setup
The test suite doesn't seem to suffer from this removal. Tests should probably take care themselves to clear caches if they depend on it.
This commit is contained in:
parent
33503600b5
commit
5c55e0fc98
|
@ -820,9 +820,6 @@ class TestCase(TransactionTestCase):
|
||||||
# Remove this when the legacy transaction management goes away.
|
# Remove this when the legacy transaction management goes away.
|
||||||
disable_transaction_methods()
|
disable_transaction_methods()
|
||||||
|
|
||||||
from django.contrib.sites.models import Site
|
|
||||||
Site.objects.clear_cache()
|
|
||||||
|
|
||||||
for db in self._databases_names(include_mirrors=False):
|
for db in self._databases_names(include_mirrors=False):
|
||||||
if hasattr(self, 'fixtures'):
|
if hasattr(self, 'fixtures'):
|
||||||
call_command('loaddata', *self.fixtures,
|
call_command('loaddata', *self.fixtures,
|
||||||
|
|
Loading…
Reference in New Issue