KeyError in module ‘threading’ after a successful py.test run
I observed a similar issue and decided to see what’s going on exactly – let me describe my findings. I hope someone will find it useful. Short story It is indeed related to monkey-patching the threading module. In fact, I can easily trigger the exception by importing the threading module before monkey-patching threads. The following … Read more