From 1dbb01e465cec5fb817e497240cc6600bc7bba00 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 20 Jul 2026 21:32:24 +0300 Subject: [PATCH] [3.14] gh-154279: Skip readline completion tests that fail on DragonFly and illumos (GH-154280) They are already skipped on FreeBSD, where a backspace does not remove the auto-indentation. The same happens on DragonFly and illumos. The sqlite3 CLI test does not exist on 3.14, so only the pdb tests are skipped here. (cherry picked from commit e81f19052ae1dad6bfaa240f3e56c2b34129a8fd) Co-Authored-By: Claude Opus 4.8 (1M context) --- Lib/test/test_pdb.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 78d3b5ec0dc735..e51488f8e03b8e 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -5013,8 +5013,9 @@ def f(): self.assertIn(b'I love Python', output) - @unittest.skipIf(sys.platform.startswith('freebsd'), - '\\x08 is not interpreted as backspace on FreeBSD') + @unittest.skipIf(sys.platform.startswith(('freebsd', 'dragonfly', 'sunos')), + '\\x08 does not remove the auto-indentation with ' + 'GNU readline on this platform') def test_multiline_auto_indent(self): script = textwrap.dedent(""" import pdb; pdb.Pdb().set_trace() @@ -5053,8 +5054,9 @@ def test_multiline_completion(self): self.assertIn(b'42', output) - @unittest.skipIf(sys.platform.startswith('freebsd'), - '\\x08 is not interpreted as backspace on FreeBSD') + @unittest.skipIf(sys.platform.startswith(('freebsd', 'dragonfly', 'sunos')), + '\\x08 does not remove the auto-indentation with ' + 'GNU readline on this platform') def test_multiline_indent_completion(self): script = textwrap.dedent(""" import pdb; pdb.Pdb().set_trace()