Django

Code

Changeset 7264

Show
Ignore:
Timestamp:
03/17/08 11:03:46 (4 months ago)
Author:
mtredinnick
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/i18n/misc.py

    r7120 r7264  
    8888""" 
    8989 
    90 # Python 2.3 returns slightly different results for completely bogus locales, 
    91 # so we omit this test for that anything below 2.4. It's relatively harmless in 
    92 # any cases (GIGO). This also means this won't be executed on Jython currently, 
    93 # but life's like that sometimes. 
    94 if sys.version_info >= (2, 4): 
     90# Python 2.3 and 2.4 return slightly different results for completely bogus 
     91# locales, so we omit this test for that anything below 2.4. It's relatively 
     92# harmless in any cases (GIGO). This also means this won't be executed on 
     93# Jython currently, but life's like that sometimes. (On those platforms, 
     94# passing in a truly bogus locale will get you the default locale back.) 
     95if sys.version_info >= (2, 5): 
    9596    tests += """ 
    9697This test assumes there won't be a Django translation to a US variation