Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call
close()
and join()
on multiprocessing.Pool()
According to the documentation https://coverage.readthedocs.io/en/latest/subprocess.html#using-multiprocessing a `pool` needs to be closed and joined, even inside a `with` block. According to https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool the `Pool` class calls `terminate()` whenever the context manager calls `pool.__exit()__` This will terminate the worker processes immediately, and apparently `coverage` won't have enough time to record its coverage measurements. So this change is only needed to measure the coverage properly.
- Loading branch information