Skip to content

Commit

Permalink
Fix test_animate_list_1d_multiline for matplotlib-3.7.x
Browse files Browse the repository at this point in the history
Matplotlib changed the types of the subplots, so the old check does not
work.
  • Loading branch information
johnomotani committed Mar 16, 2023
1 parent 503919c commit 49ee207
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions xbout/tests/test_animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,7 @@ def test_animate_list_1d_multiline(self, create_test_file):
assert isinstance(animation.blocks[3], Line)

# check there were actually 3 subplots
assert (
len(
[
x
for x in plt.gcf().get_axes()
if isinstance(x, matplotlib.axes.Subplot)
]
)
== 3
)
assert len([x for x in plt.gcf().get_axes() if x.get_xlabel() != ""]) == 3

plt.close()

Expand Down

0 comments on commit 49ee207

Please sign in to comment.