Repository navigation
fix(tests): keep Hypothesis temp files out of the repo-mirror fixtures - #824
Merged
Merged
Conversation
Owner
Author
Finish proof, head f9409c0CI: 27 of 27 checks pass. Mutation gate: run 37079778783, success. Open review threads: 0. Review: two-line diff ( Behaviour ledger (finish-pr 4.7):
|
This was referenced Oct 3, 2026
sumithr
added a commit
that referenced
this pull request
Oct 3, 2026
🤖 I have created a release *beep* *boop* --- ## [0.71.1](v0.71.0...v0.71.1) (2026-10-03) ### Bug Fixes * **skills:** decide executable-ness by behaviour, not path, in routing and review ([#818](#818)) ([4f5e3c4](4f5e3c4)) * **tests:** keep Hypothesis temp files out of the repo-mirror fixtures ([#824](#824)) ([9c77462](9c77462)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <release-please[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The two repo-mirror fixtures copy the whole repo with
shutil.copytree. Under pytest-xdist another worker's Hypothesis run creates and deletes files in.hypothesis/tmpduring that copy, and a file that vanishes mid-copy fails the fixture withshutil.Error ... [Errno 2]. Both fixtures now ignore.hypothesis, as they already ignore.pytest_cache,.mutmut-cacheand coverage files.Related issue
Closes #823
Changes
tests/test_plugin_packaging_generator.pyandtests/test_plugin_packaging_schema_validation.py:".hypothesis"added to theignore_patternsof the repo-mirror copy. No other test copies the repo root.How it was verified
copytree15 times while a thread created and deleted files in<repo>/.hypothesis/tmp: without the ignore 9 of 15 copies failed; with it 0 of 15.-n 4 --dist loadfilealongside a Hypothesis module: 204 passed.Checklist
pytest) and lint/type checks are green