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
This commit is contained in:
Malcolm Tredinnick 2008-03-17 16:03:46 +00:00
parent b1dbff729f
commit fac84c0bf4
1 changed files with 6 additions and 5 deletions

View File

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