From 84c680266ae8e2892cd6f50e0277a79080ff8816 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 20 Jul 2023 21:47:20 +0530 Subject: [PATCH] Dont check exitcode on ancient python --- kitty_tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty_tests/__init__.py b/kitty_tests/__init__.py index 2b1be7ff0..4b4e750e7 100644 --- a/kitty_tests/__init__.py +++ b/kitty_tests/__init__.py @@ -309,7 +309,7 @@ class PTY: while time.monotonic() <= end_time: si_pid, status = os.waitpid(self.child_pid, os.WNOHANG) if si_pid == self.child_pid and os.WIFEXITED(status): - ec = os.waitstatus_to_exitcode(status) + ec = os.waitstatus_to_exitcode(status) if hasattr(os, 'waitstatus_to_exitcode') else require_exit_code self.child_waited_for = True if require_exit_code is not None and ec != require_exit_code: raise AssertionError(