mirror of https://github.com/python/cpython
gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031)
This commit is contained in:
parent
8810e286fa
commit
9f42b62db9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue