Skip to content

gh-134857: Improve error report for doctests run with unittest #134858

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

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented May 28, 2025

Remove doctest module frames from tracebacks and redundant newline character from a failure message.

Remove doctest module frames from tracebacks and redundant newline
character from a failure message.
@serhiy-storchaka serhiy-storchaka merged commit cb8a72b into python:main May 29, 2025
39 checks passed
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 29, 2025
…ythonGH-134858)

Remove doctest module frames from tracebacks and redundant newline
character from a failure message.
(cherry picked from commit cb8a72b)

Co-authored-by: Serhiy Storchaka <[email protected]>
@serhiy-storchaka serhiy-storchaka deleted the DocTestCase-error-report branch May 29, 2025 21:32
@bedevere-app
Copy link

bedevere-app bot commented May 29, 2025

GH-134903 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 29, 2025
serhiy-storchaka added a commit that referenced this pull request May 30, 2025
…GH-134858) (GH-134903)

Remove doctest module frames from tracebacks and redundant newline
character from a failure message.
(cherry picked from commit cb8a72b)

Co-authored-by: Serhiy Storchaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant