Skip to content

Commit c89b9a4

Browse files
committed
Avoid warnings about protobuf gencode version
We know about this warning and it is not a problem for us, as protobuf gurantees compatibility between two consecutive major versions. When we really need to bump the dependency, we'll get an error that is not ignored. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 6fcb858 commit c89b9a4

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
@@ -140,7 +140,15 @@ disable = [
140140

141141
[tool.pytest.ini_options]
142142
testpaths = ["pytests"]
143-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
143+
addopts = "-vv"
144+
filterwarnings = [
145+
"error",
146+
"once::DeprecationWarning",
147+
"once::PendingDeprecationWarning",
148+
# We use a raw string (single quote) to avoid the need to escape special
149+
# chars as this is a regex
150+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
151+
]
144152

145153
[tool.mypy]
146154
explicit_package_bases = true

0 commit comments

Comments
 (0)