Skip to content

Commit fc5ad69

Browse files
committed
raise test_detection error for sonarcloud happy
1 parent 0a719b8 commit fc5ad69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/core/test_integration/test_detection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_detection_full(
7878
n_free_cpus = system_cpus - abs(cpus_to_leave_available)
7979
# Check that there are enough CPUs
8080
if not 0 <= n_free_cpus < system_cpus:
81-
RuntimeError(
81+
raise RuntimeError(
8282
f"Not enough CPUS available (you want to leave {n_free_cpus} "
8383
f"available, but there are only {system_cpus} on the system)."
8484
)

0 commit comments

Comments
 (0)