@@ -32,13 +32,13 @@ def test_normalize_posix_path_home_subdir(
32
32
assert normalized_uri (root_dir ) == expected_root_uri
33
33
34
34
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" )
36
36
@pytest .mark .parametrize (
37
37
"root_dir, expected_root_uri" ,
38
38
[
39
39
["c:\\ Users\\ user1" , "file:///c:/Users/user1" ],
40
40
["C:\\ Users\\ user1" , "file:///c:/Users/user1" ],
41
- ["//VBOXSVR/shared-folder" , "file://vboxsvr/shared-folder" ],
41
+ ["//VBOXSVR/shared-folder" , "file://vboxsvr/shared-folder/ " ],
42
42
],
43
43
)
44
44
def test_normalize_windows_path_case (root_dir , expected_root_uri ): # pragma: no cover
@@ -58,12 +58,13 @@ def test_file_uri_to_path_posix(file_uri, expected_posix_path): # pragma: no co
58
58
assert file_uri_to_path (file_uri ) == expected_posix_path
59
59
60
60
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" )
62
62
@pytest .mark .parametrize (
63
63
"file_uri, expected_windows_path" ,
64
64
[
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
+ # https://github.com/krassowski/jupyterlab-lsp/pull/305#issuecomment-665996145
66
+ ["file:///C:/Windows/System32/Drivers/etc" , "C:/Windows/System32/Drivers/etc" ],
67
+ ["file:///C:/some%20dir/some%20file.txt" , "C:/some dir/some file.txt" ],
67
68
],
68
69
)
69
70
def test_file_uri_to_path_windows (file_uri , expected_windows_path ): # pragma: no cover
0 commit comments