diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-09 20:36:23 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-09 20:36:23 +0000 |
| commit | ba87f474dc1883aff039c5fbd659bd70e749ee71 (patch) | |
| tree | 8632d7c5237106b0185a24ccf551270890c348b4 /tests | |
| parent | 31d18380f9dd7b66dfd89857f116a4995990e315 (diff) | |
Changed dateformat unit tests so that they use the en-us language. They were failing because they depended on the current user's LANGUAGE_CODE setting
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/othertests/dateformat.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/othertests/dateformat.py b/tests/othertests/dateformat.py index fe8bc8256d..c4cfd943aa 100644 --- a/tests/othertests/dateformat.py +++ b/tests/othertests/dateformat.py @@ -63,11 +63,13 @@ NotImplementedError '1979 188 CET' """ -from django.utils import dateformat -format = dateformat.format +from django.utils import dateformat, translation import datetime, os, time +format = dateformat.format os.environ['TZ'] = 'Europe/Copenhagen' +translation.activate('en-us') + time.tzset() my_birthday = datetime.datetime(1979, 7, 7, 22, 00) |
