multiprocessing.Manager() + cd leads to EOFError #890
Describe the bug
coverage debug sys
import multiprocessing import os if not os.path.exists("./tmp"): os.mkdir("./tmp") os.chdir("./tmp") with multiprocessing.Manager() as manager: pass print("ok")
python -m coverage run repro.py
The text was updated successfully, but these errors were encountered:
Hmm, something is different for me here on Mac OS. Under Python 3.8, I see the same behavior either with or without coverage, and with coverage==4.5.4 or coverage==5.0.1. I get a stack trace like this:
If I change the code to this, it works under either:
I'm not sure what the code is meant to do, and so which should go in the
Thanks for spending time on it!
I'm sorry to not emphasize
[run] concurrency = multiprocessing
Without concurrency setting it doesn't throw.
For some reason windows builds hang forever after first failure command, therefore I cancelled windows jobs after first failure. (I'm not good at windows scripting, please tell how to fix if you know)
Note there are two scripts:
Here is build of