From a15cfb2e451feb626d141461eb058ff760bed913 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 29 Apr 2012 16:03:46 +0200 Subject: Simplified timezones tests with settings_changed. All relevant state is now properly reset whenever TIME_ZONE or USE_TZ are changed in tests. --- django/utils/timezone.py | 1 - 1 file changed, 1 deletion(-) (limited to 'django/utils') 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(): -- cgit v1.3