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
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: