@@ -1311,7 +1311,7 @@ def test(i):
1311
1311
assert counts_by_worker ["gw0" ] + counts_by_worker ["gw1" ] == num_tests
1312
1312
1313
1313
def test_multi_scope_with_insufficient_fence (
1314
- self , pytester : pytest .Pytester
1314
+ self , pytester : pytest .Pytester
1315
1315
) -> None :
1316
1316
"""
1317
1317
When there are not enough fence tests from subsequent scope(s),
@@ -1320,15 +1320,15 @@ def test_multi_scope_with_insufficient_fence(
1320
1320
tests per worker from the active scope, unless the scope has only one
1321
1321
test.
1322
1322
"""
1323
- test_file1 = f """
1323
+ test_file1 = """
1324
1324
import pytest
1325
1325
# 6 tests should distribute 2 per worker for 3 workers due to the
1326
1326
# min-2 scope tests per worker rule.
1327
1327
@pytest.mark.parametrize('i', range(6))
1328
1328
def test(i):
1329
1329
pass
1330
1330
"""
1331
- test_file2 = f """
1331
+ test_file2 = """
1332
1332
import pytest
1333
1333
class FenceA:
1334
1334
def test(self):
@@ -1351,7 +1351,7 @@ def test1(self):
1351
1351
# 6 tests should distribute 2 per worker for 3 workers due to the
1352
1352
# min-2 scope tests per worker rule.
1353
1353
assert sum (counts_by_worker_a .values ()) == 6
1354
- for worker in [' gw0' , ' gw1' , ' gw2' ]:
1354
+ for worker in [" gw0" , " gw1" , " gw2" ]:
1355
1355
assert counts_by_worker_a [worker ] == 2
1356
1356
1357
1357
counts_by_worker_fence_a = get_workers_and_test_count_by_prefix (
0 commit comments