Skip to content

Commit 46c0c4a

Browse files
committed
Ignore protobuf gencode version warning
These are just warnings and we are already aware, and will upgrade as needed when we are 2 majors behind. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent fc6c34a commit 46c0c4a

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
@@ -162,7 +162,15 @@ disable = [
162162
]
163163

164164
[tool.pytest.ini_options]
165-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
165+
addopts = "-vv"
166+
filterwarnings = [
167+
"error",
168+
"once::DeprecationWarning",
169+
"once::PendingDeprecationWarning",
170+
# We use a raw string (single quote) to avoid the need to escape special
171+
# chars as this is a regex
172+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
173+
]
166174
testpaths = ["tests", "src"]
167175
asyncio_mode = "auto"
168176
asyncio_default_fixture_loop_scope = "function"

0 commit comments

Comments
 (0)