Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c18af0

Browse files
committed
Fix SelectorWidget.visible deprecation
1 parent 3155d7e commit 0c18af0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_widgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ def test_deprecation_selector_visible_attribute(ax):
139139

140140
with pytest.warns(mpl.MatplotlibDeprecationWarning,
141141
match="was deprecated in Matplotlib 3.8"):
142-
tool.visible = False
142+
tool.visible
143+
143144
assert not tool.get_visible()
144145

145146

0 commit comments

Comments
 (0)