Skip to content

Commit e289d77

Browse files
committed
correct test_RRuleLocator_dayrange
1 parent 59cb7b0 commit e289d77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_dates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def test_RRuleLocator():
130130

131131
def test_RRuleLocator_dayrange():
132132
loc = mdates.DayLocator()
133-
x1 = datetime.datetime(year=1, month=1, day=1)
134-
y1 = datetime.datetime(year=1, month=1, day=16)
133+
x1 = datetime.datetime(year=1, month=1, day=1, tzinfo=pytz.UTC)
134+
y1 = datetime.datetime(year=1, month=1, day=16, tzinfo=pytz.UTC)
135135
loc.tick_values(x1, y1)
136136
# On success, no overflow error shall be thrown
137137

0 commit comments

Comments
 (0)