Skip to content

Commit aaf8280

Browse files
committed
correct running pytest on windows with python 3.8
1 parent b8071d5 commit aaf8280

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

robotcode/language_server/robotframework/diagnostics/imports_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ async def get_libdoc(self) -> LibraryDoc:
323323

324324

325325
def _shutdown_process_pool(pool: ProcessPoolExecutor) -> None:
326-
pool.shutdown(False)
326+
pool.shutdown(True)
327327

328328

329329
# we need this, because ProcessPoolExecutor is not correctly initialized if asyncio is reading from stdin

tests/language_server/robotframework/parts/test_hover.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
from robotcode.language_server.common.text_document import TextDocument
77
from robotcode.language_server.common.types import (
88
ClientCapabilities,
9+
ClientInfo,
10+
HoverClientCapabilities,
911
MarkupContent,
1012
MarkupKind,
1113
Position,
1214
Range,
15+
TextDocumentClientCapabilities,
16+
WorkspaceFolder,
1317
)
1418
from robotcode.language_server.robotframework.protocol import (
1519
RobotLanguageServerProtocol,
@@ -23,7 +27,17 @@ async def protocol() -> AsyncGenerator[RobotLanguageServerProtocol, None]:
2327
server = RobotLanguageServer()
2428
try:
2529
protocol = RobotLanguageServerProtocol(server)
26-
await protocol._initialize(ClientCapabilities(), root_path=str(root_path), root_uri=root_path.as_uri())
30+
await protocol._initialize(
31+
ClientCapabilities(
32+
text_document=TextDocumentClientCapabilities(
33+
hover=HoverClientCapabilities(content_format=[MarkupKind.MARKDOWN, MarkupKind.PLAINTEXT])
34+
)
35+
),
36+
root_path=str(root_path),
37+
root_uri=root_path.as_uri(),
38+
workspace_folders=[WorkspaceFolder(name="test workspace", uri=root_path.as_uri())],
39+
client_info=ClientInfo(name="TestClient", version="1.0.0"),
40+
)
2741

2842
yield protocol
2943
finally:

0 commit comments

Comments
 (0)