Refactor generic_test execution
authorJean THOMAS <git0@pub.jeanthomas.me>
Fri, 3 Jul 2020 11:23:46 +0000 (13:23 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Fri, 3 Jul 2020 11:23:46 +0000 (13:23 +0200)
gram/test/test_core_refresher.py

index 4f0dc58cacd27429aaa28bcbb12228e339a62886..f3347a96f2b05892b948f290446d1f608eb6175a 100644 (file)
@@ -53,9 +53,7 @@ class RefreshPostponerTestCase(FHDLTestCase):
 
             runSimulation(m, process, "test_refreshpostponer.vcd")
 
-        generic_test(1)
-        generic_test(5)
-        generic_test(10)
+        [generic_test(_) for _ in [1, 5, 10]]
 
     def test_req_not_stuck(self):
         def generic_test(delay):
@@ -77,6 +75,4 @@ class RefreshPostponerTestCase(FHDLTestCase):
 
             runSimulation(m, process, "test_refreshpostponer.vcd")
 
-        generic_test(1)
-        generic_test(5)
-        generic_test(10)
+        [generic_test(_) for _ in [1, 5, 10]]