diff --git a/tests/test_install_tui.py b/tests/test_install_tui.py index 1e05847cf..824a0da2f 100644 --- a/tests/test_install_tui.py +++ b/tests/test_install_tui.py @@ -7207,6 +7207,8 @@ class AuditSeventeenAndTen(unittest.TestCase): # tui_audit_10 P2-4: a pack's own list records its systems. + @unittest.skipIf(sys.version_info < (3, 9), + "generate_pack.py's context managers need Python 3.9") def test_a_pack_records_the_systems_of_its_files(self): sys.path.insert(0, str(REPO_ROOT / "scripts")) self.addCleanup(sys.path.remove, str(REPO_ROOT / "scripts")) diff --git a/tests/test_site_r4_merge.py b/tests/test_site_r4_merge.py index c6cc726b2..6879f885a 100644 --- a/tests/test_site_r4_merge.py +++ b/tests/test_site_r4_merge.py @@ -182,7 +182,8 @@ class FaqInstallsFromWhatYouHold(unittest.TestCase): with self.subTest(card=name): self.assertIn(name, known) source = (REPO_ROOT / "install.py").read_text(encoding="utf-8") - self.assertIn('f"{card[2]} SD card ({_mount_name(mount)})"', source) + self.assertIn('f"{card[2]} {kind} ({_mount_name(mount)})"', source) + self.assertIn('else "SD card"', source) def test_a_wiped_card_links_the_copy(self): section = self._section("Lost or wiped card?") diff --git a/tests/test_site_r5_wiki.py b/tests/test_site_r5_wiki.py index e48e452ce..2907adfab 100644 --- a/tests/test_site_r5_wiki.py +++ b/tests/test_site_r5_wiki.py @@ -65,7 +65,7 @@ class NoSetupFoundGivesEachSystemItsFolder(unittest.TestCase): def test_the_label_is_the_installer_message(self): self.assertIn("**`No supported platform detected`:**", self.section) - self.assertIn('print(" No supported platform detected.")', INSTALL_PY) + self.assertIn('else " No supported platform detected.")', INSTALL_PY) def test_the_lead_names_the_menu(self): self.assertIn("Not sure? Open RetroArch's **Settings > Directory > System/BIOS**",