Prevent readline from bugging out when the editline backend is used#12961
Prevent readline from bugging out when the editline backend is used#12961Viicos wants to merge 1 commit intopytest-dev:mainfrom
readline from bugging out when the editline backend is used#12961Conversation
|
Previous history:
It would probably reintroduce the |
Yeah I was thinking the same. We shouldn't expect Should we investigate on why we get this failure with the |
|
It might be worth having a minimal reproducer so this could be reported to CPython or libedit - other than that, if the workaround works, I think it's fine to use it as-is and close the issue with it. Seems harmless enough to me. |
|
I'm also fine with the workaround as is if a test is not feasible. Other than that we would need a changelog entry. |
|
Closing as this has not seen activity in awhile. Feel free to reopen if you want to work on this again. |
Fixes #12888.
Seems like having
readline(orrlcompleter, which importsreadline) imported at the root of thepdbmodule (as it is on 3.13) introduces the issue, but I'm not sure why. Perhaps thelibeditbackend tries to read something from stdin on startup? (Because runningpytest -sworks).