Skip to content

Commit e81f190

Browse files
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. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent eca3b26 commit e81f190

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
@@ -378,10 +378,10 @@ def test_complete_schemata(self):
378378
self.assertIn("main", candidates)
379379
self.assertIn("temp", candidates)
380380

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

0 commit comments

Comments
 (0)