@@ -273,17 +273,6 @@ def hashes_are_unique_per_instance():
273273
274274
275275def describe_to_string ():
276- def deprecated_prints_an_error_using_print_error ():
277- # noinspection PyProtectedMember
278- from graphql .error .graphql_error import print_error
279-
280- error = GraphQLError ("Error" )
281- assert print_error (error ) == "Error"
282- with raises (TypeError ) as exc_info :
283- # noinspection PyTypeChecker
284- print_error (Exception ) # type: ignore
285- assert str (exc_info .value ) == "Expected a GraphQLError."
286-
287276 def prints_an_error_without_location ():
288277 error = GraphQLError ("Error without location" )
289278 assert str (error ) == "Error without location"
@@ -353,19 +342,6 @@ def prints_an_error_with_nodes_from_different_sources():
353342
354343
355344def describe_formatted ():
356- def deprecated_formats_an_error_using_format_error ():
357- # noinspection PyProtectedMember
358- from graphql .error .graphql_error import format_error
359-
360- error = GraphQLError ("Example Error" )
361- assert format_error (error ) == {
362- "message" : "Example Error" ,
363- }
364- with raises (TypeError ) as exc_info :
365- # noinspection PyTypeChecker
366- format_error (Exception ) # type: ignore
367- assert str (exc_info .value ) == "Expected a GraphQLError."
368-
369345 def formats_graphql_error ():
370346 path : List [Union [int , str ]] = ["one" , 2 ]
371347 extensions = {"ext" : None }
0 commit comments