]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-154303: Skip test_sqlite3 CLI completion tests on OpenBSD (GH-154304) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 Jul 2026 03:58:01 +0000 (05:58 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 03:58:01 +0000 (06:58 +0300)
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 63b564fc8728036f165805407f7d2b4e8bfd3ef0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_sqlite3/test_cli.py

index 1fc0236780fa8ba31c55f08cbde416d8c3f9e69e..5b3fd32cde653dc1eadc286572072f45e4ba2c5d 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("""