justheuristic 4 жил өмнө
parent
commit
af412db081

+ 1 - 1
.github/workflows/run-tests.yml

@@ -35,4 +35,4 @@ jobs:
       - name: Test
         run: |
           cd tests
-          pytest --durations=0 --durations-min=1.0 -v
+          pytest test_averaging.py --durations=0 --durations-min=1.0 -v

+ 4 - 0
tests/conftest.py

@@ -23,6 +23,10 @@ def cleanup_children():
         for child in children:
             with suppress(psutil.NoSuchProcess):
                 child.terminate()
+        psutil.wait_procs(children, timeout=1)
+        for child in children:
+            with suppress(psutil.NoSuchProcess):
+                child.kill()
 
     # Broken code or killing of child processes may leave the MPFuture backend corrupted
     MPFuture.reset_backend()