[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
This commit is contained in:
Russell Keith-Magee 2010-12-05 02:09:29 +00:00
parent b0d9eaaa6a
commit 54b122c9bb

View File

@ -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