Skip to content

Commit 76a9769

Browse files
committed
fix delta test by using a static source time, issue #215
1 parent 3b5f74b commit 76a9769

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/TestDelta.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ class test(unittest.TestCase):
2424

2525
def setUp(self):
2626
self.cal = pdt.Calendar(version=pdt.VERSION_CONTEXT_STYLE)
27-
self.source = (self.yr, self.mth, self.dy,
28-
self.hr, self.mn, self.sec,
29-
self.wd, self.yd, self.isdst) = time.localtime()
27+
self.source = (2017, 1, 1, 7, 1, 2, 6, 1, 1)
3028

3129
def assertDelta(self, ts, years=None, months=None, **deltakw):
3230
ts = ts[0]

0 commit comments

Comments
 (0)