Commit 54b122c9 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

[1.2.X] Fixed #14833 -- Skip the sitemaps localization test if i18n isn't...

[1.2.X] Fixed #14833 -- Skip the sitemaps localization test if i18n isn't enabled. Thanks to Julien Phalip for the report and patch.

Backport of r14826 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14827 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent b0d9eaaa
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ class SitemapTests(TestCase):
</urlset>
""" % date.today().strftime('%Y-%m-%d'))

    if settings.USE_I18N:
        def test_localized_priority(self):
            "The priority value should not be localized (Refs #14164)"
            # Localization should be active