소스 검색

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