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

Skip to content

Commit 0a48bb6

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/tests/test_widgets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ 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
143-
assert not tool.get_visible()
142+
tool.visible
144143

145144

146145
@pytest.mark.parametrize('drag_from_anywhere, new_center',

0 commit comments

Comments
 (0)