Changeset 7120 for django/trunk/tests/regressiontests/i18n
- Timestamp:
- 02/15/08 09:17:48 (11 months ago)
- Files:
-
- django/trunk/tests/regressiontests/i18n/misc.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/i18n/misc.py
r7091 r7120 1 import sys 2 1 3 tests = """ 2 4 >>> from django.utils.translation.trans_real import parse_accept_lang_header … … 84 86 >>> g(r) 85 87 'es-ar' 88 """ 86 89 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): 95 tests += """ 87 96 This test assumes there won't be a Django translation to a US variation 88 97 of the Spanish language, a safe assumption. When the user sets it … … 92 101 >>> g(r) 93 102 'es' 103 """ 94 104 105 tests += """ 95 106 This tests the following scenario: there isn't a main language (zh) 96 107 translation of Django but there is a translation to variation (zh_CN)
