]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-154394: Skip test_tcsendbreak on OpenBSD (GH-154397) (GH-154413)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 22 Jul 2026 04:39:28 +0000 (07:39 +0300)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 04:39:28 +0000 (04:39 +0000)
tcsendbreak() is not supported for pseudo-terminals on OpenBSD.
(cherry picked from commit f1730ddc474d9d103c4f85ecc4bb1e995a268ed9)

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

index 5fd62b30263a372cd0604d1ec3143025d124ae8c..cbc922bb3e31cab701339ab879d2f82638bedaa5 100644 (file)
@@ -97,7 +97,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")):
+            if exc.args[0] == errno.ENOTTY and sys.platform.startswith(('freebsd', 'netbsd', 'openbsd')):
                 self.skipTest('termios.tcsendbreak() is not supported '
                               'with pseudo-terminals (?) on this platform')
             raise