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

Skip to content

Commit 9979143

Browse files
committed
TST: make test order consistent
1 parent 2a44328 commit 9979143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,13 +742,13 @@ def test_figure_clear():
742742

743743
# e.1) removing just the axes leaves the subplot
744744
mainaxes.remove()
745-
assert [subaxes] == fig.axes
745+
assert fig.axes == [subaxes]
746746

747747
# e.2) removing just the subaxes leaves the subplot
748748
# and subfigure
749749
mainaxes = fig.add_subplot(gs[1])
750750
subaxes.remove()
751-
assert [mainaxes] == fig.axes
751+
assert fig.axes == [mainaxes]
752752
assert subfig in fig.subfigs
753753

754754
# e.3) clearing the subfigure leaves the subplot

0 commit comments

Comments
 (0)