Increase wait time (just in case sporadic failures are caused by slow interpreter startup) and wait a bit after getting the event (just in case thiiings are slooow and interpreter is sigtermed before it gets to the sleep(5) call).
Increase wait time (just in case sporadic failures are caused by slow interpreter startup) and wait a bit after getting the event (just in case thiiings are slooow and interpreter is sigtermed before it gets to the sleep(5) call).

pytest-dev/pytest-cov,schlamar/pytest-cov