Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweaked an i18n test that is a bit sensitive to Python versions. It r…

…eturns

unexpected results on Python 2.4, so we ignore it there, too.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fac84c0bf4ca1481e7bf5b4dd43adf22d95dd150 1 parent b1dbff7
@malcolmt malcolmt authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 tests/regressiontests/i18n/misc.py
View
11 tests/regressiontests/i18n/misc.py
@@ -87,11 +87,12 @@
'es-ar'
"""
-# Python 2.3 returns slightly different results for completely bogus locales,
-# so we omit this test for that anything below 2.4. It's relatively harmless in
-# any cases (GIGO). This also means this won't be executed on Jython currently,
-# but life's like that sometimes.
-if sys.version_info >= (2, 4):
+# Python 2.3 and 2.4 return slightly different results for completely bogus
+# locales, so we omit this test for that anything below 2.4. It's relatively
+# harmless in any cases (GIGO). This also means this won't be executed on
+# Jython currently, but life's like that sometimes. (On those platforms,
+# passing in a truly bogus locale will get you the default locale back.)
+if sys.version_info >= (2, 5):
tests += """
This test assumes there won't be a Django translation to a US variation
of the Spanish language, a safe assumption. When the user sets it
Please sign in to comment.
Something went wrong with that request. Please try again.