浏览代码

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

This reverts commit 7a52b84847bd27c3dd488b7d7949fbb6bd1264fe.
Aleksandr Borzunov 4 年之前
父节点
当前提交
10f6d087f3
共有 1 个文件被更改,包括 1 次插入3 次删除
  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