gh-140482: Avoid changing terminal settings in test_pty by colesbury · Pull Request #142202 · python/cpython · GitHub
Skip to content

gh-140482: Avoid changing terminal settings in test_pty - #142202

Merged
colesbury merged 3 commits into
python:mainfrom
colesbury:gh-140482-pty
Dec 3, 2025
Merged

colesbury merged 3 commits into
python:mainfrom
colesbury:gh-140482-pty

Conversation

@colesbury

@colesbury colesbury commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

The previous test_spawn_doesnt_hang test had a few problems:

  • It would cause ENV CHANGED failures if other tests were running concurrently due to stty changes
  • Typing while the test was running could cause it to fail

The previous test_spawn_doesnt_hang test had a few problems:

* It would cause ENV CHANGED failures if other tests were running
  concurrently due to stty changes
* Typing while the test was running could cause it to fail
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Dec 2, 2025
@colesbury colesbury added 🔨 test-with-buildbots Test PR w/ buildbots; report in status section and removed tests Tests in the Lib/test dir labels Dec 2, 2025
@bedevere-bot

This comment was marked as outdated.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 2, 2025
@colesbury colesbury added tests Tests in the Lib/test dir skip news labels Dec 2, 2025
@colesbury colesbury added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 2, 2025
@bedevere-bot

This comment was marked as outdated.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 2, 2025
@colesbury colesbury added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 3, 2025
@bedevere-bot

Copy link
Copy Markdown

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 3, 2025
@colesbury
colesbury marked this pull request as ready for review December 3, 2025 04:56

@warsaw warsaw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran this branch many times with both make test and make quicktest on macOS 26.1 and could never trigger the env changed warnings. The changes here seem correct, so I'll approve it, although I notice that CI is failing.

@colesbury

Copy link
Copy Markdown
Contributor Author

although I notice that CI is failing

The Android (x86_64) failures is unrelated and failing on other PRs

@colesbury
colesbury merged commit c0c6514 into python:main Dec 3, 2025
228 of 234 checks passed
@colesbury
colesbury deleted the gh-140482-pty branch December 3, 2025 20:48
@colesbury colesbury added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Dec 3, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 3, 2025
…gh-142202)

The previous test_spawn_doesnt_hang test had a few problems:

* It would cause ENV CHANGED failures if other tests were running
  concurrently due to stty changes
* Typing while the test was running could cause it to fail
(cherry picked from commit c0c6514)

Co-authored-by: Sam Gross <colesbury@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 3, 2025
…gh-142202)

The previous test_spawn_doesnt_hang test had a few problems:

* It would cause ENV CHANGED failures if other tests were running
  concurrently due to stty changes
* Typing while the test was running could cause it to fail
(cherry picked from commit c0c6514)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app

bedevere-app Bot commented Dec 3, 2025

Copy link
Copy Markdown

GH-142238 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Dec 3, 2025
@bedevere-app

bedevere-app Bot commented Dec 3, 2025

Copy link
Copy Markdown

GH-142239 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Dec 3, 2025
@bedevere-bot

Copy link
Copy Markdown

colesbury added a commit that referenced this pull request Dec 5, 2025
…2202) (gh-142239)

The previous test_spawn_doesnt_hang test had a few problems:

* It would cause ENV CHANGED failures if other tests were running
  concurrently due to stty changes
* Typing while the test was running could cause it to fail
(cherry picked from commit c0c6514)

Co-authored-by: Sam Gross <colesbury@gmail.com>
colesbury added a commit that referenced this pull request Dec 5, 2025
…2202) (gh-142238)

The previous test_spawn_doesnt_hang test had a few problems:

* It would cause ENV CHANGED failures if other tests were running
  concurrently due to stty changes
* Typing while the test was running could cause it to fail
(cherry picked from commit c0c6514)

Co-authored-by: Sam Gross <colesbury@gmail.com>
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
…gh-142202)

The previous test_spawn_doesnt_hang test had a few problems:

* It would cause ENV CHANGED failures if other tests were running
  concurrently due to stty changes
* Typing while the test was running could cause it to fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants