]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031)
authorFurkan Onder <furkanonder@protonmail.com>
Fri, 13 Sep 2024 16:27:54 +0000 (19:27 +0300)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 16:27:54 +0000 (19:27 +0300)
Lib/test/test_termios.py

index 22e397c7a409c4847c5303a80d175a354b01d4be..b98cbd553dac3f6f3ed65254e9c5403b6db772e9 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