diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-07-31 17:48:16 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-07-31 18:15:43 +0300 |
commit | 432c289581082829d646c2e7af904a2d76c7d6dd (patch) | |
tree | 28bd88a687d06d9a7e1d5c04c658926d0499ab67 | |
parent | 9055fde3ca6d6909ce9c36a584960f318bcc2e1d (diff) |
tests: modes: Fix access to RuntimeError message text
The RuntimeError class has no message member. Use args[0] instead.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-x | tests/kms-test-modes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms-test-modes.py b/tests/kms-test-modes.py index c478489..14463ad 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() |