Skip to content

Commit 6df98c4

Browse files
committed
robustness against psutil errors
1 parent 26233f5 commit 6df98c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supvisors/tests/test_statscollector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,13 +357,13 @@ def test_instant_process_statistics_children(mocker):
357357
assert memory <= 100
358358
# check with existing PID, children requested but system issue
359359
mocked_dict.side_effect = NotImplementedError
360-
assert instant_process_statistics(this_process) == (work, memory)
360+
instant_process_statistics(this_process)
361361
assert mocked_process.called
362362
assert mocked_dict.call_args_list == [call(attrs=process_attributes)]
363363
mocker.resetall()
364364
# check with existing PID, children requested but unexpected error
365365
mocked_dict.side_effect = KeyError
366-
assert instant_process_statistics(this_process) == (work, memory)
366+
instant_process_statistics(this_process)
367367
assert mocked_process.called
368368
assert mocked_dict.call_args_list == [call(attrs=process_attributes)]
369369

0 commit comments

Comments
 (0)