Ticket #14833: 14833_skip_sitemap_test.diff

File 14833_skip_sitemap_test.diff, 885 bytes (added by Julien Phalip, 14 years ago)
  • django/contrib/sitemaps/tests/basic.py

     
    55from django.contrib.sites.models import Site
    66from django.core.exceptions import ImproperlyConfigured
    77from django.test import TestCase
    8 from django.utils.unittest import skipUnless
     8from django.utils.unittest import skipUnless, skipIf
    99from django.utils.formats import localize
    1010from django.utils.translation import activate, deactivate
    1111
     
    3434</urlset>
    3535""" % date.today().strftime('%Y-%m-%d'))
    3636
     37    @skipIf(not settings.USE_I18N, "Internationalization is turned off")
    3738    def test_localized_priority(self):
    3839        "The priority value should not be localized (Refs #14164)"
    3940        # Localization should be active
Back to Top