diff --git a/pyproject.toml b/pyproject.toml index 103074c95..5bdbf7a04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -114,5 +114,6 @@ max-returns = 10 "tests/test_install_tui.py" = ["UP"] "tests/test_install_app.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. "tests/test_launchers_*.py" = ["E101"] diff --git a/tests/test_install_offline.py b/tests/test_install_offline.py index effaea5a9..ba4ad020d 100644 --- a/tests/test_install_offline.py +++ b/tests/test_install_offline.py @@ -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 diff --git a/tests/test_install_tui.py b/tests/test_install_tui.py index b78221c42..da4b79ddb 100644 --- a/tests/test_install_tui.py +++ b/tests/test_install_tui.py @@ -10634,6 +10634,8 @@ class CardNamesAndHelp(_CardFixtures, unittest.TestCase): self.assertIn("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): """The table left out the SHARE drives. It is generated: every card rule and SHARE drive file