We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d3735 commit 8d15feaCopy full SHA for 8d15fea
Lib/test/test_termios.py
@@ -1,6 +1,6 @@
1
import errno
2
-import io
3
import os
+import sys
4
import tempfile
5
import unittest
6
from test.support.import_helper import import_module
@@ -91,7 +91,13 @@ def test_tcsetattr_errors(self):
91
self.assertRaises(TypeError, termios.tcsetattr, self.fd, termios.TCSANOW)
92
93
def test_tcsendbreak(self):
94
- termios.tcsendbreak(self.fd, 1)
+ try:
95
+ termios.tcsendbreak(self.fd, 1)
96
+ except termios.error as exc:
97
+ if exc.args[0] == errno.ENOTTY and sys.platform.startswith('freebsd'):
98
+ self.skipTest('termios.tcsendbreak() is not supported '
99
+ 'with pseudo-terminals (?) on this platform')
100
+ raise
101
termios.tcsendbreak(self.stream, 1)
102
103
def test_tcsendbreak_errors(self):
0 commit comments