coverage
I'm using timeout_decorator.timeout to decorate my unit tests to ensure bugs in threaded code doesn't block the tests forever but fail the tests gracefully. But it seems to cause coverage testing during unit tests to ignore the decorated tests.
Maybe thats the reason why : By default, timeout-decorator uses signals to limit the execution time of the given function. This appoach does not work if your function is executed not in a main thread. There is alternative timeout strategy for this case - by using multiprocessing. You can force not to use signals on Linux by passing the parameter use_signals=False to the timeout decorator function (mostly for testing)
If You use my fork, this is done automatically, so in case the decorator does not run in the main thread, signals are disabled automatically.
see: https://github.com/bitranox/wrapt-timeout-decorator
yours sincerely
Robert