]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Sep 2024 16:44:57 +0000 (18:44 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 16:44:57 +0000 (16:44 +0000)
(cherry picked from commit 9f42b62db998131bb5cd555e2fa72ba7e06e3130)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Lib/test/test_termios.py

index 58698ffac2d9815f18b4dad7bb08b92f9b266b75..11928f04a8a893cac8ed977802cff557a873c68d 100644 (file)
@@ -94,7 +94,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'):
+            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