Skip to content

Commit db6a1f0

Browse files
Unpin psutil dependency (#790)
* Unpin psutil dependency * Update test for new psutil behavior It is unlikely, but if the internal process cache is not cleared, we could have a stale result. --------- Co-authored-by: Lance T. Erickson <lancetarn@gmail.com>
1 parent 5614351 commit db6a1f0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
install_requires=[
6161
"asgiref",
62-
"psutil>=5,<6",
62+
"psutil>=5",
6363
"urllib3",
6464
"certifi",
6565
"wrapt>=1.10,<2.0",

tests/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,11 @@ def core_agent_manager(core_agent_dir):
163163

164164

165165
def core_agent_is_running():
166-
return any(p.name() == "core-agent" for p in psutil.process_iter(["name"]))
166+
return any(
167+
p.name() == "core-agent"
168+
for p in psutil.process_iter(["name"])
169+
if p.is_running()
170+
)
167171

168172

169173
def terminate_core_agent_processes():

0 commit comments

Comments
 (0)