Skip to content

Commit

Permalink
fix delta test by using a static source time, issue #215
Browse files Browse the repository at this point in the history
  • Loading branch information
bear committed Mar 10, 2017
1 parent 3b5f74b commit 76a9769
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/TestDelta.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ class test(unittest.TestCase):

def setUp(self):
self.cal = pdt.Calendar(version=pdt.VERSION_CONTEXT_STYLE)
self.source = (self.yr, self.mth, self.dy,
self.hr, self.mn, self.sec,
self.wd, self.yd, self.isdst) = time.localtime()
self.source = (2017, 1, 1, 7, 1, 2, 6, 1, 1)

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

0 comments on commit 76a9769

Please sign in to comment.