We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19cdc19 commit e75c6a0Copy full SHA for e75c6a0
tests/unit/test_urls.py
@@ -38,8 +38,9 @@ def test_unc_path_to_url_win() -> None:
38
39
@pytest.mark.skipif("sys.platform != 'win32'")
40
def test_relative_path_to_url_win() -> None:
41
- resolved_path = os.path.join(os.getcwd(), "file")
42
- assert path_to_url("file") == "file:///" + urllib.parse.quote(resolved_path, safe="/:")
+ resolved_path = os.path.join(os.getcwd(), "file").replace("\\", "/")
+ quoted_path = urllib.parse.quote(resolved_path, safe="/:")
43
+ assert path_to_url("file") == "file:///" + quoted_path
44
45
46
@pytest.mark.parametrize(
0 commit comments