From b9cb58be7952f262d14ee2a5ecffd137d75152ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Mon, 21 May 2018 15:42:16 +0200 Subject: [PATCH] Fix single_test.py Update metaclass declaration to python3 syntax --- test/integrationtests/skills/single_test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/integrationtests/skills/single_test.py b/test/integrationtests/skills/single_test.py index 4cfcabc503..7130c3fc4c 100644 --- a/test/integrationtests/skills/single_test.py +++ b/test/integrationtests/skills/single_test.py @@ -81,7 +81,6 @@ class IntentTestSequenceMeta(type): return test_env_test else: return test - tests, test_envs = discover_tests() for skill in tests.keys(): skill_name = os.path.basename(skill) # Path of the skill @@ -97,10 +96,9 @@ class IntentTestSequenceMeta(type): return type.__new__(mcs, name, bases, d) -class IntentTestSequence(unittest.TestCase): +class IntentTestSequence(unittest.TestCase, metaclass=IntentTestSequenceMeta): """This is the TestCase class that pythons unit tester can execute. """ - __metaclass__ = IntentTestSequenceMeta loader = None @classmethod