Skip to content

Commit b2442ba

Browse files
committed
Use importorskip
1 parent 11b2c78 commit b2442ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_store/test_core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import importlib
21
import tempfile
32
from pathlib import Path
43

@@ -120,10 +119,10 @@ async def test_make_store_path_invalid() -> None:
120119
await make_store_path(1) # type: ignore[arg-type]
121120

122121

123-
@pytest.mark.skipif(not importlib.util.find_spec("requests"), reason="requires requests")
124-
@pytest.mark.skipif(not importlib.util.find_spec("aiohttp"), reason="requires aiohttp")
125122
async def test_make_store_path_fsspec(monkeypatch) -> None:
126123
pytest.importorskip("fsspec")
124+
pytest.importorskip("requests")
125+
pytest.importorskip("aiohttp")
127126
store_path = await make_store_path("http://foo.com/bar")
128127
assert isinstance(store_path.store, FsspecStore)
129128

0 commit comments

Comments
 (0)