diff mbox series

[kms-test,2/7] tests: modes: Fix access to RuntimeError message text

Message ID 20220731152024.24090-3-laurent.pinchart@ideasonboard.com (mailing list archive)
State New
Delegated to: Kieran Bingham
Headers show
Series Miscellaneous fixes and improvements | expand

Commit Message

Laurent Pinchart July 31, 2022, 3:20 p.m. UTC
The RuntimeError class has no message member. Use args[0] instead.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 tests/kms-test-modes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/kms-test-modes.py b/tests/kms-test-modes.py
index c47848904ec4..14463add7802 100755
--- a/tests/kms-test-modes.py
+++ b/tests/kms-test-modes.py
@@ -60,7 +60,7 @@  class ModesTest(kmstest.KMSTest):
                     self.progress(i+1, len(modes))
                     self.test_mode(connector, crtc, modes[i])
                 except RuntimeError as e:
-                    self.fail(e.message)
+                    self.fail(e.args[0])
                     break
             else:
                 self.success()