Skip to content

Commit 79daa7c

Browse files
committed
Update ExceptionGroup repr() test message
1 parent 5cc8afd commit 79daa7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_exception_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def __repr__(self):
255255
seq = MySeq(None)
256256
with self.assertRaisesRegex(
257257
TypeError,
258-
r".*MySeq\.__repr__\(\) must return a str, not NoneType"
258+
r"__repr__ returned non-string \(type NoneType\)"
259259
):
260260
ExceptionGroup("test", seq)
261261

0 commit comments

Comments
 (0)