Skip to content

Commit

Permalink
tests: add module case to uv detection (#813)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Sep 5, 2024
1 parent e79f1b3 commit b90956c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_env.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: MIT
from __future__ import annotations

import importlib.util
import logging
import shutil
import subprocess
Expand All @@ -21,7 +22,8 @@

IS_PYPY = sys.implementation.name == 'pypy'
IS_WINDOWS = sys.platform.startswith('win')
MISSING_UV = not shutil.which('uv')

MISSING_UV = importlib.util.find_spec('uv') is None and not shutil.which('uv')


@pytest.mark.isolated
Expand Down

0 comments on commit b90956c

Please sign in to comment.