Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/_cli/test_cli_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ def test_local_wheel_path_preserves_file_url_netloc(tmp_path: Path) -> None:
_local_wheel_path("file://server/share/pkg.whl", notebook)
== Path("//server/share/pkg.whl").resolve()
)
assert (
_local_wheel_path("file://localhost/tmp/pkg.whl", notebook)
== Path("/tmp/pkg.whl").resolve()
)
# "localhost" denotes the local machine, so it is stripped and treated
# the same as an empty authority.
assert _local_wheel_path(
"file://localhost/tmp/pkg.whl", notebook
) == _local_wheel_path("file:///tmp/pkg.whl", notebook)


def test_ruff_import_graph_ignores_successful_stderr(tmp_path: Path) -> None:
Expand Down
Loading