Skip to content

gh-152490: Fix TypeError when formatting SyntaxError with msg=NotImplemented in traceback.py - #152495

Open
Aniketsy wants to merge 10 commits into
python:mainfrom
Aniketsy:fix-152490
Open

gh-152490: Fix TypeError when formatting SyntaxError with msg=NotImplemented in traceback.py#152495
Aniketsy wants to merge 10 commits into
python:mainfrom
Aniketsy:fix-152490

Conversation

@Aniketsy

@Aniketsy Aniketsy commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Comment thread Lib/test/test_traceback.py Outdated

@terryjreedy terryjreedy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no opinion on the test change.

Comment thread Misc/NEWS.d/next/Library/2026-06-28-14-37-01.gh-issue-152490.A8qLbF.rst Outdated
Comment thread Lib/traceback.py Outdated
@bedevere-app

bedevere-app Bot commented Jun 28, 2026

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Aniketsy and others added 2 commits June 29, 2026 06:37
…8qLbF.rst

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
with self.assertRaisesRegex(TypeError, 'required positional argument'):
traceback.format_exception(exc=e)

def test_format_exception_only_exc(self):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this name actually.

Comment thread Lib/test/test_traceback.py Outdated
@Aniketsy

Aniketsy commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

@picnixz i've updated with changes, as per your suggestion. please let me know if we need any further improvements. Thanks :)

@picnixz
picnixz self-requested a review July 3, 2026 19:23
Comment thread Lib/traceback.py Outdated
Comment thread Lib/test/test_traceback.py Outdated
Aniketsy and others added 2 commits September 6, 2026 20:33
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Comment thread Lib/test/test_traceback.py Outdated
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"raise SyntaxError(NotImplemented)" exits REPL and IDLE subprocess

3 participants