]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-154303: Skip test_sqlite3 CLI completion tests on OpenBSD (GH-154304)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jul 2026 22:10:11 +0000 (01:10 +0300)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 22:10:11 +0000 (22:10 +0000)
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>
Lib/test/test_sqlite3/test_cli.py

index 29819cc19d343bc33174b6245b680a2fb3b04e9f..0d235d90f1101b47d3f24da78d9da5e40b6e1d20 100644 (file)
@@ -223,6 +223,9 @@ class Completion(unittest.TestCase):
         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("""