Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelVaroquaux committed Feb 5, 2022
1 parent 7b97261 commit 486bed5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions joblib/parallel.py
Expand Up @@ -204,6 +204,7 @@ def __init__(self, backend, n_jobs=-1, inner_max_num_threads=None,
register()
elif backend in MAYBE_AVAILABLE_BACKENDS:
warnings.warn(
UserWarning,
f"joblib backend '{backend}' is not available on ",
f"your system, falling back to {DEFAULT_BACKEND}.",
stacklevel=2)
Expand Down Expand Up @@ -718,6 +719,7 @@ def __init__(self, n_jobs=None, backend=None, verbose=0, timeout=None,
backend = MultiprocessingBackend(nesting_level=nesting_level)
elif backend not in BACKENDS and backend in MAYBE_AVAILABLE_BACKENDS:
warnings.warn(
UserWarning,
f"joblib backend '{backend}' is not available on ",
f"your system, falling back to {DEFAULT_BACKEND}.",
stacklevel=2)
Expand Down

0 comments on commit 486bed5

Please sign in to comment.