fix: hold the 3.8 screen tests off build modules

The 3.8 run of tests.test_install_tui failed on 9ffbedbb1: installer_build
now caches with functools.cache, and test_install_offline imports
packs.parts, which reaches the core.cli floor exit. The card marker test
skips below 3.9 like the other build-script tests, and packs.parts loads
only above that floor.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 11:18:25 +01:00
1 parent 1561af6a4a
commit 6d7f81d010
3 files changed
+9 -1

No files matched your search

+6 -1
View File
@@ -28,9 +28,14 @@ import zipfile
from pathlib import Path
import install
from packs import parts as packs_parts
from tests.test_install_selection import FakeRepository
# The screen tests run under 3.8 and import this module for its payloads. The
# build scripts stop below 3.9 (core.cli), so their modules load only above
# that floor.
if sys.version_info >= (3, 9):
from packs import parts as packs_parts
REPO_ROOT = Path(__file__).resolve().parent.parent
US = b"us bios " * 64