summaryrefslogtreecommitdiff
path: root/tests/kms-test-modes.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-31 17:48:16 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-31 18:15:43 +0300
commit432c289581082829d646c2e7af904a2d76c7d6dd (patch)
tree28bd88a687d06d9a7e1d5c04c658926d0499ab67 /tests/kms-test-modes.py
parent9055fde3ca6d6909ce9c36a584960f318bcc2e1d (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>
Diffstat (limited to 'tests/kms-test-modes.py')
-rwxr-xr-xtests/kms-test-modes.py2
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()