Skip to content

Commit 3dbd8ca

Browse files
committed
TST: make mosaic order test more pathological
1 parent 00e9848 commit 3dbd8ca

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,12 +870,17 @@ def test_user_order(self, str_pattern):
870870
assert list(fig.axes) == list(ax_dict.values())
871871

872872
def test_nested_user_order(self):
873-
layout = [["A", [["B", "C"], ["D", "E"]]],
874-
["F", "G"]]
873+
layout = [
874+
["A", [["B", "C"],
875+
["D", "E"]]],
876+
["F", "G"],
877+
[".", [["H", [["I"],
878+
["."]]]]]
879+
]
875880

876881
fig = plt.figure()
877882
ax_dict = fig.subplot_mosaic(layout)
878-
assert list(ax_dict) == list("ABCDEFG")
883+
assert list(ax_dict) == list("ABCDEFGHI")
879884
assert list(fig.axes) == list(ax_dict.values())
880885

881886

0 commit comments

Comments
 (0)