8000 gh-132742: Fix newly added tcflush() tests on Android by serhiy-storchaka · Pull Request #133070 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132742: Fix newly added tcflush() tests on Android #133070

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 3 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use support.SHORT_TIMEOUT.
  • Loading branch information
serhiy-storchaka committed Apr 28, 2025
commit c3a0c3db5634ddce0bb2713b9dfd0dae20018717
4 changes: 2 additions & 2 deletions Lib/test/test_ioctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_ioctl_suspend_and_resume_output(self):

def writer():
os.write(wfd, b'abc')
self.assertTrue(write_suspended.wait(5))
self.assertTrue(write_suspended.wait(support.SHORT_TIMEOUT))
os.write(wfd, b'def')
write_finished.set()

Expand All @@ -191,7 +191,7 @@ def writer():
'output was not suspended')
finally:
fcntl.ioctl(wfd, termios.TCXONC, termios.TCOON)
self.assertTrue(write_finished.wait(5),
self.assertTrue(write_finished.wait(support.SHORT_TIMEOUT),
'output was not resumed')
self.assertEqual(os.read(rfd, 1024), b'def')

Expand Down
4 changes: 2 additions & 2 deletions Lib/test/test_termios.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def test_tcflow_suspend_and_resume_output(self):

def writer():
os.write(wfd, b'abc')
self.assertTrue(write_suspended.wait(5))
self.assertTrue(write_suspended.wait(support.SHORT_TIMEOUT))
os.write(wfd, b'def')
write_finished.set()

Expand All @@ -217,7 +217,7 @@ def writer():
'output was not suspended')
finally:
termios.tcflow(wfd, termios.TCOON)
self.assertTrue(write_finished.wait(5),
self.assertTrue(write_finished.wait(support.SHORT_TIMEOUT),
'output was not resumed')
self.assertEqual(os.read(rfd, 1024), b'def')

Expand Down
Loading
0