convert all SimRunner functions to yield
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Sep 2021 17:49:13 +0000 (18:49 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Sep 2021 17:49:13 +0000 (18:49 +0100)
src/openpower/test/state.py

index 41587ca4b432668b0f02e893bdcf1dde99ed6f28..6274ba47496c2d24a77c0e04a588f6934904e47b 100644 (file)
@@ -32,12 +32,18 @@ class StateRunner:
     near-identical in concept to python unittest.TestCase
     """
     def __init__(self, dut, **kwargs): pass
-    def setup_for_test(self): pass
-    def setup_during_test(self): pass
-    def prepare_for_test(self, test): pass
-    def run_test(self): pass
-    def end_test(self): pass
-    def cleanup(self): pass
+    def setup_for_test(self):
+        if False: yield
+    def setup_during_test(self):
+        if False: yield
+    def prepare_for_test(self, test):
+        if False: yield
+    def run_test(self):
+        if False: yield
+    def end_test(self):
+        if False: yield
+    def cleanup(self):
+        if False: yield
 
 
 class SimRunner(StateRunner):