Skip to content

bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces #30196

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
merged 5 commits into from
Nov 13, 2024

Conversation

asvetlov
Copy link
Contributor

@asvetlov asvetlov commented Dec 19, 2021

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@asvetlov asvetlov marked this pull request as draft December 19, 2021 09:50
@asvetlov
Copy link
Contributor Author

Unfortunately, it doesn't hide internal run_until_complete() call but hides actual test lines :(

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jan 19, 2022
@ambv ambv removed the needs backport to 3.9 only security fixes label May 17, 2022
@ambv
Copy link
Contributor

ambv commented May 17, 2022

This missed the boat for inclusion in Python 3.9 which accepts security fixes only as of today.

@smontanaro
Copy link
Contributor

(I'm working my way through some PRs which have been approved and are labeled "awaiting merge", hence my seemingly bolt from the blue comment. Why? Read here.)

It appears that @ezio-melotti removed the CLA signed label back in July. Should the awaiting merge label also be removed as a side-effect, or does removing CLA signed not also imply CLA not signed?

@ezio-melotti
Copy link
Member

ezio-melotti commented Nov 22, 2022

The CLA signed and CLA not signed labels have been removed and replaced by the CLA bot. I updated the branch to trigger the bot, and it now passed the check.

@hugovk hugovk removed the needs backport to 3.10 only security fixes label Apr 7, 2023
@hugovk
Copy link
Member

hugovk commented Apr 7, 2023

This missed the boat for inclusion in Python 3.10 which accepts security fixes only as of this week.

This PR is marked as a draft, but has two approvals from core devs. Is it ready for merge?

@serhiy-storchaka serhiy-storchaka added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes and removed needs backport to 3.11 only security fixes labels May 9, 2024
@asvetlov asvetlov marked this pull request as ready for review November 11, 2024 10:49
@asvetlov
Copy link
Contributor Author

asvetlov commented Nov 11, 2024

Guys, the PR was useless until Python 3.11, which have rewritten IsolatedAsyncioTestCase
The module it is based on asyncio.Runner now, adding __unittest = True line works well on the lastest sources.

I suggest backporting to 3.12/3.13 because the backport cannot break anything, but I'm fine with merging to the master only if @Yhg1s has objections.

@asvetlov asvetlov removed the stale Stale PR or inactive for long period of time. label Nov 11, 2024
@asvetlov asvetlov merged commit 2e39d77 into python:main Nov 13, 2024
46 checks passed
@miss-islington-app
Copy link

Thanks @asvetlov for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 13, 2024
…aces (pythonGH-30196)

* Strip IsolatedAsyncioTestCase frames from reported stacktraces

* Update Misc/NEWS.d/next/Library/2021-12-19-10-47-24.bpo-46128.Qv3EK1.rst

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>

---------

(cherry picked from commit 2e39d77)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 13, 2024
…aces (pythonGH-30196)

* Strip IsolatedAsyncioTestCase frames from reported stacktraces

* Update Misc/NEWS.d/next/Library/2021-12-19-10-47-24.bpo-46128.Qv3EK1.rst

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>

---------

(cherry picked from commit 2e39d77)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Nov 13, 2024

GH-126770 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 13, 2024
@bedevere-app
Copy link

bedevere-app bot commented Nov 13, 2024

GH-126771 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Nov 13, 2024
asvetlov added a commit that referenced this pull request Nov 13, 2024
…stacktraces (GH-30196) (#126770)

bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces (GH-30196)

---------

(cherry picked from commit 2e39d77)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
asvetlov added a commit that referenced this pull request Nov 13, 2024
…stacktraces (GH-30196) (#126771)

bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces (GH-30196)

---------

(cherry picked from commit 2e39d77)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@asvetlov asvetlov deleted the hide-async-testcase branch November 15, 2024 12:37
picnixz pushed a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
…aces (python#30196)

* Strip IsolatedAsyncioTestCase frames from reported stacktraces

* Update Misc/NEWS.d/next/Library/2021-12-19-10-47-24.bpo-46128.Qv3EK1.rst

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>

---------

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…aces (python#30196)

* Strip IsolatedAsyncioTestCase frames from reported stacktraces

* Update Misc/NEWS.d/next/Library/2021-12-19-10-47-24.bpo-46128.Qv3EK1.rst

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>

---------

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
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.

9 participants