Skip to content

test: make file URL netloc wheel test drive-independent on Windows#10198

Merged
mscolnick merged 1 commit into
mainfrom
ms/naypyidaw
Jul 16, 2026
Merged

test: make file URL netloc wheel test drive-independent on Windows#10198
mscolnick merged 1 commit into
mainfrom
ms/naypyidaw

Conversation

@mscolnick

Copy link
Copy Markdown
Contributor

This pull request was authored by a coding agent.

Summary

Fixes a Windows-only failure in test_local_wheel_path_preserves_file_url_netloc:

AssertionError: assert WindowsPath('C:/tmp/pkg.whl') == WindowsPath('D:/tmp/pkg.whl')

The failure was a flaw in the test, not in _local_wheel_path. The old assertion compared the function's output against a hand-built Path("/tmp/pkg.whl").resolve(). On Windows, a drive-less absolute path resolves against a drive letter — and the two sides picked up different drives: C: from url2pathname's system-drive anchoring inside the function vs. D: from the current working directory in the test's expectation.

The code correctly strips a localhost authority and treats it as a local file. The assertion now checks that intent directly — that file://localhost/... resolves identically to file:///... (empty authority) — which is drive-independent on Windows.

Test plan

  • uv run --group test pytest tests/_cli/test_cli_export.py::test_local_wheel_path_preserves_file_url_netloc

@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jul 16, 2026 7:53pm

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@mscolnick
mscolnick marked this pull request as ready for review July 16, 2026 20:15
Copilot AI review requested due to automatic review settings July 16, 2026 20:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mscolnick mscolnick added the internal A refactor or improvement that is not user facing label Jul 16, 2026
@mscolnick
mscolnick merged commit 7dbbf72 into main Jul 16, 2026
42 of 43 checks passed
@mscolnick
mscolnick deleted the ms/naypyidaw branch July 16, 2026 20:15
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.23.15-dev26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants