test_direct_wheel_url_returns_none_without_cuda_major set sys.modules "utils"/"utils.hardware" (and structlog/loggers) to MagicMocks without cleanup. Once run.py started importing utils.cpu_threads (#5760), the leaked non-package utils made later tests in the same job fail with 'No module named utils.cpu_threads; utils is not a package', e.g. all of test_selection_logic.py's TestStudioLocalhostIpv6Warning. Use monkeypatch.setitem so the stubs are undone after the test. |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| smoke_test_llama_prebuilt.py | ||
| smoke_test_parallel_studio_home.py | ||
| test_install_llama_prebuilt_logic.py | ||
| test_llama_pr_force_and_source.py | ||
| test_macos_version_compat.py | ||
| test_pr4562_bugfixes.py | ||
| test_rocm_support.py | ||
| test_selection_logic.py | ||