GeezerVison is showing github.com — Bad attempt: Deprecate `isolated_filesystem` and document its limits by kdeldycke · Pull Request #3701 · pallets/click
Conversation
This is an attempt to deprecate isolated_filesystem from the CliRunner. It has been discussed in #3501.
In addition to the deprecation, I added some explicit documentation about thread-safety as discussed in #3501. I used our own usage of pytest-xdist as a good example to follow.
All occurrences of isolated_filesystem in our own test suite have been removed and we are now relying on Pytest's tmp_path.
I also inaugurated the docs/upgrade-guides.md section introduced a while ago by @Rowlando13 .
This PR closes #3700.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Ouch. I fucked up. This PR has been pushed to stable and not my own fork... 😖 Let me fix it...
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
OK, I cannot revert back stable to its initial state as there is a protection rule on the branch to prevent forced pushed:
$ git push upstream 9ab346f6b57f2c99388b4e9db58a0961bc3027c8:refs/heads/stable --force-with-lease=refs/heads/stable:fbdd434028fe07ecf35084c945b43b938dfd639f
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote: error: GH013: Repository rule violations found for refs/heads/stable.
remote: Review all repository rules at https://github.com/pallets/click/rules?ref=refs%2Fheads%2Fstable
remote:
remote: - Cannot force-push to this branch
remote:
To github.com:pallets/click.git
! [remote rejected] 9ab346f6b57f2c99388b4e9db58a0961bc3027c8 -> stable (push declined due to repository rule violations)
error: failed to push some refs to 'github.com:pallets/click.git'
@davidism should I just fast forward to sync main and stable? Or just revert the 50+ commits in stable?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
As for the root cause, as I was explaining in #3700 (comment) , I attempted to delete isolated_filesystem a while ago when we started discussing it, and did my experimentation locally, on a branch from stable. Then I reused a cleanup that branch, but it was tied to the upstream stable. I did not realized this when I pushed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
It looks like you made one commit, where are the 50 you're referring to? Push a revert commit, then open a PR from a separate branch.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
kdeldycke
commented
Jul 17, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
It looks like you made one commit, where are the 50 you're referring to? Push a revert commit, then open a PR from a separate branch.
Yes, there is only one commit difference between stable and main. But stable was supposed to be stuck further away as we moved our focus to preparing 8.5.0. So we got a free sync of main to stable because of my mistake. But that's not the first time I do it and not the first time @Rowlando13 is also doing it! 😅
Ok so I'll just revert the last one and keep the free main to stable sync.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
kdeldycke
changed the title
Deprecate isolated_filesystem and document its limits
Bad attempt: Deprecate isolated_filesystem and document its limits
Jul 17, 2026
|
OK just fixed it. New PR is at: #3704
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
davidism
Awaiting requested review from davidism
Rowlando13
Awaiting requested review from Rowlando13
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
docs
Updates to documentation, readme, docstrings, typos
test runner
CliRunner and Click's test utilities feature
Development
Successfully merging this pull request may close these issues.
Deprecate isolated_filesystem()
Uh oh!
There was an error while loading. Please reload this page.
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.
|