From ba87f474dc1883aff039c5fbd659bd70e749ee71 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 9 Nov 2005 20:36:23 +0000 Subject: [PATCH] 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 --- tests/othertests/dateformat.py | 6 ++++-- 1 file 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)