Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1058 +/- ##
==========================================
- Coverage 76.51% 76.18% -0.34%
==========================================
Files 62 61 -1
Lines 8308 8306 -2
==========================================
- Hits 6357 6328 -29
- Misses 1951 1978 +27 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Python 3.14, entering
nonlocal acrashes bpython while displaying the resulting SyntaxError: the exception has location attributes but only one item inargs.Update the existing exception's
filenamewhen hiding the input-cache identifier, instead of reconstructing it fromargs[1]. This preserves the original exception, including subclasses, source ranges and notes, while keeping the syntax-error callback and subsequent input working.Fixes #1051.
nonlocal a; the fixed version displays the error, evaluatesprint(6 * 7)to42, and exits normally.formatter.pyoverride errors on both.Developed and tested with AI assistance.
CI follow-up (2026-10-20): the Python 3.15t failures in
TestExecArgs.test_exec_dunder_fileandtest_exec_nonascii_filereproduce on both upstream base4a21ac03and this PR'saaa535d2. In one isolated Python 3.15.0 free-threaded Linux ARM64 environment, usingcwcwidth==0.1.12andcurtsies==0.4.3, both trees fail the same two stderr assertions because importingcwcwidth._implemits the GIL-enabled RuntimeWarning. This matches the warning in the upstream PR run, whose host is x86-64; it is not a claim to have reproduced the entire CI image. The currenttest_interpreter.pyalso passes on that free-threaded interpreter: 7 tests and 4 subtests, with the dependency warning still visible. No warning filter or GIL override was added. The existing Black/mypy and coverage statuses remain as reported above; this does not make CI green.