[pytest-dev] multiprocessing tests hang on Python3.8+macOS
Andrew Nelson
andyfaff at gmail.com
Sat Apr 11 00:23:27 EDT 2020
Dear pytest-dev,
on scipy we typically run the test suite using a test script collecting a
series of test arguments, then supplies them to `pytest.main()`.
https://github.com/scipy/scipy/blob/master/runtests.py#L307
then
https://github.com/scipy/scipy/blob/master/scipy/_lib/_testutils.py#L67
I'm finding that all the tests that involve multiprocessing fail, e.g.
```
def test_pool():
with Pool(2) as p:
p.map(math.sin, [1,2,3, 4])
```
This is on macOS+Python3.8 that uses 'spawn' as a start method. If I run
the tests directly using pytest there aren't any issues.
Are there any known issues using `pytest.main` with multiprocessing?
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20200411/96868b99/attachment.html>
More information about the pytest-dev
mailing list