Skip to content

Commit f1ad919

Browse files
committed
Update expectations on Windows paths tests, see #305
1 parent c346853 commit f1ad919

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

py_src/jupyter_lsp/tests/test_paths.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_normalize_posix_path_home_subdir(
3838
[
3939
["c:\\Users\\user1", "file:///c:/Users/user1"],
4040
["C:\\Users\\user1", "file:///c:/Users/user1"],
41-
["//VBOXSVR/shared-folder", "file://vboxsvr/shared-folder"],
41+
["//VBOXSVR/shared-folder", "file://vboxsvr/shared-folder/"],
4242
],
4343
)
4444
def test_normalize_windows_path_case(root_dir, expected_root_uri): # pragma: no cover
@@ -62,8 +62,9 @@ def test_file_uri_to_path_posix(file_uri, expected_posix_path): # pragma: no co
6262
@pytest.mark.parametrize(
6363
"file_uri, expected_windows_path",
6464
[
65-
["file:///C:/Windows/System32/Drivers/etc", r"C:\Windows\System32\Drivers\etc"],
66-
["file:///C:/some%20dir/some%20file.txt", r"C:\some dir\some file.txt"],
65+
# see https://github.com/krassowski/jupyterlab-lsp/pull/305#issuecomment-665996145
66+
["file:///C:/Windows/System32/Drivers/etc", r"C:/Windows/System32/Drivers/etc"],
67+
["file:///C:/some%20dir/some%20file.txt", r"C:/some dir/some file.txt"],
6768
],
6869
)
6970
def test_file_uri_to_path_windows(file_uri, expected_windows_path): # pragma: no cover

0 commit comments

Comments
 (0)