@@ -169,7 +169,7 @@ def accepts_a_scalar_type_with_ast_node_and_extension_ast_nodes():
169
169
assert scalar .extension_ast_nodes == tuple (extension_ast_nodes )
170
170
171
171
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'" ):
173
173
# noinspection PyArgumentList
174
174
GraphQLScalarType () # type: ignore
175
175
with pytest .raises (TypeError ) as exc_info :
@@ -445,7 +445,7 @@ def accepts_an_object_type_with_ast_node_and_extension_ast_nodes():
445
445
assert object_type .extension_ast_nodes == tuple (extension_ast_nodes )
446
446
447
447
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'" ):
449
449
# noinspection PyArgumentList
450
450
GraphQLObjectType () # type: ignore
451
451
with pytest .raises (TypeError ) as exc_info :
@@ -909,7 +909,7 @@ def accepts_an_enum_type_with_ast_node_and_extension_ast_nodes():
909
909
assert enum_type .extension_ast_nodes == tuple (extension_ast_nodes )
910
910
911
911
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'" ):
913
913
# noinspection PyArgumentList
914
914
GraphQLEnumType () # type: ignore
915
915
with pytest .raises (TypeError ) as exc_info :
@@ -939,7 +939,7 @@ def rejects_an_enum_type_with_incorrectly_named_values():
939
939
assert msg == "Names must only contain [_a-zA-Z0-9] but 'bad-name' does not."
940
940
941
941
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'" ):
943
943
# noinspection PyArgumentList
944
944
GraphQLEnumType ("SomeEnum" ) # type: ignore
945
945
with pytest .raises (TypeError ) as exc_info :
@@ -1072,7 +1072,7 @@ def accepts_an_input_object_type_with_a_field_function():
1072
1072
assert input_field .out_name is None
1073
1073
1074
1074
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'" ):
1076
1076
# noinspection PyArgumentList
1077
1077
GraphQLInputObjectType () # type: ignore
1078
1078
with pytest .raises (TypeError ) as exc_info :
0 commit comments