Skip to content

Commit

Permalink
[3.13] gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (G…
Browse files Browse the repository at this point in the history
…H-124031) (#124063)

gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031)
(cherry picked from commit 9f42b62)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
  • Loading branch information
miss-islington and furkanonder committed Sep 24, 2024
1 parent 8af2d18 commit 06a1b0c
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 06a1b0c

Please sign in to comment.