@@ -773,7 +773,7 @@ def bad_comparator(ref_path, test_path, *args, **kwargs):
773773 assert len (res ) == 1
774774 match = re .match (
775775 r"The files '\S*/ref/file\.yaml' and '\S*/res/file\.yaml' are different:\n"
776- r"Exception raised: Bad\ncomparator" ,
776+ r"Exception raised: \(RuntimeError\) Bad\ncomparator" ,
777777 res ["file.yaml" ],
778778 )
779779 assert match is not None
@@ -787,10 +787,9 @@ def bad_comparator_no_str(ref_path, test_path, *args, **kwargs):
787787 res = compare_trees (ref_tree , res_tree_equal )
788788
789789 assert len (res ) == 1
790- print (res ["file.yaml" ])
791790 match = re .match (
792791 r"The files '\S*/ref/file\.yaml' and '\S*/res/file\.yaml' are different:\n"
793- r"Exception raised: \(1, \('Bad\\ncomparator', 2\)\)" ,
792+ r"Exception raised: \(RuntimeError\) \( 1, \('Bad\\ncomparator', 2\)\)" ,
794793 res ["file.yaml" ],
795794 )
796795 assert match is not None
@@ -810,10 +809,10 @@ def bad_comparator_exception_failing(ref_path, test_path, *args, **kwargs):
810809 res = compare_trees (ref_tree , res_tree_equal )
811810
812811 assert len (res ) == 1
813- print (res ["file.yaml" ])
814812 match = re .match (
815813 r"The files '\S*/ref/file\.yaml' and '\S*/res/file\.yaml' are different:\n"
816- r"Exception raised: UNKNOWN ERROR: Could not get information from the exception" ,
814+ r"Exception raised: \(RuntimeError\) UNKNOWN ERROR: Could not get information from "
815+ r"the exception" ,
817816 res ["file.yaml" ],
818817 )
819818 assert match is not None
0 commit comments