From 15606b293f200855e608d3e7676f5dd768c81274 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 12 Sep 2025 15:26:13 +0200 Subject: [PATCH] test: Ignore swig 4.3 deprecation warnings in pytest --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 27c5743..77b630a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,3 +62,11 @@ build-backend = "hatchling.build" [tool.pyright] 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" +]