diff --git a/tests/TestStartTimeFromSourceTime.py b/tests/TestStartTimeFromSourceTime.py index 2401874..3b15c64 100644 --- a/tests/TestStartTimeFromSourceTime.py +++ b/tests/TestStartTimeFromSourceTime.py @@ -32,13 +32,12 @@ def testEndOfPhrases(self): # to get the end of the current month (yr, mth, dy, hr, mn, sec, _, _, _) = s.timetuple() - m = mth + s = datetime.datetime(yr, mth, dy, 13, 14, 15) + mth += 1 if mth > 12: mth = 1 yr += 1 - - s = datetime.datetime(yr, m, dy, 13, 14, 15) t = datetime.datetime( yr, mth, 1, 13, 14, 15) + datetime.timedelta(days=-1)