Skip to content

Commit

Permalink
pythongh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
furkanonder committed Sep 13, 2024
1 parent 8810e28 commit 9f42b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_termios.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_tcsendbreak(self):
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
Expand Down

0 comments on commit 9f42b62

Please sign in to comment.