We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a698d commit ab86bccCopy full SHA for ab86bcc
numcodecs/tests/test_entrypoints_backport.py
@@ -1,4 +1,4 @@
1
-import importlib
+import importlib.util
2
import os.path
3
import sys
4
from multiprocessing import Process
@@ -7,7 +7,8 @@
7
8
import numcodecs.registry
9
10
-if not importlib.util.find_spec("importlib_metadata").loader: # pragma: no cover
+importlib_spec = importlib.util.find_spec("importlib_metadata")
11
+if importlib_spec is None or importlib_spec.loader is None: # pragma: no cover
12
pytest.skip(
13
"This test module requires importlib_metadata to be installed",
14
allow_module_level=True,
0 commit comments