File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
python_packages/jupyter_lsp/jupyter_lsp Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ async def stop_process(self, timeout: int = 5):
214
214
return
215
215
216
216
if sys .platform .startswith ("win32" ): # pragma: no cover
217
- # On Windows Process.kill() is an alias to Process.terminate so we cannot
217
+ # On Windows Process.kill() is an alias to Process.terminate() so we cannot
218
218
# force the process to stop. if you know of a better way to handle this on
219
219
# Windows please consider contributing
220
220
self .log .warning (
Original file line number Diff line number Diff line change @@ -136,11 +136,12 @@ async def test_stop(handlers, timeout):
136
136
137
137
ws_handler .on_close ()
138
138
139
- if platform .startswith ("win32" ):
139
+ if platform .startswith ("win32" ): # pragma: no cover
140
140
# currently we cannot forcefully terminate the process on windows, so we just
141
141
# give it a little more extra time to finish on its own
142
142
await asyncio .sleep (timeout + 10 )
143
- else : # linux and darwin
143
+ else : # pragma: no cover
144
+ # linux and darwin
144
145
await asyncio .sleep (timeout + 2 )
145
146
146
147
assert exists_process_with_pid (process_pid ) is False
You can’t perform that action at this time.
0 commit comments