Skip to content

Commit

Permalink
pytest-lsp: Use raw string literals
Browse files Browse the repository at this point in the history
This *should* prevent any issues with `\` path separators on Windows
  • Loading branch information
alcarney committed Oct 2, 2023
1 parent 8f4d936 commit 3168eee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/pytest-lsp/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ def test_client_capabilities(
@pytest_lsp.fixture(
config=ClientServerConfig(
server_command=["{python}", "{server}"],
server_command=[r"{python}", r"{server}"],
)
)
async def client(lsp_client: LanguageClient):
await lsp_client.initialize_session(
InitializeParams(
capabilities=client_capabilities("{client_spec}"),
root_uri="{root_uri}"
root_uri=r"{root_uri}"
)
)
yield
Expand Down
4 changes: 2 additions & 2 deletions lib/pytest-lsp/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ def setup_test(pytester: pytest.Pytester, server_name: str, test_code: str):
@pytest_lsp.fixture(
config=ClientServerConfig(
server_command=["{python}", "{server}"],
server_command=[r"{python}", r"{server}"],
)
)
async def client(lsp_client: LanguageClient):
await lsp_client.initialize_session(
InitializeParams(
capabilities=client_capabilities("visual-studio-code"),
root_uri="{root_uri}"
root_uri=r"{root_uri}"
)
)
yield
Expand Down

0 comments on commit 3168eee

Please sign in to comment.