Author: russellm
Date: 2010-12-04 20:07:46 -0600 (Sat, 04 Dec 2010)
New Revision: 14826

Modified:
   django/trunk/django/contrib/sitemaps/tests/basic.py
Log:
Fixed #14833 -- Skip the sitemaps localization test if i18n isn't enabled. 
Thanks to Julien Phalip for the report and patch.

Modified: django/trunk/django/contrib/sitemaps/tests/basic.py
===================================================================
--- django/trunk/django/contrib/sitemaps/tests/basic.py 2010-12-05 01:54:15 UTC 
(rev 14825)
+++ django/trunk/django/contrib/sitemaps/tests/basic.py 2010-12-05 02:07:46 UTC 
(rev 14826)
@@ -34,6 +34,7 @@
 </urlset>
 """ % date.today().strftime('%Y-%m-%d'))
 
+    @skipUnless(settings.USE_I18N, "Internationalization is not enabled")
     def test_localized_priority(self):
         "The priority value should not be localized (Refs #14164)"
         # Localization should be active

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to