Commit 70ae2d20 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

sync commit

parent 5190fb26
......@@ -793,8 +793,7 @@ class Connection:
open_tasks = {task for idT, task in self.active_tasks.items()
if idT not in self.finished_tasks}
if open_tasks:
_, pending = await asyncio.wait(
open_tasks, timeout=3.0) # type: Set[asyncio.Future], Set[asyncio.Future]
_, pending = await asyncio.wait(open_tasks, timeout=3.0) # type: Set[asyncio.Future], Set[asyncio.Future]
for task in pending:
task.cancel()
# wait for task's cancellation to actually finish
......
......@@ -56,6 +56,7 @@ from DHParser.lsp import gen_lsp_table
from DHParser.testing import TFFN
TEST_PORT = 8000 + os.getpid() % 1000
# print('>>> ', sys.version, TEST_PORT)
# adding pid % 100 hopefully prevents interference, if `test_server.py` is run in
# parallel with several different python versions, as done by `run.py`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment