8000 Change test to check with the old style checkbox · matplotlib/matplotlib@a1ce87b · GitHub
[go: up one dir, main page]

Skip to content

Commit a1ce87b

Browse files
committed
Change test to check with the old style checkbox
1 parent fee7457 commit a1ce87b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/matplotlib/tests/test_widgets.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,8 +1006,12 @@ def test_check_radio_buttons_image():
10061006
rb = widgets.RadioButtons(rax1, ('Radio 1', 'Radio 2', 'Radio 3'))
10071007
with pytest.warns(DeprecationWarning):
10081008
rb.circles # Trigger the old-style elliptic radiobuttons.
1009-
widgets.CheckButtons(rax2, ('Check 1', 'Check 2', 'Check 3'),
1010-
(False, True, True))
1009+
cb = widgets.CheckButtons(rax2, ('Check 1', 'Check 2', 'Check 3'),
1010+
(False, True, True))
1011+
with pytest.warns(DeprecationWarning):
1012+
# Trigger old-style Rectangle check boxes
1013+
cb.rectangles
1014+
cb.lines
10111015

10121016

10131017
@check_figures_equal(extensions=["png"])

0 commit comments

Comments
 (0)
0