Skip to content

Commit ca5c5a5

Browse files
committed
Use pytest.importorskip for importlib.metadata
1 parent 282b873 commit ca5c5a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_inplace_hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
from inspect import cleandoc
32
from os.path import abspath, dirname
43
from os.path import join as pjoin
@@ -90,8 +89,9 @@ def test_intree_backend_loaded_from_correct_backend_path():
9089
assert res == ["intree_backend_called"]
9190

9291

93-
@pytest.mark.skipif(sys.version_info < (3, 8), reason="no importlib.metadata")
9492
def test_intree_backend_importlib_metadata_interoperation():
93+
pytest.importorskip("importlib.metadata")
94+
9595
hooks = get_hooks("pkg_intree_metadata", backend="intree_backend")
9696
assert hooks.get_requires_for_build_sdist({}) == [
9797
"_test_backend.importlib_metadata",

0 commit comments

Comments
 (0)