From 8aa1b8b42ee47f252641d2a0d232bc94afd501e2 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 22 Jul 2026 07:43:51 +0300 Subject: [PATCH] [3.14] gh-154394: Skip test_tcsendbreak on OpenBSD (GH-154397) (GH-154412) tcsendbreak() is not supported for pseudo-terminals on OpenBSD. (cherry picked from commit f1730ddc474d9d103c4f85ecc4bb1e995a268ed9) Co-authored-by: Claude Opus 4.8 --- Lib/test/test_termios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_termios.py b/Lib/test/test_termios.py index ce8392a6ccdb..9fdf42c32952 100644 --- a/Lib/test/test_termios.py +++ b/Lib/test/test_termios.py @@ -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")): + 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 -- 2.47.3