Skip to content

Commit 472987e

Browse files
ci: mute dynamic warningregistry logs noise in pytest suite
Signed-off-by: jet1technology-tech <jet1technology@ryngo.in>
1 parent ddf3795 commit 472987e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

runtests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ if [ ! -z "$protobuf_major_version" ] && [ "$protobuf_major_version" -ge "4" ]
126126
then
127127
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
128128
fi
129+
# Fix dynamic warningregistry logs noise in python unit/pytest configurations
130+
export PYTHONWARNINGS="ignore:Accessing.*__warningregistry__.*"
129131

130132
function check_import {
131133
echo "Python: "${PY_EXE}""

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,6 @@ skip_covered = True
267267

268268
[coverage:xml]
269269
output = coverage.xml
270+
[tool:pytest]
271+
filterwarnings =
272+
ignore:Accessing.*__warningregistry__.*

0 commit comments

Comments
 (0)