Comments (2)
Pytest is unaware of multiprocessing
You need to add a passover handler yourself
from pytest.
I am curious whether it is feasible to support multiprocessing in caplog without resorting to hacks, and I am open to preparing a PR with your guidance.
Not sure if it would be possible to implement this in a general manner, as it would require some form of hooking into the subprocess spawning behavior to capture and transfer the captured logging output....
If multiprocessing had some form of way to enable this automatically, I could see we adding support for it to pytest, but a more complicated implementation is probably out of scope for the pytest core. Perhaps a plugin could be a good fit.
I'm closing this for now, but feel free to follow up with more questions.
from pytest.
Related Issues (20)
- Track exceptions when setting up and finalizing fixtures HOT 1
- Also emit `PytestUnknownMarkWarning` for unknown marks given in `-m` HOT 3
- race condition between creation of `.pytest_cache` and `.pytest_cache/.gitignore`
- ``ExceptionInfo.for_later()`` wont add assertion strip text HOT 3
- No module named 'exceptiongroup' HOT 6
- ModuleNotFoundError with multiprocessing and import-mode=importlib HOT 1
- 8.1.1 raises exception if `boto` is imported in environment HOT 3
- Pytest-watch with coverage (If not existent) HOT 1
- List of disabled plugins is not passed down to `runpytest()`
- Sporadically encountering SyntaxError HOT 7
- No output written to JUnit XML files
- AttributeError with import-mode importlib and doctest modules HOT 7
- log-disable as pytest.ini configuration option does not have any effect HOT 3
- Pytest keeps reference to attributes of failed test cases for too long HOT 4
- Conditional test parametrization HOT 3
- tmp_path_factory documentation has circular links HOT 3
- Pytest does not capture teardown logs if a fixture throws an exception
- ExceptionGroup traceback of session fixture unlimitedly grows from test to test HOT 1
- Missing `py.process` HOT 2
- iter_markers_with_node() has double entries for async test functions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest.