[issue41788] enhancement: add assertDuration context manager to unittest module
Pablo Galindo Salgado
report at bugs.python.org
Tue Sep 15 03:45:39 EDT 2020
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
I think this can be very error prone because a particular operation could be interrupted by GIL switching in the middle of the context manager and be reported as taking much more than the execution of the code itself is taking. This will be very confused to users that expect it to "just work"
----------
nosy: +pablogsal
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41788>
_______________________________________
More information about the Python-bugs-list
mailing list