-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
gh-85984: Utilize new "winsize" functions from termios in pty tests. #101831
Conversation
edc9762
to
1bad1ca
Compare
@gpshead Thank you for being a major part of this project for so long. This is another PR for you. There is no rush; please take a look at this when you are free. |
Lib/test/test_pty.py
Outdated
|
||
# We expect the function to return without error. | ||
self.assertEqual(pty._copy(masters[0]), None) | ||
# def test__copy_eof_on_all(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test__copy_eof_on_all
probably does not make sense due to the current structure of the _copy()
function. Please correct me if I am wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, this test doesn't make sense as written, please delete it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
… in test_pty.py. Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
4821827
to
63fb4d8
Compare
Lib/test/test_pty.py
Outdated
|
||
# We expect the function to return without error. | ||
self.assertEqual(pty._copy(masters[0]), None) | ||
# def test__copy_eof_on_all(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, this test doesn't make sense as written, please delete it.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
Get the News entry.
I have made the requested changes; please review again |
Thanks for making the requested changes! @gpshead: please review the changes made to this pull request. |
!buildbot wasm32 |
🤖 New build scheduled with the buildbot fleet by @gpshead for commit 4ae71ad 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
!buildbot wasm32 |
🤖 New build scheduled with the buildbot fleet by @gpshead for commit aaff7ce 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
(specifically it was the wasm32 encripten node bots that crashed on test_pty) |
@gpshead Thank you for the final change. Some info: maybe the reason why it failed with both the Python |
* main: pythongh-101810: Remove duplicated st_ino calculation (pythonGH-101811) pythongh-92547: Purge sqlite3_enable_shared_cache() detection from configure (python#101873) pythonGH-100987: Refactor `_PyInterpreterFrame` a bit, to assist generator improvement. (pythonGH-100988) pythonGH-87849: Simplify stack effect of SEND and specialize it for generators and coroutines. (pythonGH-101788) Correct trivial grammar in reset_mock docs (python#101861) pythongh-101845: pyspecific: Fix i18n for availability directive (pythonGH-101846) pythongh-89792: Limit test_tools freeze test build parallelism based on the number of cores (python#101841) pythongh-85984: Utilize new "winsize" functions from termios in pty tests. (python#101831) pythongh-89792: Prevent test_tools from copying 1000M of "source" in freeze test (python#101837) Fix typo in test_fstring.py (python#101823) pythonGH-101797: allocate `PyExpat_CAPI` capsule on heap (python#101798) pythongh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call it a class method (pythonGH-101391)
Sorry @8vasu and @gpshead, I had trouble checking out the |
GH-104652 is a backport of this pull request to the 3.11 branch. |
…ests. (pythonGH-101831) Utilize new functions termios.tcgetwinsize() and termios.tcsetwinsize in test_pty.py. (cherry picked from commit da2fb92) Co-authored-by: Soumendra Ganguly <67527439+8vasu@users.noreply.github.com> Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
This follows #92365. This is one in a series of PRs aimed at cleaning-up, fixing bugs in, introducing new features in, and updating the code in "Lib/pty.py".
This is a dependency of #101833.
#101832 is another dependency of #101833.
Signed-off-by: Soumendra Ganguly soumendraganguly@gmail.com