There was an error while loading. Please reload this page.
1 parent e79f1b3 commit b90956cCopy full SHA for b90956c
1 file changed
tests/test_env.py
@@ -1,6 +1,7 @@
1
# SPDX-License-Identifier: MIT
2
from __future__ import annotations
3
4
+import importlib.util
5
import logging
6
import shutil
7
import subprocess
@@ -21,7 +22,8 @@
21
22
23
IS_PYPY = sys.implementation.name == 'pypy'
24
IS_WINDOWS = sys.platform.startswith('win')
-MISSING_UV = not shutil.which('uv')
25
+
26
+MISSING_UV = importlib.util.find_spec('uv') is None and not shutil.which('uv')
27
28
29
@pytest.mark.isolated
0 commit comments