From 806cb6c71922ebd74a7861b567750be367267b80 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Thu, 5 Nov 2026 13:01:25 +0100 Subject: [PATCH] fix: expect code 2 for a typo in two more tests --- tests/test_install.py | 2 +- tests/test_install_cores.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_install.py b/tests/test_install.py index 43d3a31c7..06ec275ef 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -4894,7 +4894,7 @@ class TheEmulatorNamesHaveTheirOwnListing(unittest.TestCase, _LoopbackRun): def test_the_hint_counts_what_the_listing_prints(self): proc = _install_run(self.env, "--platform", "retroarch", "--no-input", "--emulator", "nope") - self.assertEqual(proc.returncode, 1, proc.stdout) + self.assertEqual(proc.returncode, 2, proc.stdout) found = re.search(r"--list-emulators lists all (\d+)\.", proc.stderr) self.assertIsNotNone(found, proc.stderr) listing = _install_run(self.env, "--platform", "retroarch", "--no-input", diff --git a/tests/test_install_cores.py b/tests/test_install_cores.py index c0c057470..e379dde6d 100644 --- a/tests/test_install_cores.py +++ b/tests/test_install_cores.py @@ -415,7 +415,7 @@ class AnUnknownTargetStopsTheRunFirst(unittest.TestCase): contextlib.redirect_stderr(io.StringIO()) as err: with self.assertRaises(SystemExit) as stop: install.main() - self.assertEqual(stop.exception.code, 1) + self.assertEqual(stop.exception.code, 2) self.assertIn("unknown target 'steamos' for RetroArch", err.getvalue()) self.assertIn("Nothing was installed", err.getvalue()) fetch.assert_not_called()