From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 21 Jul 2026 03:58:01 +0000 (+0200) Subject: [3.15] gh-154303: Skip test_sqlite3 CLI completion tests on OpenBSD (GH-154304) ... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ba1b04b508d44900df63e6bb08031d0fb34fee2;p=thirdparty%2FPython%2Fcpython.git [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 63b564fc8728036f165805407f7d2b4e8bfd3ef0) Co-authored-by: Serhiy Storchaka Co-authored-by: Claude Opus 4.8 (1M context) --- diff --git a/Lib/test/test_sqlite3/test_cli.py b/Lib/test/test_sqlite3/test_cli.py index 1fc0236780fa..5b3fd32cde65 100644 --- a/Lib/test/test_sqlite3/test_cli.py +++ b/Lib/test/test_sqlite3/test_cli.py @@ -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("""