[issue15971] Sporadic failure in test_dump_tracebacks_later_file (test_faulthandler)

STINNER Victor report at bugs.python.org
Wed Sep 19 14:08:30 CEST 2012


STINNER Victor added the comment:

Code of the failing test:
----
import faulthandler
import time

def func(timeout, repeat, cancel, file, loops):
    for loop in range(loops):
        faulthandler.dump_tracebacks_later(timeout, repeat=repeat, file=file)
        if cancel:
            faulthandler.cancel_dump_tracebacks_later()
        time.sleep(timeout * 5)  # line 9
        faulthandler.cancel_dump_tracebacks_later()   # line 10

timeout = {timeout}
repeat = {repeat}
cancel = {cancel}
loops = {loops}
if {has_filename}:
    file = open({filename}, "wb")
else:
    file = None
func(timeout, repeat, cancel, file, loops)
if file is not None:
    file.close()
----
If the test fails at line 10: it means that it failed to dump the
traceback in 2.5 seconds, whereas the traceback must be dumped after a
timeout of 0.5 second.

Do you know if the system load of this particular buildbot is high? It
would be nice to have the system load in the output of the buildbot.

We might change the timeout, but it is already long.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15971>
_______________________________________


More information about the Python-bugs-list mailing list