Skip to content

Commit b90956c

Browse files
authored
tests: add module case to uv detection (#813)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent e79f1b3 commit b90956c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_env.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: MIT
22
from __future__ import annotations
33

4+
import importlib.util
45
import logging
56
import shutil
67
import subprocess
@@ -21,7 +22,8 @@
2122

2223
IS_PYPY = sys.implementation.name == 'pypy'
2324
IS_WINDOWS = sys.platform.startswith('win')
24-
MISSING_UV = not shutil.which('uv')
25+
26+
MISSING_UV = importlib.util.find_spec('uv') is None and not shutil.which('uv')
2527

2628

2729
@pytest.mark.isolated

0 commit comments

Comments
 (0)