summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-03-13 06:59:04 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-03-13 06:59:04 +0000
commitaa900c39a8e3134d09e2285cce030c1b33b1e820 (patch)
treeab3ba761304eef527a3422f3c5080fc197bcc88d /tests
parentf7daa38a0025da1613e772af2aec419169b086cc (diff)
Fixed #17882 -- Reopened the database connection when a test changes time zone settings. Thanks brodie for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/timezones/tests.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/modeltests/timezones/tests.py b/tests/modeltests/timezones/tests.py
index a8d2c0c332..171c2187f2 100644
--- a/tests/modeltests/timezones/tests.py
+++ b/tests/modeltests/timezones/tests.py
@@ -63,8 +63,6 @@ class BaseDateTimeTests(TestCase):
self._old_tz = os.environ.get('TZ')
os.environ['TZ'] = 'Africa/Nairobi'
time.tzset()
- # Create a new cursor, for test cases that change the value of USE_TZ.
- connection.close()
@classmethod
def tearDownClass(self):