The RuntimeError class has no message member. Use args[0] instead. Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> --- tests/kms-test-modes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- Regards, Laurent Pinchart