File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -152,13 +152,15 @@ def test_too_many_date_ticks(caplog):
152
152
'Attempting to set identical left == right' in str (rec [0 ].message )
153
153
ax .plot ([], [])
154
154
ax .xaxis .set_major_locator (mdates .DayLocator ())
155
- fig .canvas .draw ()
155
+ v = ax .xaxis .get_major_locator ()()
156
+ assert len (v ) > 1000
156
157
# The warning is emitted multiple times because the major locator is also
157
158
# called both when placing the minor ticks (for overstriking detection) and
158
159
# during tick label positioning.
159
160
assert caplog .records and all (
160
161
record .name == "matplotlib.ticker" and record .levelname == "WARNING"
161
162
for record in caplog .records )
163
+ assert len (caplog .records ) > 0
162
164
163
165
164
166
@image_comparison (['RRuleLocator_bounds.png' ])
You can’t perform that action at this time.
0 commit comments