Skip to content

Commit 0ac8a1c

Browse files
committed
Escape parentheses in regex pattern to fix test match
1 parent d2e54e6 commit 0ac8a1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_type_annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def check_annotations(self, f):
301301
print(f.__annotations__)
302302

303303
f.__annotate__ = lambda x: 42
304-
with self.assertRaisesRegex(TypeError, r"__annotate__() must return type dict of type 'int'"):
304+
with self.assertRaisesRegex(TypeError, r"__annotate__\(\) must return type dict of type 'int'"):
305305
print(f.__annotations__)
306306

307307
f.__annotate__ = lambda x: {"x": x}

0 commit comments

Comments
 (0)