Skip to content

Commit 3bdabc1

Browse files
committed
Sockets should not be tested for being absolute paths
In Fedora CI environment some processes are represented like this: pmmap_ext(..., path='socket:[13840]', ...)
1 parent c034e66 commit 3bdabc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psutil/tests/test_process_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def memory_maps(self, ret, info):
412412
for fname in nt._fields:
413413
value = getattr(nt, fname)
414414
if fname == 'path':
415-
if not value.startswith(("[", "anon_inode:")):
415+
if not value.startswith(("[", "anon_inode:", "socket:")):
416416
assert os.path.isabs(nt.path), nt.path
417417
# commented as on Linux we might get
418418
# '/foo/bar (deleted)'

0 commit comments

Comments
 (0)