Skip to content

Commit

Permalink
MTN fix deprecation warnings with pytest 8.x (#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Apr 3, 2024
1 parent 6310841 commit a8518c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions joblib/test/test_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ def test_threadpool_limitation_in_child_loky(n_jobs):
# Skip this test if numpy is not linked to a BLAS library
parent_info = _check_numpy_threadpool_limits()
if len(parent_info) == 0:
pytest.skip(msg="Need a version of numpy linked to BLAS")
pytest.skip(reason="Need a version of numpy linked to BLAS")

workers_threadpool_infos = Parallel(backend="loky", n_jobs=n_jobs)(
delayed(_check_numpy_threadpool_limits)() for i in range(2))
Expand All @@ -1936,7 +1936,7 @@ def test_threadpool_limitation_in_child_context(
# Skip this test if numpy is not linked to a BLAS library
parent_info = _check_numpy_threadpool_limits()
if len(parent_info) == 0:
pytest.skip(msg="Need a version of numpy linked to BLAS")
pytest.skip(reason="Need a version of numpy linked to BLAS")

with context('loky', inner_max_num_threads=inner_max_num_threads):
workers_threadpool_infos = Parallel(n_jobs=n_jobs)(
Expand Down

0 comments on commit a8518c4

Please sign in to comment.