Ticket #15753: fix_15753.diff

File fix_15753.diff, 801 bytes (added by lucho, 14 years ago)

Clears the cache in setUp

  • basic.py

    old new from django.test import TestCase  
    99from django.utils.unittest import skipUnless
    1010from django.utils.formats import localize
    1111from django.utils.translation import activate, deactivate
    12 
     12from django.core.cache import cache
    1313
    1414class SitemapTests(TestCase):
    1515    urls = 'django.contrib.sitemaps.tests.urls'
    class SitemapTests(TestCase):  
    2828        )
    2929        # Create a user that will double as sitemap content
    3030        User.objects.create_user('testuser', 'test@example.com', 's3krit')
     31        cache.clear()
    3132
    3233    def tearDown(self):
    3334        settings.USE_L10N = self.old_USE_L10N
Back to Top