Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 5c55e0fc98a38dc0e59dbd80ff6f236ced697763 1 parent 3350360
@claudep claudep authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  django/test/testcases.py
View
3  django/test/testcases.py
@@ -820,9 +820,6 @@ def _fixture_setup(self):
# Remove this when the legacy transaction management goes away.
disable_transaction_methods()
- from django.contrib.sites.models import Site
- Site.objects.clear_cache()
-
for db in self._databases_names(include_mirrors=False):
if hasattr(self, 'fixtures'):
call_command('loaddata', *self.fixtures,
Please sign in to comment.
Something went wrong with that request. Please try again.