Django

Code

Show
Ignore:
Timestamp:
02/15/08 09:17:48 (11 months ago)
Author:
mtredinnick
Message:

Removed a portion of the test suite that was a pain on Python 2.3.

No actual useful functionality is lost by this; it's just a 'keep the Buildbot
happy" thing.

Files:

Legend:

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

    r7091 r7120  
     1import sys 
     2 
    13tests = """ 
    24>>> from django.utils.translation.trans_real import parse_accept_lang_header 
     
    8486>>> g(r) 
    8587'es-ar' 
     88""" 
    8689 
     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. 
     94if sys.version_info >= (2, 4): 
     95    tests += """ 
    8796This test assumes there won't be a Django translation to a US variation 
    8897of the Spanish language, a safe assumption. When the user sets it 
     
    92101>>> g(r) 
    93102'es' 
     103""" 
    94104 
     105tests += """ 
    95106This tests the following scenario: there isn't a main language (zh) 
    96107translation of Django but there is a translation to variation (zh_CN)