Skip to content

Commit d80223a

Browse files
committed
Use assertRaisesRegex.
1 parent 4445b5a commit d80223a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5856,7 +5856,7 @@ def __typing_subst__(*_):
58565856

58575857
evil = EvilTypeVar()
58585858
type type_alias[*_] = 0
5859-
with self.assertRaises(TypeError):
5859+
with self.assertRaisesRegex(TypeError, ".+__typing_subst__.+tuple.+int.*"):
58605860
type_alias[evil][0]
58615861

58625862

0 commit comments

Comments
 (0)