We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3dd2fb commit 690ac3dCopy full SHA for 690ac3d
Lib/test/test_patma.py
@@ -3404,7 +3404,8 @@ def test_class_pattern_not_type(self):
3404
def test_class_or_union_not_specialform(self):
3405
w = None
3406
from typing import Literal
3407
- msg = 'called match pattern must be a class or a union'
+ name = type(Literal).__name__
3408
+ msg = rf"called match pattern must be a class or a union \(got {name}\)"
3409
with self.assertRaisesRegex(TypeError, msg):
3410
match 1:
3411
case Literal():
0 commit comments