summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-01-24 21:47:40 (GMT)
committerGitHub <noreply@github.com>2022-01-24 21:47:40 (GMT)
commit573b54515740ce51dcf2402038a9d953aa6c317f (patch)
tree04cca4e1c9d3b70355f6857cef97cd0b4908a69c /Lib
parent1c705fda8f9902906edd26d46acb0433b0b098e1 (diff)
downloadcpython-573b54515740ce51dcf2402038a9d953aa6c317f.zip
cpython-573b54515740ce51dcf2402038a9d953aa6c317f.tar.gz
cpython-573b54515740ce51dcf2402038a9d953aa6c317f.tar.bz2
bpo-46431: improve error message on invalid calls to BaseExceptionGroup.__new__ (GH-30854)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_exception_group.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exception_group.py b/Lib/test/test_exception_group.py
index f0ae377..bbfce94 100644
--- a/Lib/test/test_exception_group.py
+++ b/Lib/test/test_exception_group.py
@@ -22,7 +22,7 @@ class TestExceptionGroupTypeHierarchy(unittest.TestCase):
class BadConstructorArgs(unittest.TestCase):
def test_bad_EG_construction__too_many_args(self):
- MSG = 'function takes exactly 2 arguments'
+ MSG = 'BaseExceptionGroup.__new__\(\) takes exactly 2 arguments'
with self.assertRaisesRegex(TypeError, MSG):
ExceptionGroup('no errors')
with self.assertRaisesRegex(TypeError, MSG):