@@ -773,7 +773,7 @@ def bad_comparator(ref_path, test_path, *args, **kwargs):
773
773
assert len (res ) == 1
774
774
match = re .match (
775
775
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" ,
777
777
res ["file.yaml" ],
778
778
)
779
779
assert match is not None
@@ -787,10 +787,9 @@ def bad_comparator_no_str(ref_path, test_path, *args, **kwargs):
787
787
res = compare_trees (ref_tree , res_tree_equal )
788
788
789
789
assert len (res ) == 1
790
- print (res ["file.yaml" ])
791
790
match = re .match (
792
791
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\)\)" ,
794
793
res ["file.yaml" ],
795
794
)
796
795
assert match is not None
@@ -810,10 +809,10 @@ def bad_comparator_exception_failing(ref_path, test_path, *args, **kwargs):
810
809
res = compare_trees (ref_tree , res_tree_equal )
811
810
812
811
assert len (res ) == 1
813
- print (res ["file.yaml" ])
814
812
match = re .match (
815
813
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" ,
817
816
res ["file.yaml" ],
818
817
)
819
818
assert match is not None
0 commit comments