From d64ae1b0b170e5cbbc3b303f0d366bfa10a103f5 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Fri, 23 Oct 2026 00:26:59 +0200 Subject: [PATCH] tests: the smoke test reads the engine's own words from .reason, the message is plain (X01) --- tests/terminal/test_engine_smoke.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/terminal/test_engine_smoke.py b/tests/terminal/test_engine_smoke.py index 544501a2..40208258 100644 --- a/tests/terminal/test_engine_smoke.py +++ b/tests/terminal/test_engine_smoke.py @@ -50,7 +50,7 @@ class BinarySmoke(unittest.TestCase): exe = make_engine(folder, "echo 'No device of requested type available' >&2\nexit 250\n", "echo No device of requested type available 1>&2\r\nexit /b 250\r\n") with self.assertRaises(updater.TestStartFailed) as e: updater.binary_smoke(self.component(folder, exe)) - self.assertIn("No device of requested type", str(e.exception)) + self.assertIn("No device of requested type", e.exception.reason) def test_exit_2_without_a_list_of_options_still_fails(self): with tempfile.TemporaryDirectory() as tmp: