Skip to content

Commit 3e12030

Browse files
fixed test to match new error message
1 parent 65f2a64 commit 3e12030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_patma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3449,7 +3449,7 @@ def test_class_pattern_not_type(self):
34493449
def test_class_or_union_not_specialform(self):
34503450
from typing import Literal
34513451
name = type(Literal).__name__
3452-
msg = rf"called match pattern must be a class or typing.Union of classes \(got {name}\)"
3452+
msg = rf"called match pattern must be a class or a union of classes \(got {name}\)"
34533453
w = None
34543454
with self.assertRaisesRegex(TypeError, msg):
34553455
match 1:

0 commit comments

Comments
 (0)