summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Bishop <stuart@stuartbishop.net>2009-09-28 22:34:18 +0700
committerStuart Bishop <stuart@stuartbishop.net>2009-09-28 22:34:18 +0700
commitb6cc3a86553823c1cc22700c9f5134106438e8a6 (patch)
treedf65c34a4831506d750f4b88a66fc3a1cc87899d
parent50a7b21c2013db03becdd0b75a2de7577321a50f (diff)
downloadpytz-b6cc3a86553823c1cc22700c9f5134106438e8a6.tar.gz
Tidy Noumea test
-rw-r--r--src/pytz/tests/test_tzinfo.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/pytz/tests/test_tzinfo.py b/src/pytz/tests/test_tzinfo.py
index 313a2e2..1fb9b2e 100644
--- a/src/pytz/tests/test_tzinfo.py
+++ b/src/pytz/tests/test_tzinfo.py
@@ -460,18 +460,10 @@ class NoumeaDSTEndTestCase(USEasternDSTStartTestCase):
class NoumeaNoMoreDSTTestCase(NoumeaDSTEndTestCase):
# Noumea dropped DST in 1997. Here we test that it stops occuring.
- tzinfo = pytz.timezone('Pacific/Noumea')
- transition_time = datetime(2037, 3, 1, 15, 00, 00, tzinfo=UTC)
- before = {
- 'tzname': 'NCT',
- 'utcoffset': timedelta(hours=11),
- 'dst': timedelta(0),
- }
- after = {
- 'tzname': 'NCT',
- 'utcoffset': timedelta(hours=11),
- 'dst': timedelta(0),
- }
+ transition_time = (
+ NoumeaDSTEndTestCase.transition_time + timedelta(days=365*10))
+ before = NoumeaDSTEndTestCase.after
+ after = NoumeaDSTEndTestCase.after
class ReferenceUSEasternDSTStartTestCase(USEasternDSTStartTestCase):