Skip to content

Conversation

The-Compiler
Copy link
Member

@The-Compiler The-Compiler commented Jan 30, 2025

We had a very similar workaround before for pyreadline, which had a similar issue:

This technically will regress the issues above, but those issues just mean that import readline is broken in general, so the user should fix it instead (by e.g. uninstalling pyreadline).

Fixes #12888
Fixes #13170

We had a very similar workaround before for pyreadline, which had a similar issue: - Introduced in pytest-dev#1281 - Removed in pytest-dev#8848 for pytest-dev#8733 and pytest-dev#8847 This technically will regress the issues above, but those issues just mean that `import readline` is broken in general, so the user should fix it instead (by e.g. uninstalling pyreadline). Fixes pytest-dev#12888 Fixes pytest-dev#13170
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Jan 30, 2025
@The-Compiler The-Compiler merged commit b4009b3 into pytest-dev:main Feb 3, 2025
28 checks passed
@The-Compiler
Copy link
Member Author

Should we backport this? It carries some risk of regressions if someone has a broken readline which e.g. emits warnings at import time, but at the same time it fixes an issue which is probably more common in the wild.

@nicoddemus
Copy link
Member

Up to you. 👍

Copy link

patchback bot commented Feb 3, 2025

Backport to 8.3.x: cherry-pick succeeded

Backport PR branch: patchback/backports/8.3.x/b4009b31978053fe077a32d219ad947a5ba7243c/pr-13176

PR branch created, proceeding with making a PR.

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 3, 2025
* Add readline workaround for libedit We had a very similar workaround before for pyreadline, which had a similar issue: - Introduced in #1281 - Removed in #8848 for #8733 and #8847 This technically will regress the issues above, but those issues just mean that `import readline` is broken in general, so the user should fix it instead (by e.g. uninstalling pyreadline). Fixes #12888 Fixes #13170 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Handle no readline on Windows --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit b4009b3)
webknjaz pushed a commit that referenced this pull request Feb 28, 2025
* Add readline workaround for libedit We had a very similar workaround before for pyreadline, which had a similar issue: - Introduced in #1281 - Removed in #8848 for #8733 and #8847 This technically will regress the issues above, but those issues just mean that `import readline` is broken in general, so the user should fix it instead (by e.g. uninstalling pyreadline). Fixes #12888 Fixes #13170 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Handle no readline on Windows --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit b4009b3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

2 participants