This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Strip IsolatedAsyncioTestCase frames from reported stacktraces
Type: Stage: patch review
Components: Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2021-12-19 08:45 by asvetlov, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 30196 open asvetlov, 2021-12-19 08:48
Messages (3)
msg408887 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2021-12-19 08:45
#7815 supports `__unittest = True` module globals to stripping unittest framework calls from a stacktrace reported by a test failure.

IsolatedAsyncioTestCase missed this setup.
msg408892 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-12-19 10:57
Thank you. I knew about this issue but forgot to fix it.

I think it is also needed in _log.py. Not sure about mock.py.
msg408895 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2021-12-19 11:43
`__unittest = True` flag doesn't work smoothly with async functions, unfortunately.

Need to investigate why.
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90286
2021-12-19 11:43:26asvetlovsetmessages: + msg408895
2021-12-19 10:57:42serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg408892
2021-12-19 08:48:58asvetlovsetkeywords: + patch
stage: patch review
pull_requests: + pull_request28417
2021-12-19 08:45:55asvetlovcreate