Skip to content

Commit 23b5a85

Browse files
committed
black
1 parent fb4918d commit 23b5a85

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/stability/test_adaptive_scaling.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
),
2121
)
2222
def test_scale_up_on_task_load(minimum, threshold, scatter):
23-
"""Tests that adaptive scaling reacts in a reasonable amount of time to
23+
"""Tests that adaptive scaling reacts in a reasonable amount of time to
2424
an increased task load and scales up.
2525
"""
2626
maximum = 10
@@ -61,8 +61,8 @@ def clog(x: int, ev: Event) -> int:
6161
@pytest.mark.stability
6262
@pytest.mark.parametrize("minimum", (0, 1))
6363
def test_adapt_to_changing_workload(minimum: int):
64-
"""Tests that adaptive scaling reacts within a reasonable amount of time to
65-
a varying task load and scales up or down. This also asserts that no recomputation
64+
"""Tests that adaptive scaling reacts within a reasonable amount of time to
65+
a varying task load and scales up or down. This also asserts that no recomputation
6666
is caused by the scaling.
6767
"""
6868
maximum = 10
@@ -81,7 +81,9 @@ def test_adapt_to_changing_workload(minimum: int):
8181
def clog(x: int, ev: Event, sem: Semaphore, **kwargs) -> int:
8282
# Ensure that no recomputation happens by decrementing a countdown on a semaphore
8383
acquired = sem.acquire(timeout=1)
84-
assert acquired is True, "Could not acquire semaphore, likely recomputation happened."
84+
assert (
85+
acquired is True
86+
), "Could not acquire semaphore, likely recomputation happened."
8587
ev.wait()
8688
return x
8789

@@ -185,7 +187,7 @@ def workload(
185187
@pytest.mark.parametrize("minimum", (0, 1))
186188
def test_adapt_to_memory_intensive_workload(minimum):
187189
"""Tests that adaptive scaling reacts within a reasonable amount of time to a varying task and memory load.
188-
190+
189191
Note: This tests currently results in spilling and very long runtimes.
190192
"""
191193
maximum = 10

0 commit comments

Comments
 (0)