You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyproject.toml
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,18 @@ disable = [
144
144
]
145
145
146
146
[tool.pytest.ini_options]
147
-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning '-Wdefault:Protobuf gencode version 5.27.2 is exactly one major version older than the runtime version:UserWarning' -vv"
147
+
addopts = "-vv"
148
+
filterwarnings = [
149
+
"error",
150
+
"once::DeprecationWarning",
151
+
"once::PendingDeprecationWarning",
152
+
# We ignore warnings about protobuf gencode version being one version older
153
+
# than the current version, as this is supported by protobuf, and we expect to
154
+
# have such cases. If we go too far, we will get a proper error anyways.
155
+
# We use a raw string (single quotes) to avoid the need to escape special
156
+
# characters as this is a regex.
157
+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
0 commit comments