Fix prefer_past test at end of year

This commit is contained in:
Matt Furden
2017-12-03 00:47:12 -08:00
parent 5cf40b2d2e
commit 773cdecab5
+4 -1
View File
@@ -188,7 +188,10 @@ def test_when_past():
past_date = maya.when(next_month, prefer_past=True)
assert future_date.year == this_year
assert past_date.year == last_year
if next_month == '1':
assert past_date.year == this_year
else:
assert past_date.year == last_year
def test_datetime_to_timezone():