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 d65100e commit 00a7f11Copy full SHA for 00a7f11
Lib/test/test_patma.py
@@ -3413,7 +3413,8 @@ def test_class_pattern_not_type(self):
3413
def test_class_or_union_not_specialform(self):
3414
w = None
3415
from typing import Literal
3416
- msg = 'called match pattern must be a class or a union'
+ name = type(Literal).__name__
3417
+ msg = rf"called match pattern must be a class or a union \(got {name}\)"
3418
with self.assertRaisesRegex(TypeError, msg):
3419
match 1:
3420
case Literal():
0 commit comments