Skip to content

Commit 8ba1b04

Browse files
miss-islingtonserhiy-storchakaclaude
authored
[3.15] gh-154303: Skip test_sqlite3 CLI completion tests on OpenBSD (GH-154304) (GH-154305)
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. (cherry picked from commit 63b564f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b7e0855 commit 8ba1b04

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_sqlite3/test_cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ def setUpClass(cls):
223223
readline = import_module("readline")
224224
if readline.backend == "editline":
225225
raise unittest.SkipTest("libedit readline is not supported")
226+
if sys.platform.startswith("openbsd"):
227+
# OpenBSD's readline does not honor "completion-query-items 0".
228+
raise unittest.SkipTest("OpenBSD readline hangs on completion")
226229

227230
def write_input(self, input_, env=None):
228231
script = textwrap.dedent("""

0 commit comments

Comments
 (0)