tests: Show some information for WaitForTimeout.

This commit is contained in:
Florian Bruhin 2015-11-03 07:53:51 +01:00
parent 535bcab310
commit c78bbd9fd0

View File

@ -190,7 +190,8 @@ class Process(QObject):
while True:
got_signal = spy.wait(timeout)
if not got_signal or elapsed_timer.hasExpired(timeout):
raise WaitForTimeout
raise WaitForTimeout("Timed out after {}ms waiting for "
"{!r}.".format(timeout, kwargs))
for args in spy:
assert len(args) == 1