Skip to content

Commit ce9f458

Browse files
committedJul 22, 2023
skip tests on windows as it's flaky on py3.7
1 parent e79bbb2 commit ce9f458

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎test/test_notebook_document.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import pytest
99

10+
from pylsp import IS_WIN
1011
from pylsp.python_lsp import PythonLSPServer
1112
from pylsp.lsp import NotebookCellKind
1213

@@ -58,6 +59,7 @@ def client_server_pair():
5859
client_server_pair_obj.client._endpoint.notify("exit")
5960

6061

62+
@pytest.mark.skipif(IS_WIN, reason="Flaky on Windows")
6163
def test_initialize(client_server_pair): # pylint: disable=redefined-outer-name
6264
client, server = client_server_pair
6365
response = client._endpoint.request(
@@ -72,6 +74,7 @@ def test_initialize(client_server_pair): # pylint: disable=redefined-outer-name
7274
assert "notebookDocumentSync" in response["capabilities"].keys()
7375

7476

77+
@pytest.mark.skipif(IS_WIN, reason="Flaky on Windows")
7578
def test_notebook_document__did_open(
7679
client_server_pair,
7780
): # pylint: disable=redefined-outer-name
@@ -235,6 +238,7 @@ def test_notebook_document__did_open(
235238
mock_notify.assert_has_calls(expected_call_args)
236239

237240

241+
@pytest.mark.skipif(IS_WIN, reason="Flaky on Windows")
238242
def test_notebook_document__did_change(
239243
client_server_pair,
240244
): # pylint: disable=redefined-outer-name
@@ -506,6 +510,7 @@ def test_notebook_document__did_change(
506510
mock_notify.assert_has_calls(expected_call_args)
507511

508512

513+
@pytest.mark.skipif(IS_WIN, reason="Flaky on Windows")
509514
def test_notebook__did_close(
510515
client_server_pair,
511516
): # pylint: disable=redefined-outer-name

0 commit comments

Comments
 (0)