summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-04-29 16:03:46 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-04-29 16:03:46 +0200
commita15cfb2e451feb626d141461eb058ff760bed913 (patch)
tree296763bd793ef0f3f331f3ad786bd757c6b6cf16 /django/utils
parent3e8b40f479a02e0f8c40ef3c7dae740082478b89 (diff)
Simplified timezones tests with settings_changed.
All relevant state is now properly reset whenever TIME_ZONE or USE_TZ are changed in tests.
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/timezone.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/django/utils/timezone.py b/django/utils/timezone.py
index 0bba97e736..d9d9636023 100644
--- a/django/utils/timezone.py
+++ b/django/utils/timezone.py
@@ -95,7 +95,6 @@ utc = pytz.utc if pytz else UTC()
# In order to avoid accessing the settings at compile time,
# wrap the expression in a function and cache the result.
-# If you change settings.TIME_ZONE in tests, reset _localtime to None.
_localtime = None
def get_default_timezone():