Skip to content

Commit 26bf119

Browse files
committed
Add pytest warning filters for CI stability
Ignore ResourceWarning and PytestUnraisableExceptionWarning to prevent CI failures from pre-existing unclosed socket warnings that are not related to our warning context manager tests.
1 parent 58d619a commit 26bf119

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ select = ["E", "F", "W", "I"]
110110
[tool.pytest.ini_options]
111111
markers = "vcr: records network activity"
112112
addopts = "--benchmark-skip --block-network"
113+
filterwarnings = [
114+
"ignore::ResourceWarning",
115+
"ignore::pytest.PytestUnraisableExceptionWarning",
116+
]
113117

114118
[tool.mypy]
115119
show_error_codes = true

0 commit comments

Comments
 (0)