Skip to content

Commit 0c7a7fc

Browse files
Update proto warnings
Signed-off-by: Flora <[email protected]>
1 parent 5f815fd commit 0c7a7fc

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
@@ -155,7 +155,15 @@ disable = [
155155
]
156156

157157
[tool.pytest.ini_options]
158-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
158+
addopts = "-vv"
159+
filterwarnings = [
160+
"error",
161+
"once::DeprecationWarning",
162+
"once::PendingDeprecationWarning",
163+
# We use a raw string (single quote) to avoid the need to escape special
164+
# chars as this is a regex
165+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
166+
]
159167
testpaths = ["tests", "src"]
160168
asyncio_mode = "auto"
161169
asyncio_default_fixture_loop_scope = "function"

0 commit comments

Comments
 (0)