From 7530f925413e19dbe6e98c1070dfcf0c5ce08629 Mon Sep 17 00:00:00 2001 From: Normann Date: Fri, 21 Aug 2026 02:27:09 +0200 Subject: [PATCH] test: narrow expected pvlib scipy warning --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index ece954e4..664c2a48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,6 +161,11 @@ testpaths = [ "tests", ] markers = [ "docker: marks tests that require a local Docker engine" ] +filterwarnings = [ + # pvlib may exercise SciPy's root solver at night/zero irradiance; the resulting + # PV output is explicitly verified as zero by integration tests. + "ignore:invalid value encountered in divide:RuntimeWarning:scipy\\.optimize\\._chandrupatla", +] [tool.mypy] mypy_path= "src"