Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Claude Paroz authored March 30, 2013

Showing 1 changed file with 0 additions and 3 deletions. Show diff stats Hide diff stats

  1. 3  django/test/testcases.py
3  django/test/testcases.py
@@ -820,9 +820,6 @@ def _fixture_setup(self):
820 820
         # Remove this when the legacy transaction management goes away.
821 821
         disable_transaction_methods()
822 822
 
823  
-        from django.contrib.sites.models import Site
824  
-        Site.objects.clear_cache()
825  
-
826 823
         for db in self._databases_names(include_mirrors=False):
827 824
             if hasattr(self, 'fixtures'):
828 825
                 call_command('loaddata', *self.fixtures,

0 notes on commit 5c55e0f

Please sign in to comment.
Something went wrong with that request. Please try again.