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 54fd73d commit 7173abdCopy full SHA for 7173abd
tests/test_utils.py
@@ -177,7 +177,11 @@ def test_make_absolute_href(self) -> None:
177
178
for source_href, start_href, expected in test_cases:
179
actual = make_absolute_href(source_href, start_href)
180
- _, actual = os.path.splitdrive(actual)
+ if expected.startswith("file://"):
181
+ _, actual = os.path.splitdrive(actual.replace("file://", ""))
182
+ actual = f"file://{actual}"
183
+ else:
184
+ _, actual = os.path.splitdrive(actual)
185
self.assertEqual(actual, expected)
186
187
def test_make_absolute_href_on_vsitar(self) -> None:
0 commit comments