Skip to content

Commit 082e389

Browse files
Update display of protobuf version warnings (#74)
2 parents 107eeb6 + c6e7c5e commit 082e389

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
## Bug Fixes
1919

20-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
20+
- Updated display of protobuf version warnings

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,15 @@ disable = [
144144
]
145145

146146
[tool.pytest.ini_options]
147-
addopts = "-W=all -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
147+
addopts = "-vv"
148+
filterwarnings = [
149+
"error",
150+
"once::DeprecationWarning",
151+
"once::PendingDeprecationWarning",
152+
# We use a raw string (single quote) to avoid the need to escape special
153+
# chars as this is a regex
154+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
155+
]
148156
testpaths = ["tests", "src"]
149157
asyncio_mode = "auto"
150158
asyncio_default_fixture_loop_scope = "function"

tests/conftest.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)