Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service/tests: Fix psutil deprecation warning #817

Merged
merged 3 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/service/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/service/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ types-protobuf = "^4.21"
types-pkg-resources = "*"
types-pywin32 = ">=304"
grpc-stubs = "^1.53"
psutil = ">=5.9"
types-psutil = ">=5.9"
psutil = ">=6.0"
types-psutil = ">=6.0"
# NumPy dropped support for Python 3.8 before adding support for Python 3.12, so
# we need to include multiple NumPy versions in poetry.lock.
numpy = [
Expand Down
2 changes: 1 addition & 1 deletion packages/service/tests/acceptance/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test___loopback_measurement___listening_on_loopback_interface(

listener_ips = [
ip_address(conn.laddr.ip)
for conn in psutil.Process().connections()
for conn in psutil.Process().net_connections()
if conn.laddr.port == insecure_port and conn.status == psutil.CONN_LISTEN
]
assert len(listener_ips) >= 1 and all([ip.is_loopback for ip in listener_ips])
Expand Down
Loading