Skip to content

Commit 86887c9

Browse files
Skip ioctl TCXONC tests on non-Linux.
1 parent 7efcbf9 commit 86887c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_ioctl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def test_ioctl_clear_input_or_output(self):
168168
os.write(wfd, b'ABCDEF')
169169
self.assertEqual(os.read(rfd, 1024), b'ABCDEF')
170170

171+
@unittest.skipUnless(sys.platform == 'linux', 'only works on Linux')
171172
@unittest.skipUnless(hasattr(termios, 'TCXONC'), 'requires termios.TCXONC')
172173
def test_ioctl_suspend_and_resume_output(self):
173174
wfd = self.slave_fd

0 commit comments

Comments
 (0)