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

+1
View File
@@ -114,5 +114,6 @@ max-returns = 10
"tests/test_install_tui.py" = ["UP"] "tests/test_install_tui.py" = ["UP"]
"tests/test_install_app.py" = ["UP"] "tests/test_install_app.py" = ["UP"]
"tests/test_install_selection.py" = ["UP"] "tests/test_install_selection.py" = ["UP"]
"tests/test_install_offline.py" = ["UP"]
# Shell fixtures inside string literals keep the tabs the real files have. # Shell fixtures inside string literals keep the tabs the real files have.
"tests/test_launchers_*.py" = ["E101"] "tests/test_launchers_*.py" = ["E101"]
+6 -1
View File
@@ -28,9 +28,14 @@ import zipfile
from pathlib import Path from pathlib import Path
import install import install
from packs import parts as packs_parts
from tests.test_install_selection import FakeRepository 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 REPO_ROOT = Path(__file__).resolve().parent.parent
US = b"us bios " * 64 US = b"us bios " * 64
+2
View File
@@ -10634,6 +10634,8 @@ class CardNamesAndHelp(_CardFixtures, unittest.TestCase):
self.assertIn("E:\\", title) self.assertIn("E:\\", title)
self.assertNotIn("/mnt/e", title) self.assertNotIn("/mnt/e", title)
@unittest.skipIf(sys.version_info < BUILDER_FLOOR,
"the installer doc generator needs Python 3.9")
def test_the_card_marker_table_is_written_from_the_rules(self): def test_the_card_marker_table_is_written_from_the_rules(self):
"""The table left out the """The table left out the
SHARE drives. It is generated: every card rule and SHARE drive file SHARE drives. It is generated: every card rule and SHARE drive file