https://github.com/python/cpython/commit/35560dc8e35df2c5d12287bd6f24a9b3531827ae
commit: 35560dc8e35df2c5d12287bd6f24a9b3531827ae
branch: 3.15
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-07-22T05:43:33Z
summary:

[3.15] gh-154394: Skip test_tcsendbreak on OpenBSD (GH-154397) (GH-154411)

tcsendbreak() is not supported for pseudo-terminals on OpenBSD.
(cherry picked from commit f1730ddc474d9d103c4f85ecc4bb1e995a268ed9)

Co-authored-by: Claude Opus 4.8 <[email protected]>

files:
M Lib/test/test_termios.py

diff --git a/Lib/test/test_termios.py b/Lib/test/test_termios.py
index ce8392a6ccdbd6..9fdf42c329521d 100644
--- a/Lib/test/test_termios.py
+++ b/Lib/test/test_termios.py
@@ -104,7 +104,7 @@ def test_tcsendbreak(self):
         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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to