From 7c584e7b6c6a1514ecd28bc7962d63c74bab74e7 Mon Sep 17 00:00:00 2001 From: Joakim Reinert Date: Mon, 9 Oct 2017 16:23:45 +0200 Subject: [PATCH] add optional interval argument to start function of Timer stubs Fixes failing tests for completer --- tests/helpers/stubs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/helpers/stubs.py b/tests/helpers/stubs.py index 15d2ce8a0..d86d6c1d7 100644 --- a/tests/helpers/stubs.py +++ b/tests/helpers/stubs.py @@ -377,7 +377,9 @@ class FakeTimer(QObject): def isSingleShot(self): return self._singleshot - def start(self): + def start(self, interval=None): + if interval: + self._interval = interval self._started = True def stop(self): @@ -396,7 +398,7 @@ class InstaTimer(QObject): timeout = pyqtSignal() - def start(self): + def start(self, interval=None): self.timeout.emit() def setSingleShot(self, yes):