From 2f6dee3adb058b44e866fd7bd712a8b2a276395f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Tomulik?= Date: Fri, 2 Jan 2015 18:48:17 +0100 Subject: [PATCH] constant_directive_runme.py and classic classes --- Examples/test-suite/python/constant_directive_runme.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/test-suite/python/constant_directive_runme.py b/Examples/test-suite/python/constant_directive_runme.py index 8887562e4..48f85ce8a 100644 --- a/Examples/test-suite/python/constant_directive_runme.py +++ b/Examples/test-suite/python/constant_directive_runme.py @@ -1,8 +1,8 @@ import constant_directive -if type(constant_directive.TYPE1_CONSTANT1) != constant_directive.Type1: +if not isinstance(constant_directive.TYPE1_CONSTANT1,constant_directive.Type1): raise RuntimeError("Failure: TYPE1_CONSTANT1 type: {}".format(type(constant_directive.TYPE1_CONSTANT1))) -if type(constant_directive.getType1Instance()) != constant_directive.Type1: +if not isinstance(constant_directive.getType1Instance(),constant_directive.Type1): raise RuntimeError("Failure: getType1Instance() type: {}".format(type(constant_directive.getType1Instance()))) if constant_directive.TYPE1_CONSTANT1.val != 1: