Skip to content

Commit

Permalink
Actually raise the exception for not enough CPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
willGraham01 committed Feb 6, 2024
1 parent bdd0d91 commit 1545b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/test_integration/test_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_detection_full(
n_free_cpus = system_cpus - abs(cpus_to_leave_available)
# Check that there are enough CPUs
if not 0 <= n_free_cpus < system_cpus:
RuntimeError(
raise RuntimeError(
f"Not enough CPUS available (you want to leave {n_free_cpus} "
f"available, but there are only {system_cpus} on the system)."
)
Expand Down

0 comments on commit 1545b1b

Please sign in to comment.