OpenBSD's readline does not honor "completion-query-items 0", so completing
many candidates blocks on a "Display all N?" prompt that hangs the
pseudo-terminal opened by run_pty(). Skip the whole Completion class on
OpenBSD, like the existing libedit skip.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
readline = import_module("readline")
if readline.backend == "editline":
raise unittest.SkipTest("libedit readline is not supported")
+ if sys.platform.startswith("openbsd"):
+ # OpenBSD's readline does not honor "completion-query-items 0".
+ raise unittest.SkipTest("OpenBSD readline hangs on completion")
def write_input(self, input_, env=None):
script = textwrap.dedent("""