Isn't this just a straightforward race? The test code uses psutil.process_iter() to enumerate processes, then .ppid to get each one's PPID. If one of the enumerated processes terminates before the ,ppid call, psutil will throw NoSuchProcess.
Isn't this just a straightforward race? The test code uses psutil. process_ iter() to enumerate processes, then .ppid to get each one's PPID. If one of the enumerated processes terminates before the ,ppid call, psutil will throw NoSuchProcess.