You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coverage.py needs subprocesses to end cleanly so that all the measured data will be written out. With multiprocessing, this works to make the workers end correctly:
deftest_foo():
withmultiprocessing.Pool(processes=1) aspool:
# ... use the pool, for example: pool.apply(complex_math_verification)pool.close()
pool.join()
Similar code with billiard does not end the processes cleanly:
Coverage.py needs subprocesses to end cleanly so that all the measured data will be written out. With multiprocessing, this works to make the workers end correctly:
Similar code with billiard does not end the processes cleanly:
Coverage issues nedbat/coveragepy#1673 and nedbat/coveragepy#1910 have more details.
Is this a bug in billiard, or does it need different code to cleanly end the worker processes?
The text was updated successfully, but these errors were encountered: