Skip to content

Commit 31b9108

Browse files
committed
Test: work with ancient matplotlib
1 parent 52f786e commit 31b9108

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xbout/tests/test_animate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ def test_animate_list_1d_default(self, create_test_file):
179179
def test_animate_list_1d_multiline(self, create_test_file):
180180
save_dir, ds = create_test_file
181181

182-
if matplotlib._version.version_tuple >= (3, 7):
182+
if hasattr(
183+
matplotlib._version, "version_tuple"
184+
) and matplotlib._version.version_tuple >= (3, 7):
183185
pytest.xfail("Broken with new matplotlib")
184186

185187
animation = ds.isel(y=2, z=3).bout.animate_list(

0 commit comments

Comments
 (0)