Skip to content

Commit 06a1b0c

Browse files
[3.13] gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031) (#124063)
gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031) (cherry picked from commit 9f42b62) Co-authored-by: Furkan Onder <[email protected]>
1 parent 8af2d18 commit 06a1b0c

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)