From be6a13569b8e5b7934b6dd5fc969a4c242147f85 Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Fri, 13 Sep 2024 19:27:54 +0300 Subject: [PATCH] gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031) (cherry picked from commit 9f42b62db998131bb5cd555e2fa72ba7e06e3130) Co-authored-by: Furkan Onder --- 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 58698ffac2d981..11928f04a8a893 100644 --- a/Lib/test/test_termios.py +++ b/Lib/test/test_termios.py @@ -94,7 +94,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'): + if exc.args[0] == errno.ENOTTY and sys.platform.startswith(('freebsd', "netbsd")): self.skipTest('termios.tcsendbreak() is not supported ' 'with pseudo-terminals (?) on this platform') raise