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.
2 parents 338e1e9 + 4389648 commit 2632ac9Copy full SHA for 2632ac9
1 file changed
lib/matplotlib/tests/test_dates.py
@@ -152,13 +152,15 @@ def test_too_many_date_ticks(caplog):
152
'Attempting to set identical left == right' in str(rec[0].message)
153
ax.plot([], [])
154
ax.xaxis.set_major_locator(mdates.DayLocator())
155
- fig.canvas.draw()
+ v = ax.xaxis.get_major_locator()()
156
+ assert len(v) > 1000
157
# The warning is emitted multiple times because the major locator is also
158
# called both when placing the minor ticks (for overstriking detection) and
159
# during tick label positioning.
160
assert caplog.records and all(
161
record.name == "matplotlib.ticker" and record.levelname == "WARNING"
162
for record in caplog.records)
163
+ assert len(caplog.records) > 0
164
165
166
@image_comparison(['RRuleLocator_bounds.png'])
0 commit comments