@samitouri / QOSamiQemu / commits / e3c1d0111c

tests/functional/ppc/test_ppe42: Fix warning from the latest version of pylint

The pylint from Fedora 44 found a new issue in this test: tests/functional/ppc/test_ppe42.py:63:20: W0101: Unreachable code (unreachable) And indeed, the "break" is unreachable since the previous self.fail() always aborts immediately. Thus let's remove the "break" to make pylint happy again. Message-ID: <20260427080731.389061-1-thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>

Thomas Huth committed Apr 27, 2026 at 10:04 UTC e3c1d0111cab08263646f9ab8d8f6a2b3b51abe4
1 file changed -1
tests/functional/ppc/test_ppe42.py
-1
@@ -60,7 +60,6 @@ class Ppe42Machine(QemuSystemTest):
60 self.log.debug(f"Execution stopped: {e}")
61 self.log.debug("Exiting due to test failure")
62 self.fail("Failure detected!")
63 - break
63 else:
64 self.fail("Timed out waiting for test completion.")
65