Skip to content

Commit

Permalink
Revert unwanted test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Mar 15, 2024
1 parent d9b2de7 commit 69a77c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions sphinx/testing/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ def app(
"""
args, kwargs = app_params
app_ = make_app(*args, **kwargs)
app_.env.config.enable_parallel_post_transform = True
yield app_

print('# testroot:', kwargs.get('testroot', 'root'))
Expand Down Expand Up @@ -190,7 +189,6 @@ def make(*args: Any, **kwargs: Any) -> SphinxTestApp:
kwargs.setdefault('status', status)
kwargs.setdefault('warning', warning)
app_: Any = SphinxTestApp(*args, **kwargs)
# app_.env.config.enable_parallel_post_transform = True
apps.append(app_)
if test_params['shared_result']:
app_ = SphinxTestAppWrapperForSkipBuilding(app_)
Expand Down
4 changes: 2 additions & 2 deletions sphinx/testing/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def __init__(
status: IO | None = None,
warning: IO | None = None,
tags: list[str] | None = None,
docutilsconf: str | None = None,
parallel: int = 4,
docutils_conf: str | None = None,
parallel: int = 0,
) -> None:
assert srcdir is not None

Expand Down
2 changes: 1 addition & 1 deletion sphinx/util/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def make_chunks(arguments: Sequence[str], nproc: int, maxbatch: int = 10) -> lis
chunksize = nargs // nproc
if chunksize >= maxbatch:
# try to improve batch size vs. number of batches
chunksize = int(sqrt(sqrt(nargs / nproc * maxbatch)))
chunksize = int(sqrt(nargs / nproc * maxbatch))
if chunksize == 0:
chunksize = 1
nchunks, rest = divmod(nargs, chunksize)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ setenv =
PYTHONWARNINGS = error
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
commands=
python -X dev -X warn_default_encoding -m pytest -n 4 --durations 25 {posargs}
python -X dev -X warn_default_encoding -m pytest --durations 25 {posargs}

[testenv:docs]
basepython = python3
Expand Down

0 comments on commit 69a77c7

Please sign in to comment.