@@ -169,7 +169,7 @@ def accepts_a_scalar_type_with_ast_node_and_extension_ast_nodes():
169169 assert scalar .extension_ast_nodes == tuple (extension_ast_nodes )
170170
171171 def rejects_a_scalar_type_with_incorrectly_typed_name ():
172- with pytest .raises (TypeError , match = "missing .* required .* 'name'" ):
172+ with pytest .raises (TypeError , match = r "missing .* required .* 'name'" ):
173173 # noinspection PyArgumentList
174174 GraphQLScalarType () # type: ignore
175175 with pytest .raises (TypeError ) as exc_info :
@@ -445,7 +445,7 @@ def accepts_an_object_type_with_ast_node_and_extension_ast_nodes():
445445 assert object_type .extension_ast_nodes == tuple (extension_ast_nodes )
446446
447447 def rejects_an_object_type_with_incorrectly_typed_name ():
448- with pytest .raises (TypeError , match = "missing .* required .* 'name'" ):
448+ with pytest .raises (TypeError , match = r "missing .* required .* 'name'" ):
449449 # noinspection PyArgumentList
450450 GraphQLObjectType () # type: ignore
451451 with pytest .raises (TypeError ) as exc_info :
@@ -909,7 +909,7 @@ def accepts_an_enum_type_with_ast_node_and_extension_ast_nodes():
909909 assert enum_type .extension_ast_nodes == tuple (extension_ast_nodes )
910910
911911 def rejects_an_enum_type_with_incorrectly_typed_name ():
912- with pytest .raises (TypeError , match = "missing .* required .* 'name'" ):
912+ with pytest .raises (TypeError , match = r "missing .* required .* 'name'" ):
913913 # noinspection PyArgumentList
914914 GraphQLEnumType () # type: ignore
915915 with pytest .raises (TypeError ) as exc_info :
@@ -939,7 +939,7 @@ def rejects_an_enum_type_with_incorrectly_named_values():
939939 assert msg == "Names must only contain [_a-zA-Z0-9] but 'bad-name' does not."
940940
941941 def rejects_an_enum_type_without_values ():
942- with pytest .raises (TypeError , match = "missing .* required .* 'values'" ):
942+ with pytest .raises (TypeError , match = r "missing .* required .* 'values'" ):
943943 # noinspection PyArgumentList
944944 GraphQLEnumType ("SomeEnum" ) # type: ignore
945945 with pytest .raises (TypeError ) as exc_info :
@@ -1072,7 +1072,7 @@ def accepts_an_input_object_type_with_a_field_function():
10721072 assert input_field .out_name is None
10731073
10741074 def rejects_an_input_object_type_with_incorrectly_typed_name ():
1075- with pytest .raises (TypeError , match = "missing .* required .* 'name'" ):
1075+ with pytest .raises (TypeError , match = r "missing .* required .* 'name'" ):
10761076 # noinspection PyArgumentList
10771077 GraphQLInputObjectType () # type: ignore
10781078 with pytest .raises (TypeError ) as exc_info :
0 commit comments