From fac84c0bf4ca1481e7bf5b4dd43adf22d95dd150 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 17 Mar 2008 16:03:46 +0000 Subject: [PATCH] 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 --- tests/regressiontests/i18n/misc.py | 11 ++++++----- 1 file 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