diff mbox series

[13/41] oeqa: Use bare raise to re-raise exceptions

Message ID 20261115084845.701136-13-richard.purdie@linuxfoundation.org
State New
Headers show
Series [01/41] oeqa/loader: Drop code for pre python 3.5 | expand

Commit Message

Richard Purdie Nov. 15, 2026, 8:48 a.m. UTC
A bare raise re-raises the current exception without needing to name it.

AI-Generated: Uses Claude Opus 5.5
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/lib/oeqa/selftest/cases/devtool.py    | 2 +-
 meta/lib/oeqa/selftest/cases/manifest.py   | 2 +-
 meta/lib/oeqa/selftest/cases/recipetool.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index c748c8504bb..3400f90a906 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -2591,7 +2591,7 @@  class DevtoolUpgradeTests(DevtoolBase):
                     if e.errno == errno.EROFS:
                         return False
                     else:
-                        raise e
+                        raise
                 if p == "lib":
                     # Can race with other tests
                     self.add_command_to_tearDown('rmdir --ignore-fail-on-non-empty %s' % dstdir)
diff --git a/meta/lib/oeqa/selftest/cases/manifest.py b/meta/lib/oeqa/selftest/cases/manifest.py
index 08b0ceca05b..73d262bb43b 100644
--- a/meta/lib/oeqa/selftest/cases/manifest.py
+++ b/meta/lib/oeqa/selftest/cases/manifest.py
@@ -34,7 +34,7 @@  class VerifyManifest(OESelftestTestCase):
         except OSError as e:
             self.logger.debug("{}: checking of {} failed"\
                     .format(self.classname, manifest))
-            raise e
+            raise
 
         return manifest_errors
 
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py
index e2365141ac5..a7c7ed7ddbc 100644
--- a/meta/lib/oeqa/selftest/cases/recipetool.py
+++ b/meta/lib/oeqa/selftest/cases/recipetool.py
@@ -878,7 +878,7 @@  class RecipetoolTests(RecipetoolBase):
                     if e.errno == errno.EROFS:
                         return False
                     else:
-                        raise e
+                        raise
                 if p == "lib":
                     # Can race with other tests
                     self.add_command_to_tearDown('rmdir --ignore-fail-on-non-empty %s' % dstdir)