Dont check exitcode on ancient python
This commit is contained in:
parent
350af446d3
commit
84c680266a
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ def wait_till_child_exits(self, timeout=10, require_exit_code=None):
|
|||
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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue