Skip to content

Commit 2dae057

Browse files
committed
Try to fix windows
1 parent 7173abd commit 2dae057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def test_make_absolute_href(self) -> None:
178178
for source_href, start_href, expected in test_cases:
179179
actual = make_absolute_href(source_href, start_href)
180180
if expected.startswith("file://"):
181-
_, actual = os.path.splitdrive(actual.replace("file://", ""))
182-
actual = f"file://{actual}"
181+
_, actual = os.path.splitdrive(actual.replace("file:///", ""))
182+
actual = f"file:///{actual}"
183183
else:
184184
_, actual = os.path.splitdrive(actual)
185185
self.assertEqual(actual, expected)

0 commit comments

Comments
 (0)