bpo-46521: Fix codeop to use a new partial-input mode of the parser#31010
bpo-46521: Fix codeop to use a new partial-input mode of the parser#31010pablogsal merged 3 commits intopython:mainfrom
Conversation
terryjreedy
left a comment
There was a problem hiding this comment.
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
|
|
||
| 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 |
|
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