We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e69c42 commit 133bb60Copy full SHA for 133bb60
tests/util/test_util.py
@@ -69,12 +69,8 @@ async def test_get_child_processes(loop):
69
children[0].terminate()
70
children[0].wait()
71
72
- except psutil.NoSuchProcess as e:
73
- # Only in windows, occasionally psutil.NoSuchProcess is raised.
74
- if system.is_windows():
75
- pass
76
- else:
77
- raise e
78
-
79
- except Exception as e:
80
+ except psutil.NoSuchProcess:
+ # occasionally psutil.NoSuchProcess is raised while terminating the child process
+ # when the parent process is already terminated. Since all the processes launched
+ # by the test are already terminated, so we may pass the test even with this error
+ pass
0 commit comments