Skip to content

Commit 776c301

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3de8be1 commit 776c301

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

testing/acceptance_test.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,10 +1285,10 @@ def test(i):
12851285
assert counts_by_worker["gw1"] in (2, 3)
12861286
assert counts_by_worker["gw0"] + counts_by_worker["gw1"] == 5
12871287

1288-
@pytest.mark.parametrize('num_tests', [1, 2, 3])
1289-
def test_single_scope_subset_of_workers_utilized(self,
1290-
num_tests: int,
1291-
pytester: pytest.Pytester) -> None:
1288+
@pytest.mark.parametrize("num_tests", [1, 2, 3])
1289+
def test_single_scope_subset_of_workers_utilized(
1290+
self, num_tests: int, pytester: pytest.Pytester
1291+
) -> None:
12921292
"""
12931293
With single scope, there are no fence tests from another scope, so
12941294
this scheduler resorts to shutting down the workers in order to execute
@@ -1303,7 +1303,9 @@ def test(i):
13031303
"""
13041304
pytester.makepyfile(test_a=test_file)
13051305
result = pytester.runpytest("-n2", "--dist=isoscope", "-v")
1306-
counts_by_worker = get_workers_and_test_count_by_prefix("test_a.py::test", result.outlines)
1306+
counts_by_worker = get_workers_and_test_count_by_prefix(
1307+
"test_a.py::test", result.outlines
1308+
)
13071309
assert counts_by_worker["gw0"] in (0, num_tests)
13081310
assert counts_by_worker["gw1"] in (0, num_tests)
13091311
assert counts_by_worker["gw0"] + counts_by_worker["gw1"] == num_tests

0 commit comments

Comments
 (0)