diff --git a/tests/device_handler.py b/tests/device_handler.py index f78686922c..b2c61acbfc 100644 --- a/tests/device_handler.py +++ b/tests/device_handler.py @@ -48,18 +48,6 @@ class BackgroundDeviceHandler: self.client.watch_layout(True) self.client.debug.input_wait_type = DebugWaitType.CURRENT_LAYOUT - def run(self, function: Callable[..., Any], *args: Any, **kwargs: Any) -> None: - """Runs some function that interacts with a device. - - Makes sure the UI is updated before returning. - """ - if self.task is not None: - raise RuntimeError("Wait for previous task first") - - # wait for the first UI change triggered by the task running in the background - with self.debuglink().wait_for_layout_change(): - self.task = self._pool.submit(function, self.client, *args, **kwargs) - def run_with_session( self, function: Callable[..., Any], *args: Any, **kwargs: Any ) -> None: