Skip to content

Commit 1ad0eef

Browse files
[3.14] gh-154279: Skip readline completion tests that fail on DragonFly and illumos (GH-154280) (GH-154288)
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: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8e1b33d commit 1ad0eef

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Lib/test/test_pdb.py

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

50145014
self.assertIn(b'I love Python', output)
50155015

5016-
@unittest.skipIf(sys.platform.startswith('freebsd'),
5017-
'\\x08 is not interpreted as backspace on FreeBSD')
5016+
@unittest.skipIf(sys.platform.startswith(('freebsd', 'dragonfly', 'sunos')),
5017+
'\\x08 does not remove the auto-indentation with '
5018+
'GNU readline on this platform')
50185019
def test_multiline_auto_indent(self):
50195020
script = textwrap.dedent("""
50205021
import pdb; pdb.Pdb().set_trace()
@@ -5053,8 +5054,9 @@ def test_multiline_completion(self):
50535054

50545055
self.assertIn(b'42', output)
50555056

5056-
@unittest.skipIf(sys.platform.startswith('freebsd'),
5057-
'\\x08 is not interpreted as backspace on FreeBSD')
5057+
@unittest.skipIf(sys.platform.startswith(('freebsd', 'dragonfly', 'sunos')),
5058+
'\\x08 does not remove the auto-indentation with '
5059+
'GNU readline on this platform')
50585060
def test_multiline_indent_completion(self):
50595061
script = textwrap.dedent("""
50605062
import pdb; pdb.Pdb().set_trace()

0 commit comments

Comments
 (0)