Skip to content

Commit 9acb58b

Browse files
committed
Skip test_tcsendbreak on NetBSD for ENOTTY Error
1 parent 3bd942f commit 9acb58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_termios.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_tcsendbreak(self):
9494
try:
9595
termios.tcsendbreak(self.fd, 1)
9696
except termios.error as exc:
97-
if exc.args[0] == errno.ENOTTY and sys.platform.startswith('freebsd'):
97+
if exc.args[0] == errno.ENOTTY and sys.platform.startswith(('freebsd', "netbsd")):
9898
self.skipTest('termios.tcsendbreak() is not supported '
9999
'with pseudo-terminals (?) on this platform')
100100
raise

0 commit comments

Comments
 (0)