From e3f07d2b4c270afd4133890b155e6b032e91f438 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 2 Nov 2009 08:27:00 +0000 Subject: [1.1.X] Fixed #12127 -- Corrected teardown of dateformat tests. Thanks to apollo13 for the report, and Karen Tracey for the debugging help. Backport of r11705 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11706 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/utils/dateformat.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/regressiontests/utils/dateformat.py') diff --git a/tests/regressiontests/utils/dateformat.py b/tests/regressiontests/utils/dateformat.py index 2ff3441486..b80010f8d8 100644 --- a/tests/regressiontests/utils/dateformat.py +++ b/tests/regressiontests/utils/dateformat.py @@ -5,16 +5,6 @@ from django.utils.dateformat import format from django.utils.tzinfo import FixedOffset, LocalTimezone class DateFormatTests(TestCase): - def setUp(self): - self.old_TZ = os.environ.get('TZ') - os.environ['TZ'] = 'Europe/Copenhagen' - - def tearDown(self): - if self.old_TZ is None: - del os.environ['TZ'] - else: - os.environ['TZ'] = self.old_TZ - def test_date(self): d = date(2009, 5, 16) self.assertEquals(date.fromtimestamp(int(format(d, 'U'))), d) -- cgit v1.3