From e6ebc856a68b0f495f86a8d0e4f3dcfc25b4a92a Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Wed, 21 Aug 2024 12:24:59 +0200 Subject: [PATCH] Sockets should not be tested for being absolute paths In Fedora CI environment some processes are represented like this: pmmap_ext(..., path='socket:[13840]', ...) Signed-off-by: Karolina Surma --- psutil/tests/test_process_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psutil/tests/test_process_all.py b/psutil/tests/test_process_all.py index 48833a105..c6811f02e 100755 --- a/psutil/tests/test_process_all.py +++ b/psutil/tests/test_process_all.py @@ -412,7 +412,7 @@ def memory_maps(self, ret, info): for fname in nt._fields: value = getattr(nt, fname) if fname == 'path': - if not value.startswith(("[", "anon_inode:")): + if not value.startswith(("[", "anon_inode:", "socket:")): assert os.path.isabs(nt.path), nt.path # commented as on Linux we might get # '/foo/bar (deleted)'