8000 gh-132742: Improve tests for fcntl.ioctl() by serhiy-storchaka · Pull Request #132791 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132742: Improve tests for fcntl.ioctl() #132791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 28, 2025
Prev Previous commit
Next Next commit
Skip ioctl TCXONC tests on non-Linux.
  • Loading branch information
serhiy-storchaka committed Apr 24, 2025
commit 86887c958b3540e9dde1c3698829f8307b986fd7
1 change: 1 addition & 0 deletions Lib/test/test_ioctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def test_ioctl_clear_input_or_output(self):
os.write(wfd, b'ABCDEF')
self.assertEqual(os.read(rfd, 1024), b'ABCDEF')

@unittest.skipUnless(sys.platform == 'linux', 'only works on Linux')
@unittest.skipUnless(hasattr(termios, 'TCXONC'), 'requires termios.TCXONC')
def test_ioctl_suspend_and_resume_output(self):
wfd = self.slave_fd
Expand Down
0