From: Colin Watson <cjwatson@debian.org>
Date: Sun, 12 Jan 2025 20:27:58 +0000
Subject: Tolerate psutil < 6.0.0

Debian doesn't currently have psutil >= 6.0.0; see
https://bugs.debian.org/1086528.

Last-Update: 2025-01-12
---
 pyftpdlib/test/__init__.py | 2 +-
 pyftpdlib/test/conftest.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyftpdlib/test/__init__.py b/pyftpdlib/test/__init__.py
index 945d776..ecbc12e 100644
--- a/pyftpdlib/test/__init__.py
+++ b/pyftpdlib/test/__init__.py
@@ -340,7 +340,7 @@ def assert_free_resources(parent_pid=None):
     if POSIX:
         cons = [
             x
-            for x in this_proc.net_connections('tcp')
+            for x in this_proc.connections('tcp')
             if x.status != psutil.CONN_CLOSE_WAIT
         ]
         if cons:
diff --git a/pyftpdlib/test/conftest.py b/pyftpdlib/test/conftest.py
index 3ec5b2b..867edbd 100644
--- a/pyftpdlib/test/conftest.py
+++ b/pyftpdlib/test/conftest.py
@@ -40,7 +40,7 @@ def collect_resources():
     res["threads"] = set(threading.enumerate())
     if POSIX:
         res["num_fds"] = this_proc.num_fds()
-    # res["cons"] = set(this_proc.net_connections(kind="all"))
+    # res["cons"] = set(this_proc.connections(kind="all"))
     # res["files"] = set(this_proc.open_files())
     return res
 
