Skip to content

Commit

Permalink
Sockets should not be tested for being absolute paths
Browse files Browse the repository at this point in the history
In Fedora CI environment some processes are represented like this:
pmmap_ext(..., path='socket:[13840]', ...)
  • Loading branch information
befeleme committed Aug 21, 2024
1 parent c034e66 commit 3bdabc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psutil/tests/test_process_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down

0 comments on commit 3bdabc1

Please sign in to comment.