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 1c8d8ee commit 46e9cc4Copy full SHA for 46e9cc4
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