diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index 9745286548e..3bd65ba35f6 100644
--- a/meta/lib/oeqa/core/context.py
+++ b/meta/lib/oeqa/core/context.py
@@ -23,7 +23,7 @@ class OETestContext:
         os.path.abspath(__file__)), "../files"))
 
     def __init__(self, td=None, logger=None):
-        if not type(td) is dict:
+        if not isinstance(td, dict):
             raise TypeError("td isn't dictionary type")
 
         self.td = td
