summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-03-30 20:14:48 +0100
committerClaude Paroz <claude@2xlibre.net>2013-03-30 20:17:31 +0100
commit5c55e0fc98a38dc0e59dbd80ff6f236ced697763 (patch)
treed22d152469f4b0634d0c01f05a49eb521be1f330
parent33503600b5562a2d0c0ba8d376a40432a4b30893 (diff)
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.
-rw-r--r--django/test/testcases.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py
index b8e59b0a6a..a55bb6080d 100644
--- a/django/test/testcases.py
+++ b/django/test/testcases.py
@@ -820,9 +820,6 @@ class TestCase(TransactionTestCase):
# 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,