Skip to content

Commit 0ff93d8

Browse files
committed
Add filter for wrong grpc runtime version warning
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent ce5425c commit 0ff93d8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,15 @@ disable = [
174174
]
175175

176176
[tool.pytest.ini_options]
177-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
177+
filterwarnings = [
178+
"error",
179+
"once::DeprecationWarning",
180+
"once::PendingDeprecationWarning",
181+
# We use a raw string (single quote) to avoid the need to escape special
182+
# chars as this is a regex
183+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
184+
]
185+
addopts = "-vv"
178186
testpaths = ["tests", "src"]
179187
asyncio_mode = "auto"
180188
asyncio_default_fixture_loop_scope = "function"

0 commit comments

Comments
 (0)