From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 24 Sep 2024 00:28:10 +0000 (+0200) Subject: [3.13] gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031) (... X-Git-Tag: v3.13.0rc3~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06a1b0c2c356a9004e4abc5a06d9df46e0f4cd0d;p=thirdparty%2FPython%2Fcpython.git [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 9f42b62db998131bb5cd555e2fa72ba7e06e3130) Co-authored-by: Furkan Onder --- diff --git a/Lib/test/test_termios.py b/Lib/test/test_termios.py index 58698ffac2d9..11928f04a8a8 100644 --- a/Lib/test/test_termios.py +++ b/Lib/test/test_termios.py @@ -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