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 b9a0039 commit 2bd85beCopy full SHA for 2bd85be
numcodecs/tests/test_entrypoints_backport.py
@@ -1,13 +1,13 @@
1
+import importlib
2
import os.path
-import pkgutil
3
import sys
4
from multiprocessing import Process
5
6
import pytest
7
8
import numcodecs.registry
9
10
-if not pkgutil.find_loader("importlib_metadata"): # pragma: no cover
+if not importlib.util.find_spec("importlib_metadata").loader: # pragma: no cover
11
pytest.skip(
12
"This test module requires importlib_metadata to be installed",
13
allow_module_level=True,
0 commit comments