Skip to content

fix(test): skip two symlink tests where the OS refuses symlinks - #296

Merged
Yifan Yang (Yif-Yang) merged 1 commit into
microsoft:mainfrom
plox-sumit:fix/skip-symlink-tests-without-privilege
Sep 30, 2026
Merged

Yifan Yang (Yif-Yang) merged 1 commit into
microsoft:mainfrom
plox-sumit:fix/skip-symlink-tests-without-privilege

Conversation

@plox-sumit

Copy link
Copy Markdown
Contributor

TestHarnessEvidence.test_pytest_after_edit_fails_closed_on_broken_source_symlink and TestCLIFailClosed.test_symlinked_candidate_refused create symlinks directly. On Windows without Developer Mode or admin rights that raises OSError: [WinError 1314] A required privilege is not held by the client, so python -m pytest -q ends with 2 failures for every Windows contributor. #267 and #270 both list these two as unrelated failures.

The other symlink tests in the suite already skip in that case (except OSError: self.skipTest("symlinks unavailable") in test_sleep_adopt_skill_subset.py and test_sleep_engine.py). These two now do the same, using pytest.skip because they are plain pytest classes. Nothing changes where symlinks work.

On Windows 11 with Python 3.11, python -m pytest -q went from 2 failed, 1433 passed to 1433 passed, 75 skipped, 0 failed. ruff check passes on the file.

🤖 Generated with Claude Code

test_pytest_after_edit_fails_closed_on_broken_source_symlink and
test_symlinked_candidate_refused created symlinks directly. On Windows
without Developer Mode or admin rights that raises OSError (WinError
1314), so the suite ended with two failures for every Windows
contributor. Skip them in that case, the same way the other symlink
tests in the suite already do.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Yif-Yang
Yifan Yang (Yif-Yang) merged commit c4fcb6a into microsoft:main Sep 30, 2026
7 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.

2 participants