summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-03-17 16:03:46 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-03-17 16:03:46 +0000
commitfac84c0bf4ca1481e7bf5b4dd43adf22d95dd150 (patch)
tree2164002e8e3edb350509d57da91aadf147e0a259
parentb1dbff729fa11be2a02461e5fec9ba0eb1c2ffe6 (diff)
Tweaked an i18n test that is a bit sensitive to Python versions. It returns
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
-rw-r--r--tests/regressiontests/i18n/misc.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/regressiontests/i18n/misc.py b/tests/regressiontests/i18n/misc.py
index 6ed8afaee3..f8f35ad4e4 100644
--- a/tests/regressiontests/i18n/misc.py
+++ b/tests/regressiontests/i18n/misc.py
@@ -87,11 +87,12 @@ source tree.
'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