From 3cc91fc021b90e2db54ed3b0aed3abfc8b449598 Mon Sep 17 00:00:00 2001 From: Mark Keller <7525285+keller-mark@users.noreply.github.com> Date: Wed, 22 Jan 2025 11:06:15 -0500 Subject: [PATCH] Use pkg_version --- tests/test_plotting.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_plotting.py b/tests/test_plotting.py index a6cf6e6153..bb550ffdb2 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -1,7 +1,6 @@ from __future__ import annotations from functools import partial -from importlib.metadata import version from itertools import chain, combinations, repeat from pathlib import Path from typing import TYPE_CHECKING @@ -1184,7 +1183,7 @@ def test_scatterplots(image_comparer, pbmc_scatterplots, id, fn): @pytest.mark.skipif( - Version(version("numba")) < Version("0.61.0"), + pkg_version("numba") < Version("0.61.0"), reason="Same random_state value produces different UMAP results between numba versions. See #2946", ) @pytest.mark.parametrize(