Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: name the fixture scope for the confidence warning filter
pytest restores warning filters after each test, so a session- or
module-scoped fixture only covers the first test.

Signed-off-by: Alex <alex.castillog33@gmail.com>
  • Loading branch information
pcbeingused33 committed Dec 2, 2026
commit 8f404e68118648e446fa8fe56d75313d3b737cb6
2 changes: 1 addition & 1 deletion docs/docs/Guides/Evaluation/confidence-evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ warnings.filterwarnings(
)
```

Under pytest, a `warnings.filterwarnings(...)` call at module import time is overridden by pytest's per-test filters. Set the filter inside a test or fixture, or use the pytest configuration below (including the separate `UserWarning` filter explained next):
Under pytest, a `warnings.filterwarnings(...)` call at module import time is overridden by pytest's per-test filters. Set the filter inside a test or a function-scoped fixture (pytest restores the filters after each test, so a session- or module-scoped fixture covers only the first test in its scope), or use the pytest configuration below (including the separate `UserWarning` filter explained next):

```toml
[tool.pytest.ini_options]
Expand Down