8000 TST · matplotlib/matplotlib@17482b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17482b7

Browse files
committed
TST
1 parent cb84021 commit 17482b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/tests/test_legend.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import collections
22
import platform
33
from unittest import mock
4+
import warnings
45

56
import numpy as np
67
import pytest
@@ -518,7 +519,9 @@ def test_text_nohandler_warning():
518519
# this should _not_ warn:
519520
f, ax = plt.subplots()
520521
ax.pcolormesh(np.random.uniform(0, 1, (10, 10)))
521-
ax.get_legend_handles_labels()
522+
with warnings.catch_warnings():
523+
warnings.simplefilter("error")
524+
ax.get_legend_handles_labels()
522525

523526

524527
def test_empty_bar_chart_with_legend():

0 commit comments

Comments
 (0)
0