Skip to content

Commit 91839e5

Browse files
miss-islingtonserhiy-storchakaclaude
authored
[3.15] gh-154279: Skip readline completion tests that fail on DragonFly and illumos (GH-154280) (GH-154282)
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 e81f190) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c0129a0 commit 91839e5

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Lib/test/test_pdb.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5167,8 +5167,9 @@ def f():
51675167

51685168
self.assertIn('I love Python', output)
51695169

5170-
@unittest.skipIf(sys.platform.startswith('freebsd'),
5171-
'\\x08 is not interpreted as backspace on FreeBSD')
5170+
@unittest.skipIf(sys.platform.startswith(('freebsd', 'dragonfly', 'sunos')),
5171+
'\\x08 does not remove the auto-indentation with '
5172+
'GNU readline on this platform')
51725173
def test_multiline_auto_indent(self):
51735174
script = textwrap.dedent("""
51745175
import pdb; pdb.Pdb().set_trace()
@@ -5207,8 +5208,9 @@ def test_multiline_completion(self):
52075208

52085209
self.assertIn('42', output)
52095210

5210-
@unittest.skipIf(sys.platform.startswith('freebsd'),
5211-
'\\x08 is not interpreted as backspace on FreeBSD')
5211+
@unittest.skipIf(sys.platform.startswith(('freebsd', 'dragonfly', 'sunos')),
5212+
'\\x08 does not remove the auto-indentation with '
5213+
'GNU readline on this platform')
52125214
def test_multiline_indent_completion(self):
52135215
script = textwrap.dedent("""
52145216
import pdb; pdb.Pdb().set_trace()

Lib/test/test_sqlite3/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,10 @@ def test_complete_schemata(self):
381381
self.assertIn("main", candidates)
382382
self.assertIn("temp", candidates)
383383

384-
@unittest.skipIf(sys.platform.startswith("freebsd"),
384+
@unittest.skipIf(sys.platform.startswith(("freebsd", "dragonfly", "sunos")),
385385
"Two actual tabs are inserted when there are no matching"
386386
" completions in the pseudo-terminal opened by run_pty()"
387-
" on FreeBSD")
387+
" on this platform")
388388
def test_complete_no_match(self):
389389
input_ = b"xyzzy\t\t\b\b\b\b\b\b\b.quit\n"
390390
# Set NO_COLOR to disable coloring for self.PS1.

0 commit comments

Comments
 (0)