Skip to content

Commit 7468ce7

Browse files
committed
Ignore warning about Protobuf gencode version
These warnings are expected during transitional periods, when there is an incompatibility we'll get an error instead. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent f6db48c commit 7468ce7

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
@@ -166,7 +166,15 @@ disable = [
166166
]
167167

168168
[tool.pytest.ini_options]
169-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
169+
addopts = "-vv"
170+
filterwarnings = [
171+
"error",
172+
"once::DeprecationWarning",
173+
"once::PendingDeprecationWarning",
174+
# We use a raw string (single quote) to avoid the need to escape special
175+
# chars as this is a regex
176+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
177+
]
170178
testpaths = ["pytests"]
171179

172180
[tool.mypy]

0 commit comments

Comments
 (0)