Ver Fonte

test averaging only

justheuristic há 4 anos atrás
pai
commit
af412db081
2 ficheiros alterados com 5 adições e 1 exclusões
  1. 1 1
      .github/workflows/run-tests.yml
  2. 4 0
      tests/conftest.py

+ 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()