]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-154414: Skip test_tcsendbreak on DragonFly BSD (GH-154415) (GH-154425)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 22 Jul 2026 05:54:08 +0000 (08:54 +0300)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 05:54:08 +0000 (05:54 +0000)
tcsendbreak() is not supported for pseudo-terminals on DragonFly BSD.
(cherry picked from commit a84e780707d3baa3b9f73981d8b7e293eb10d076)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_termios.py

index 9fdf42c329521db43cb271941acebb88a6322e4e..4d43bd97bb38a98b1cc9341be3f724e7d7459780 100644 (file)
@@ -104,7 +104,7 @@ class TestFunctions(unittest.TestCase):
         try:
             termios.tcsendbreak(self.fd, 1)
         except termios.error as exc:
-            if exc.args[0] == errno.ENOTTY and sys.platform.startswith(('freebsd', 'netbsd', 'openbsd')):
+            if exc.args[0] == errno.ENOTTY and sys.platform.startswith(('freebsd', 'netbsd', 'openbsd', 'dragonfly')):
                 self.skipTest('termios.tcsendbreak() is not supported '
                               'with pseudo-terminals (?) on this platform')
             raise