From 285c399ae516fec86cdd18f1793abbe5929f0f34 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 Jul 2022 16:44:29 +0530 Subject: [PATCH] ... --- kitty/prewarm.py | 2 +- kitty_tests/prewarm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/prewarm.py b/kitty/prewarm.py index d54bc6adb..4d775a231 100644 --- a/kitty/prewarm.py +++ b/kitty/prewarm.py @@ -202,7 +202,7 @@ class PrewarmProcess: self.poll_to_send(bool(output_buf)) for (fd, event) in self.poll.poll(2): if event & error_events: - raise PrewarmProcessFailed('Failed doing I/O with prewarm process: {event}') + raise PrewarmProcessFailed(f'Failed doing I/O with prewarm process: {event}') if fd == self.write_to_process_fd and event & select.POLLOUT: n = os.write(self.write_to_process_fd, output_buf) output_buf = output_buf[n:] diff --git a/kitty_tests/prewarm.py b/kitty_tests/prewarm.py index 07364fb52..b19b8dfb3 100644 --- a/kitty_tests/prewarm.py +++ b/kitty_tests/prewarm.py @@ -62,7 +62,7 @@ def socket_child_main(exit_code=0, initial_print=''): status = wait_for_child_death(pty.child_pid, timeout=5) if status is None: os.kill(pty.child_pid, signal.SIGKILL) - self.assertIsNotNone(status, 'prewarm wrapper process did not exit') + self.assertIsNotNone(status, f'prewarm wrapper process did not exit. Screen contents: {pty.screen_contents()}') with suppress(AttributeError): self.assertEqual(os.waitstatus_to_exitcode(status), exit_code, pty.screen_contents())