Repository navigation
pytest-xdist for the unit tests - #47
Merged
Merged
Conversation
…() warning. pyTooling/Actions@r9 runs the unit tests with pytest-xdist workers when it is installed, else it warns and runs them serially. In a pytest-xdist worker, the process is multi-threaded, so Python warns with a DeprecationWarning when Sphinx forks its reading processes, which pytest turns into an error: the parallel builds failed with "'NoneType' object has no attribute 'terminate'". Project._build ignores that warning. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Merged
This was referenced Oct 17, 2026
This was referenced Oct 17, 2026
Merged
This was referenced Oct 17, 2026
Merged
Merged
Merged
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unit Tests
tests/unit/requirements.txt:pytest-xdist ~= 3.8.pyTooling/Actions@r9runs the unit tests with pytest-xdist workers (unittest_parallel, defaultauto) when it is installed; without it, every unit test job warned pytest-xdist isn't installed: running the tests serially. Locally the unit tests take 8 s instead of 20 s with-n auto.tests/unit/Extension.py:Project._buildignores Python's warning aboutfork()in a multi-threaded process. A pytest-xdist worker is multi-threaded; Sphinx forks its reading processes in a parallel build, Python 3.12+ warns with aDeprecationWarning, andpyproject.tomlturns it into an error.Rendering.ParallelinExtension.pyandDownload.pyfailed under-n autowithAttributeError: 'NoneType' object has no attribute 'terminate'(multiprocessing'sProcess.start()raised before the process existed, then Sphinx' cleanup calledterminate()on it). Serially and with-n auto, all tests pass.Related Issues and Pull-Requests
AttributeErrorfails pyTooling.GitHub'stest_Parallelon macOS (Python 3.15 and pyTooling/Actions@r9 pyTooling.GitHub#23) - likely the same warning, from another thread in that process.