Fix memory error when the test suite cleans up

This commit is contained in:
twangboy 2019-07-08 16:33:46 -06:00
parent 1756156aee
commit 34714221c4
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -1215,6 +1215,8 @@ def _terminate_process_list(process_list, kill=False, slow_stop=False):
except psutil.AccessDenied:
# OSX is more restrictive about the above information
cmdline = None
except OSError:
cmdline = None
if not cmdline:
try:
cmdline = process.as_dict()