diff --git a/src/xdist/plugin.py b/src/xdist/plugin.py index e5b7b901..6814b628 100644 --- a/src/xdist/plugin.py +++ b/src/xdist/plugin.py @@ -136,7 +136,7 @@ def pytest_addoption(parser: pytest.Parser) -> None: "Reorders tests when used in conjunction with loadscope.\n" "Will order tests by number of tests per scope as a best-effort" " attempt to evenly distribute scopes across all workers." - ) + ), ) group.addoption( "--tx", diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 32146b6e..1f91dae7 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -1262,7 +1262,9 @@ def test(i): pass """ pytester.makepyfile(test_a=test_file.format(10), test_b=test_file.format(20)) - result = pytester.runpytest("-n2", "--dist=loadscope", "--no-loadscope-reorder", "-v") + result = pytester.runpytest( + "-n2", "--dist=loadscope", "--no-loadscope-reorder", "-v" + ) assert get_workers_and_test_count_by_prefix( "test_a.py::test", result.outlines ) == {"gw0": 10}