summaryrefslogtreecommitdiff
path: root/tests/utils_tests
diff options
context:
space:
mode:
authorThomas Chaumeny <t.chaumeny@gmail.com>2014-10-18 20:03:10 +0200
committerTim Graham <timograham@gmail.com>2014-11-03 14:14:39 -0500
commitd89f56dc4d03f6bf6602536b8b62602ec0d46d2f (patch)
treeee089210ebb576d286abbe2bee51db042ee6ee48 /tests/utils_tests
parent8b77b64f1cf878b100d1d2001c8a73938ea3e1ed (diff)
Fixed #21281 -- Made override_settings act at class level when used as a TestCase decorator.
Diffstat (limited to 'tests/utils_tests')
-rw-r--r--tests/utils_tests/test_tzinfo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/utils_tests/test_tzinfo.py b/tests/utils_tests/test_tzinfo.py
index 1b007f5f76..4d1af62f0a 100644
--- a/tests/utils_tests/test_tzinfo.py
+++ b/tests/utils_tests/test_tzinfo.py
@@ -20,6 +20,7 @@ class TzinfoTests(IgnoreDeprecationWarningsMixin, unittest.TestCase):
@classmethod
def setUpClass(cls):
+ super(TzinfoTests, cls).setUpClass()
cls.old_TZ = os.environ.get('TZ')
os.environ['TZ'] = 'US/Eastern'
@@ -41,6 +42,7 @@ class TzinfoTests(IgnoreDeprecationWarningsMixin, unittest.TestCase):
# Cleanup - force re-evaluation of TZ environment variable.
if cls.tz_tests:
time.tzset()
+ super(TzinfoTests, cls).tearDownClass()
def test_fixedoffset(self):
self.assertEqual(repr(FixedOffset(0)), '+0000')