Skip to content

Commit 994d0fe

Browse files
committed
log fd counts
1 parent 941568e commit 994d0fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

parsl/tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from itertools import chain
2121

2222
import _pytest.runner as runner
23+
import psutil
2324
import pytest
2425

2526
import parsl
@@ -227,6 +228,10 @@ def load_dfk_local_module(request, pytestconfig, tmpd_cwd_session):
227228
config = pytestconfig.getoption('config')[0]
228229

229230
if config == 'local':
231+
this_process = psutil.Process()
232+
start_fds = this_process.num_fds()
233+
logger.error(f"BENC: start open fds: {start_fds}")
234+
230235
local_setup = getattr(request.module, "local_setup", None)
231236
local_teardown = getattr(request.module, "local_teardown", None)
232237
local_config = getattr(request.module, "local_config", None)
@@ -258,6 +263,8 @@ def load_dfk_local_module(request, pytestconfig, tmpd_cwd_session):
258263
raise RuntimeError("DFK changed unexpectedly during test")
259264
dfk.cleanup()
260265
assert DataFlowKernelLoader._dfk is None
266+
end_fds = this_process.num_fds()
267+
logger.error(f"BENC: end open fds: {end_fds} (vs start {start_fds}")
261268

262269
else:
263270
yield

0 commit comments

Comments
 (0)