Skip to content

Commit

Permalink
Ensure version check works if version_tuple is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Jun 11, 2024
1 parent f7492ed commit 43715c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ def test_Quiver(self):

@animation_compare(baseline_images="Blocks/Surface", nframes=3)
def test_Surface(self):
if mpl._version.version_tuple < (3, 9):
mpl_version = tuple([int(x) for x in mpl._version.version.split(".")[:3]])
if mpl_version < (3, 9):
pytest.xfail("Updated for MPL 3.9.0")
x = np.linspace(-2 * np.pi, 2 * np.pi, 100)
t = np.linspace(0, 2 * np.pi, 3)
Expand Down

0 comments on commit 43715c8

Please sign in to comment.