Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pytest 8.x compatability #1553

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
# 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")

Check warning on line 1913 in joblib/test/test_parallel.py

View check run for this annotation

Codecov / codecov/patch

joblib/test/test_parallel.py#L1913

Added line #L1913 was not covered by tests

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 @@
# 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")

Check warning on line 1939 in joblib/test/test_parallel.py

View check run for this annotation

Codecov / codecov/patch

joblib/test/test_parallel.py#L1939

Added line #L1939 was not covered by tests

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