Skip to content

gh-149141: Fix test discovery failure when srcpath contains symlink(s)#149143

Open
neek78 wants to merge 7 commits intopython:mainfrom
neek78:fixes5
Open

gh-149141: Fix test discovery failure when srcpath contains symlink(s)#149143
neek78 wants to merge 7 commits intopython:mainfrom
neek78:fixes5

Conversation

@neek78
Copy link
Copy Markdown

@neek78 neek78 commented Apr 29, 2026

gh-149141: Fix test discovery when src tree path contains symlink(s)

_get_name_from_path() compares paths as provided to ensure one is a
subdir of the other. This fails when one is a symlink'd path and the other
is not. Resolve both to realpath first to fix this.

@neek78 neek78 changed the title Fix test discovery failure when srcpath contains symlink(s) gh-149141: Fix test discovery failure when srcpath contains symlink(s) Apr 29, 2026
@picnixz
Copy link
Copy Markdown
Member

picnixz commented Apr 29, 2026

Just for the future: don't merge main into your branch if there is no conflict to solve. See https://devguide.python.org/getting-started/pull-request-lifecycle/#update-branch-button.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants