summaryrefslogtreecommitdiff
path: root/psutil/tests
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2022-09-04 22:15:06 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2022-09-04 22:15:06 +0200
commit9f9a82d02c901f62512236b44edb050f84cbe5b6 (patch)
tree27c4a8b672290a54c16e9f147d17f874a7fa5079 /psutil/tests
parent274dd47958c9d6bf306e3cff1d3a51e11c3970f0 (diff)
downloadpsutil-9f9a82d02c901f62512236b44edb050f84cbe5b6.tar.gz
Diffstat (limited to 'psutil/tests')
-rwxr-xr-xpsutil/tests/test_contracts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py
index 5c927d68..0d900669 100755
--- a/psutil/tests/test_contracts.py
+++ b/psutil/tests/test_contracts.py
@@ -680,7 +680,7 @@ class TestFetchAllProcesses(PsutilTestCase):
for fname in nt._fields:
value = getattr(nt, fname)
if fname == 'path':
- if not value.startswith('['):
+ if not value.startswith(("[", "anon_inode:")):
assert os.path.isabs(nt.path), nt.path
# commented as on Linux we might get
# '/foo/bar (deleted)'