[Piglit] [PATCH 3/6] dmesg.py: Actually make the BaseDmesg an ABC.

baker.dylan.c at gmail.com baker.dylan.c at gmail.com
Mon Nov 23 22:01:10 PST 2015


From: Dylan Baker <baker.dylan.c at gmail.com>

Currently this class uses the abc decorators, but its type isn't
actually abc.ABCMeta, which makes the abc decorators no-ops. This fixes
that.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/dmesg.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/framework/dmesg.py b/framework/dmesg.py
index 1982dec..70395d8 100644
--- a/framework/dmesg.py
+++ b/framework/dmesg.py
@@ -68,6 +68,8 @@ class BaseDmesg(object):
     first, test B will be marked as having the dmesg error.
 
     """
+    __metaclass__ = abc.ABCMeta
+
     @abc.abstractmethod
     def __init__(self):
         # A list containing all messages since the last time dmesg was read.
-- 
2.6.2



More information about the Piglit mailing list