Skip to content

Conversation

denini08
Copy link
Contributor

@denini08 denini08 commented Aug 13, 2025

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

Copy link
Collaborator

@yezz123 yezz123 left a comment

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