Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.2.X] Ensure that the sitemaps test deactivates it's locale, so tha…

…t subsequent tests aren't run in French.

Backport of r14078 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e8d50382188b475ce4b0d9dd47566200fa494971 1 parent 4241197
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/sitemaps/tests/
3  django/contrib/sitemaps/tests/
@@ -5,7 +5,7 @@
from django.contrib.sites.models import Site
from django.test import TestCase
from django.utils.formats import localize
-from django.utils.translation import activate
+from django.utils.translation import activate, deactivate
class SitemapTests(TestCase):
@@ -44,6 +44,7 @@ def test_localized_priority(self):
response = self.client.get('/simple/sitemap.xml')
self.assertContains(response, '<priority>0.5</priority>')
self.assertContains(response, '<lastmod>%s</lastmod>' %'%Y-%m-%d'))
+ deactivate()
def test_generic_sitemap(self):
"A minimal generic sitemap can be rendered"

0 comments on commit e8d5038

Please sign in to comment.
Something went wrong with that request. Please try again.