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

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

index 0cf5dd2e4c1004231c90eda997f62e1b5fdf8aec..e7b66031a86a6ca425ab5032c97e56e64858f204 100644 (file)
@@ -5167,8 +5167,9 @@ class PdbTestReadline(unittest.TestCase):
 
         self.assertIn('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()
@@ -5207,8 +5208,9 @@ class PdbTestReadline(unittest.TestCase):
 
         self.assertIn('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()
index 1fc0236780fa8ba31c55f08cbde416d8c3f9e69e..29819cc19d343bc33174b6245b680a2fb3b04e9f 100644 (file)
@@ -378,10 +378,10 @@ class Completion(unittest.TestCase):
         self.assertIn("main", candidates)
         self.assertIn("temp", candidates)
 
-    @unittest.skipIf(sys.platform.startswith("freebsd"),
+    @unittest.skipIf(sys.platform.startswith(("freebsd", "dragonfly", "sunos")),
                     "Two actual tabs are inserted when there are no matching"
                     " completions in the pseudo-terminal opened by run_pty()"
-                    " on FreeBSD")
+                    " on this platform")
     def test_complete_no_match(self):
         input_ = b"xyzzy\t\t\b\b\b\b\b\b\b.quit\n"
         # Set NO_COLOR to disable coloring for self.PS1.