Commit e114f440 authored by Karen Tracey's avatar Karen Tracey
Browse files

[1.1.X] Repeat the setUp/tearDown changes made in r11699 for the tests

converted in r11694. This allows the dateformat tests to pass
on Windows. 


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 13d83908
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -5,11 +5,14 @@ import datetime, os, time

class DateFormatTests(TestCase):
    def setUp(self):
        self.old_TZ = os.environ['TZ']
        self.old_TZ = os.environ.get('TZ')
        os.environ['TZ'] = 'Europe/Copenhagen'
        translation.activate('en-us')

    def tearDown(self):
        if self.old_TZ is None:
            del os.environ['TZ']
        else:
            os.environ['TZ'] = self.old_TZ

    def test_empty_format(self):