Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2bb218 commit 7f5ff2bCopy full SHA for 7f5ff2b
1 file changed
lib/matplotlib/tests/test_dates.py
@@ -129,20 +129,11 @@ def test_RRuleLocator():
129
130
131
def test_RRuleLocator_dayrange():
132
- ret = 0
133
-
134
- try:
135
- loc = mdates.DayLocator()
136
- x1 = datetime.datetime(year=1, month=1, day=1)
137
- y1 = datetime.datetime(year=1, month=1, day=16)
138
- loc.tick_values(x1, y1)
139
- except OverflowError:
140
- # On success, no overflow error shall be thrown
141
- ret = 1
142
- except:
143
- pass
144
145
- assert ret == 0
+ loc = mdates.DayLocator()
+ x1 = datetime.datetime(year=1, month=1, day=1)
+ y1 = datetime.datetime(year=1, month=1, day=16)
+ loc.tick_values(x1, y1)
+ # On success, no overflow error shall be thrown
146
147
148
@image_comparison(baseline_images=['DateFormatter_fractionalSeconds'],
0 commit comments