gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031)

This commit is contained in:
Furkan Onder 2024-09-13 19:27:54 +03:00 committed by GitHub
parent 8810e286fa
commit 9f42b62db9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View 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