Skip to content

Deprecate isolated_filesystem and document its limits#3704

Open
kdeldycke wants to merge 1 commit into
pallets:mainfrom
kdeldycke:deprecate-isolated-filesystem
Open

Deprecate isolated_filesystem and document its limits#3704
kdeldycke wants to merge 1 commit into
pallets:mainfrom
kdeldycke:deprecate-isolated-filesystem

Conversation

@kdeldycke

Copy link
Copy Markdown
Collaborator

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.

@kdeldycke kdeldycke added docs f:test runner feature: cli test runner labels Jul 17, 2026
@kdeldycke kdeldycke added this to the 8.5.0 milestone Jul 17, 2026
@kdeldycke kdeldycke linked an issue Jul 17, 2026 that may be closed by this pull request
@kdeldycke
kdeldycke force-pushed the deprecate-isolated-filesystem branch from 7afc4df to ea8140a Compare July 17, 2026 21:40
@kdeldycke
kdeldycke requested review from Rowlando13 and davidism and removed request for davidism July 17, 2026 21:41
@Rowlando13

Copy link
Copy Markdown
Member

Just a nit. Can you add a test of the deprecation warning?

@Rowlando13 Rowlando13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except nit.

@kdeldycke
kdeldycke force-pushed the deprecate-isolated-filesystem branch from ea8140a to c2ed414 Compare July 20, 2026 12:20
@kdeldycke

Copy link
Copy Markdown
Collaborator Author

Just a nit. Can you add a test of the deprecation warning?

Ah yes, you probably missed it because it was in tests/test_testing.py. So I just applied your convention from your other PR and moved it to tests/test_deprecations.py.

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

Labels

docs f:test runner feature: cli test runner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate isolated_filesystem() isolated_filesystem() is not thread safe

2 participants