fix: expect code 2 for a typo in two more tests

This commit is contained in:
Abdessamad Derraz committed 2026-11-05 13:01:25 +01:00
1 parent 9c128e46b2
commit 806cb6c719
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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()