test: Ignore swig 4.3 deprecation warnings in pytest
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/static_analysis Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Marty Oehme 2025-09-12 15:26:13 +02:00
parent 7fd0e65453
commit 15606b293f
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -62,3 +62,11 @@ build-backend = "hatchling.build"
[tool.pyright] [tool.pyright]
typeCheckingMode = "strict" typeCheckingMode = "strict"
[tool.pytest.ini_options]
filterwarnings = [
# see https://github.com/swig/swig/issues/2881#issuecomment-2877988848
# should hopefully be redundant with swig-4.4
"ignore:.*builtin type SwigPy\\w* has no __module__ attribute.*:DeprecationWarning",
"ignore:.*builtin type swigvarlink has no __module__ attribute.*:DeprecationWarning"
]