Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9979143

Browse filesBrowse files
committed
TST: make test order consistent
1 parent 2a44328 commit 9979143
Copy full SHA for 9979143

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_figure.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.