Skip to content

Conversation

mulatmek
Copy link

@mulatmek mulatmek commented Oct 6, 2025

Summary

On Windows environments without Developer Mode or admin privileges,
symlink creation is not supported. This caused
test_do_not_collect_symlink_siblings to fail even though pytest
behavior was correct.

This patch adds a skip condition to avoid false negatives.

Related issue

Closes #13771

Changelog

Added changelog/12039.bugfix.rst:

  • Skip test_do_not_collect_symlink_siblings on Windows without symlink support.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Oct 6, 2025
@bluetech
Copy link
Member

bluetech commented Oct 6, 2025

Issue #12039 is already closed. Was the fix not sufficient?

@bluetech bluetech added the status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity label Oct 6, 2025
@mulatmek
Copy link
Author

mulatmek commented Oct 7, 2025

Issue #12039 is already closed. Was the fix not sufficient?

sorry, It was a mistake i fixed issue #13771

@mulatmek mulatmek force-pushed the fix-windows-symlink-test branch 2 times, most recently from 07c7fbb to cbf4928 Compare October 7, 2025 09:38
@bluetech bluetech removed the status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity label Oct 7, 2025
@mulatmek mulatmek force-pushed the fix-windows-symlink-test branch 2 times, most recently from b421d7f to da454c7 Compare October 7, 2025 10:08
@mulatmek mulatmek force-pushed the fix-windows-symlink-test branch 2 times, most recently from 83f1a5e to f37d514 Compare October 7, 2025 10:20
@bluetech bluetech enabled auto-merge October 7, 2025 10:23
@mulatmek
Copy link
Author

mulatmek commented Oct 7, 2025

@bluetech Codecov failure is expected here since the diff only touches tests.

auto-merge was automatically disabled October 7, 2025 11:35

Head branch was pushed to by a user without write access

@mulatmek mulatmek force-pushed the fix-windows-symlink-test branch from f6019be to f48ded3 Compare October 7, 2025 11:35
@bluetech bluetech enabled auto-merge October 7, 2025 11:42
@bluetech bluetech merged commit 1bed1d7 into pytest-dev:main Oct 7, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided (automation) changelog entry is part of PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testing/test_collection.py::test_do_not_collect_symlink_siblings fails on Windows
2 participants