]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Nov 2024 04:48:30 +0000 (05:48 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2024 04:48:30 +0000 (04:48 +0000)
bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces (GH-30196)

---------

(cherry picked from commit 2e39d77ddeb51505d65fd54ccfcd72615c6b1927)

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>
Lib/unittest/async_case.py
Misc/NEWS.d/next/Library/2021-12-19-10-47-24.bpo-46128.Qv3EK1.rst [new file with mode: 0644]

index 63ff6a5d1f8b611f4a69088d7dc6d5e84d8de8f3..e761ba7e53c5eb9a469c9332c33cbba9043798e6 100644 (file)
@@ -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 (file)
index 0000000..7d11d20
--- /dev/null
@@ -0,0 +1,2 @@
+Strip :class:`unittest.IsolatedAsyncioTestCase` stack frames from reported
+stacktraces.