Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 12, 2024
1 parent 4d1892a commit 86476d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xdist/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion testing/acceptance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 86476d4

Please sign in to comment.