giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.08k stars 1.37k forks source link

netbsd / cwd: raise NSP on ENOENT #2340

Closed giampaolo closed 6 months ago

giampaolo commented 6 months ago

Summary

Description

Reproducible with:

$ make test ARGS=psutil.tests.test_process.TestProcess.test_halfway_terminated_process
======================================================================
FAIL: psutil.tests.test_process.TestProcess.test_halfway_terminated_process (proc=psutil.Process(pid=7490, status='terminated'), name='cwd')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vagrant/psutil/psutil/tests/__init__.py", line 985, in assertProcessGone
    raise AssertionError(msg)