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
bpo-46521: Fix codeop to use a new partial-input mode of the parser #31010
Conversation
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.
I am overall pleased, pending manual tests. The 4 failures use one tricky tkinter-based test fixture that has been problematic before. They only occur with GHA Windows and Ubuntu but not GHA Mac nor any system with Pipelines. The latter plays with stdout and that might be a clue. When I get back to this, I hope in a few hours, I will start with manual tests, including with the code in the passing and failing tests, to see if the failure is in live IDLE or only the test simulation thereof.
Live test: any incomplete line fails due to new flags parameter.
test_codeop does not cover all of the preliminary paths. Apparent fix is to change beginning of
With this, test_idle passes for me. |
🤖 New build scheduled with the buildbot fleet by @pablogsal for commit 20677c3 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Lib/codeop.py
Outdated
@@ -64,7 +40,11 @@ | |||
|
|||
__all__ = ["compile_command", "Compile", "CommandCompiler"] | |||
|
|||
PyCF_DONT_IMPLY_DEDENT = 0x200 # Matches pythonrun.h. | |||
# The following flags match the values from Include/cpython/compile.h | |||
# Caveat emptor: These flags are undocummented on pourpose and depending |
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.
/pourpose/purpose/
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.
Thanks!
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry @pablogsal, I had trouble checking out the |
GH-31213 is a backport of this pull request to the 3.10 branch. |
…arser (pythonGH-31010). (cherry picked from commit 69e1097) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
https://bugs.python.org/issue46521