From c78bbd9fd036c5b4051a4d17e8a2762f8088274c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 3 Nov 2015 07:53:51 +0100 Subject: [PATCH] tests: Show some information for WaitForTimeout. --- tests/integration/testprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/testprocess.py b/tests/integration/testprocess.py index ced7844f9..c440b5c47 100644 --- a/tests/integration/testprocess.py +++ b/tests/integration/testprocess.py @@ -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