Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed dateformat unit tests so that they use the en-us language. Th…

…ey 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
  • Loading branch information...
commit ba87f474dc1883aff039c5fbd659bd70e749ee71 1 parent 31d1838
Adrian Holovaty adrianholovaty authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/othertests/dateformat.py
6 tests/othertests/dateformat.py
View
@@ -63,11 +63,13 @@
'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)
Please sign in to comment.
Something went wrong with that request. Please try again.