Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Oct 16, 2024
1 parent 87bcc7c commit cb1f819
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/porting.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,14 @@ should not assume that functionality provided by PyTest is thread-safe.
Functionality that is known not to be thread-safe includes:
* [`pytest.warns`](https://docs.pytest.org/en/stable/reference/reference.html#pytest.warns),
it relies on `warnings.catch_warnings`, which is not thread safe.
* The [`tmp_path`](https://docs.pytest.org/en/stable/reference/reference.html#std-fixture-tmp_path) and [`tmpdir`](https://docs.pytest.org/en/stable/reference/reference.html#std-fixture-tmpdir) fixtures, since they rely on the filesystem
* The [`capsys`
fixture](https://docs.pytest.org/en/stable/reference/reference.html#std-fixture-capsys),
because of shared use of `sys.stdout` and `sys.stderr`.
* The [`monkeypatch`
fixture](https://docs.pytest.org/en/stable/reference/reference.html#std-fixture-monkeypatch).
- [`pytest.warns`](https://docs.pytest.org/en/stable/reference/reference.html#pytest.warns),
it relies on `warnings.catch_warnings`, which is not thread safe.
- The [`tmp_path`](https://docs.pytest.org/en/stable/reference/reference.html#std-fixture-tmp_path) and [`tmpdir`](https://docs.pytest.org/en/stable/reference/reference.html#std-fixture-tmpdir) fixtures, since they rely on the filesystem
- The [`capsys`
fixture](https://docs.pytest.org/en/stable/reference/reference.html#std-fixture-capsys),
because of shared use of `sys.stdout` and `sys.stderr`.
- The [`monkeypatch`
fixture](https://docs.pytest.org/en/stable/reference/reference.html#std-fixture-monkeypatch).
Note that the PyTest maintainers have explicitly ruled out making PyTest
thread-safe, please do not open issues asking to fix thread safety issues in
Expand Down

0 comments on commit cb1f819

Please sign in to comment.