From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 13 Nov 2024 09:20:47 +0000 (+0100) Subject: [3.12] bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces... X-Git-Tag: v3.12.8~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd212592834bb3a4be43b5d7d1a90876701e9885;p=thirdparty%2FPython%2Fcpython.git [3.12] bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces (GH-30196) (#126771) bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces (GH-30196) --------- (cherry picked from commit 2e39d77ddeb51505d65fd54ccfcd72615c6b1927) Co-authored-by: Andrew Svetlov Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Ezio Melotti Co-authored-by: Hugo van Kemenade --- diff --git a/Lib/unittest/async_case.py b/Lib/unittest/async_case.py index bd2a47115606..2abfb7907982 100644 --- a/Lib/unittest/async_case.py +++ b/Lib/unittest/async_case.py @@ -5,6 +5,7 @@ import warnings from .case import TestCase +__unittest = True class IsolatedAsyncioTestCase(TestCase): # Names intentionally have a long prefix diff --git a/Misc/NEWS.d/next/Library/2021-12-19-10-47-24.bpo-46128.Qv3EK1.rst b/Misc/NEWS.d/next/Library/2021-12-19-10-47-24.bpo-46128.Qv3EK1.rst new file mode 100644 index 000000000000..7d11d20d94e8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-12-19-10-47-24.bpo-46128.Qv3EK1.rst @@ -0,0 +1,2 @@ +Strip :class:`unittest.IsolatedAsyncioTestCase` stack frames from reported +stacktraces.