diff --git a/tests/integration/quteprocess.py b/tests/integration/quteprocess.py index e23367db6..b6d6b3067 100644 --- a/tests/integration/quteprocess.py +++ b/tests/integration/quteprocess.py @@ -183,5 +183,5 @@ def quteproc(qapp, httpbin): proc = QuteProc(httpbin) proc.start() yield proc - proc.after_test() proc.terminate() + proc.after_test() diff --git a/tests/integration/testprocess.py b/tests/integration/testprocess.py index 42a41f701..1eef2eef2 100644 --- a/tests/integration/testprocess.py +++ b/tests/integration/testprocess.py @@ -134,15 +134,13 @@ class Process(QObject): unexpected output lines earlier. """ self._data.clear() - if not self.is_running(): - print("Restarting process...") - self.start() - raise ProcessExited if self._invalid: raise InvalidLine def terminate(self): """Clean up and shut down the process.""" + if not self.is_running(): + raise ProcessExited self.proc.terminate() self.proc.waitForFinished()