]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133558: Skip test_pdb tests on FreeBSD (#133566)
authorVictor Stinner <vstinner@python.org>
Wed, 7 May 2025 20:59:29 +0000 (22:59 +0200)
committerGitHub <noreply@github.com>
Wed, 7 May 2025 20:59:29 +0000 (22:59 +0200)
'\x08' is not interpreted as backspace on FreeBSD.

Lib/test/test_pdb.py

index 54797d7898ff33e7aeb96a89982ebe83ac4f3c56..68c2b508fa64dc2a7944205f28f896063885648c 100644 (file)
@@ -4848,6 +4848,8 @@ 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')
     def test_multiline_auto_indent(self):
         script = textwrap.dedent("""
             import pdb; pdb.Pdb().set_trace()
@@ -4886,6 +4888,8 @@ class PdbTestReadline(unittest.TestCase):
 
         self.assertIn(b'42', output)
 
+    @unittest.skipIf(sys.platform.startswith('freebsd'),
+                     '\\x08 is not interpreted as backspace on FreeBSD')
     def test_multiline_indent_completion(self):
         script = textwrap.dedent("""
             import pdb; pdb.Pdb().set_trace()