Skip to content

Fix relative path creation on Windows for fixtures - #333

Merged
yezz123 merged 1 commit into
pydantic:mainfrom
denini08:main
Aug 15, 2025
Merged

yezz123 merged 1 commit into
pydantic:mainfrom
denini08:main

Conversation

@denini08

@denini08 denini08 commented Aug 13, 2025 •

Copy link
Copy Markdown
Contributor

Fix #332


Solution

Add drive compatibility check before using os.path.relpath():

  • If different drives on Windows → return absolute path
  • Otherwise → return relative path as before

@yezz123 yezz123 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@yezz123
yezz123 merged commit f106714 into pydantic:main Aug 15, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ValueError when running some tests on Windows

2 participants