Skip to content

Commit 99e3ae9

Browse files
committed
fix py3.9 skips
1 parent 394cc58 commit 99e3ae9

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ def has_spa_c():
202202
# TODO remove this when we drop support for python 3.9.
203203
chandrupatla_available = sys.version_info >= (3, 10)
204204
chandrupatla = pytest.param(
205-
"chandrupatla", marks=pytest.mark.skipif(not chandrupatla_available)
205+
"chandrupatla", marks=pytest.mark.skipif(not chandrupatla_available,
206+
reason="needs scipy 1.15")
206207
)
207208

208209

tests/test_pvsystem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,8 @@ def fixture_i_from_v(request):
13761376
'method, atol', [
13771377
('lambertw', 1e-11), ('brentq', 1e-11), ('newton', 1e-11),
13781378
pytest.param("chandrupatla", 1e-11,
1379-
marks=pytest.mark.skipif(not chandrupatla_available)),
1379+
marks=pytest.mark.skipif(not chandrupatla_available,
1380+
reason="needs scipy 1.15")),
13801381
]
13811382
)
13821383
def test_i_from_v(fixture_i_from_v, method, atol):

tests/test_singlediode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ def test_bishop88_kwargs_transfer(method, method_kwargs, mocker,
511511
'rtol': 1e-4,
512512
'maxiter': 20,
513513
'_inexistent_param': "0.01"
514-
}, marks=pytest.mark.skipif(not chandrupatla_available)),
514+
}, marks=pytest.mark.skipif(not chandrupatla_available,
515+
reason="needs scipy 1.15")),
515516
])
516517
def test_bishop88_kwargs_fails(method, method_kwargs, bishop88_arguments):
517518
"""test invalid method_kwargs passed onto the optimizer fail"""

0 commit comments

Comments
 (0)