Browse Source

Reset only MPFuture locks in tests (not the whole state)

This reverts commit 7a52b84847bd27c3dd488b7d7949fbb6bd1264fe.
Aleksandr Borzunov 4 years ago
parent
commit
10f6d087f3
1 changed files with 1 additions and 3 deletions
  1. 1 3
      tests/conftest.py

+ 1 - 3
tests/conftest.py

@@ -29,8 +29,6 @@ def cleanup_children():
             with suppress(psutil.NoSuchProcess):
                 child.kill()
 
-    # Killing child processes may leave the global locks in MPFuture acquired
-    # or the global state broken, so we reset them
+    # Killing child processes may leave the global MPFuture locks acquired, so we recreate them
     MPFuture._initialization_lock = mp.Lock()
     MPFuture._update_lock = mp.Lock()
-    MPFuture._active_pid = None  # This will force to reset the global state