Skip to content

Commit c346853

Browse files
authored
Fix tests/mypy error for "not WIN" condition
1 parent 913689d commit c346853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py_src/jupyter_lsp/tests/test_paths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_normalize_posix_path_home_subdir(
3232
assert normalized_uri(root_dir) == expected_root_uri
3333

3434

35-
@pytest.mark.skipif(~WIN, reason="can't test Windows paths on POSIX")
35+
@pytest.mark.skipif(not WIN, reason="can't test Windows paths on POSIX")
3636
@pytest.mark.parametrize(
3737
"root_dir, expected_root_uri",
3838
[
@@ -58,7 +58,7 @@ def test_file_uri_to_path_posix(file_uri, expected_posix_path): # pragma: no co
5858
assert file_uri_to_path(file_uri) == expected_posix_path
5959

6060

61-
@pytest.mark.skipif(~WIN, reason="can't test Windows paths on POSIX")
61+
@pytest.mark.skipif(not WIN, reason="can't test Windows paths on POSIX")
6262
@pytest.mark.parametrize(
6363
"file_uri, expected_windows_path",
6464
[

0 commit comments

Comments
 (0)