summaryrefslogtreecommitdiff
path: root/tests/regressiontests/utils/dateformat.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-11-02 08:27:00 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-11-02 08:27:00 +0000
commite3f07d2b4c270afd4133890b155e6b032e91f438 (patch)
tree6a458a203c7c1848bce77285caef13b9aa095ff0 /tests/regressiontests/utils/dateformat.py
parent30ebd268be0f960082c7d721d911d699f67dd0a9 (diff)
[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
Diffstat (limited to 'tests/regressiontests/utils/dateformat.py')
-rw-r--r--tests/regressiontests/utils/dateformat.py10
1 files changed, 0 insertions, 10 deletions
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)