]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-154279: Skip readline completion tests that fail on DragonFly and illumos...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jul 2026 19:11:05 +0000 (22:11 +0300)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 19:11:05 +0000 (19:11 +0000)
They are already skipped on FreeBSD, where a backspace does not remove
the auto-indentation.  The same happens on DragonFly and illumos.

(cherry picked from commit e81f19052ae1dad6bfaa240f3e56c2b34129a8fd)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_pdb.py

index 78d3b5ec0dc735a8cf691e917f9cdda63d479e68..e51488f8e03b8e76a395f436135b995441855df4 100644 (file)
@@ -5013,8 +5013,9 @@ class PdbTestReadline(unittest.TestCase):
 
         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 @@ class PdbTestReadline(unittest.TestCase):
 
         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()