@@ -785,9 +785,9 @@ def test_estimator_report_interaction_cache_metrics(regression_multioutput_data)
785785        if  any (item  ==  multioutput  for  item  in  cached_key ):
786786            should_raise  =  False 
787787            break 
788-     assert  (
789-         not   should_raise 
790-     ),  f"The value  { multioutput }  should be stored in one of the cache keys" 
788+     assert  not   should_raise ,  (
789+         f"The value  { multioutput }  should be stored in one of the cache keys" 
790+     )
791791    assert  result_r2_raw_values .shape  ==  (2 ,)
792792
793793    multioutput  =  "uniform_average" 
@@ -797,9 +797,9 @@ def test_estimator_report_interaction_cache_metrics(regression_multioutput_data)
797797        if  any (item  ==  multioutput  for  item  in  cached_key ):
798798            should_raise  =  False 
799799            break 
800-     assert  (
801-         not   should_raise 
802-     ),  f"The value  { multioutput }  should be stored in one of the cache keys" 
800+     assert  not   should_raise ,  (
801+         f"The value  { multioutput }  should be stored in one of the cache keys" 
802+     )
803803    assert  isinstance (result_r2_uniform_average , float )
804804
805805
@@ -823,9 +823,9 @@ def custom_metric(y_true, y_pred, threshold=0.5):
823823        if  any (item  ==  threshold  for  item  in  cached_key ):
824824            should_raise  =  False 
825825            break 
826-     assert  (
827-         not   should_raise 
828-     ),  f"The value  { threshold }  should be stored in one of the cache keys" 
826+     assert  not   should_raise ,  (
827+         f"The value  { threshold }  should be stored in one of the cache keys" 
828+     )
829829
830830    assert  isinstance (result , float )
831831    assert  result  ==  pytest .approx (
@@ -843,9 +843,9 @@ def custom_metric(y_true, y_pred, threshold=0.5):
843843        if  any (item  ==  threshold  for  item  in  cached_key ):
844844            should_raise  =  False 
845845            break 
846-     assert  (
847-         not   should_raise 
848-     ),  f"The value  { threshold }  should be stored in one of the cache keys" 
846+     assert  not   should_raise ,  (
847+         f"The value  { threshold }  should be stored in one of the cache keys" 
848+     )
849849
850850    assert  isinstance (result , float )
851851    assert  result  ==  pytest .approx (
@@ -887,9 +887,9 @@ def custom_metric(y_true, y_pred, some_weights):
887887        if  any (item  ==  hash_weights  for  item  in  cached_key ):
888888            should_raise  =  False 
889889            break 
890-     assert  (
891-         not   should_raise 
892-     ),  "The hash of the weights should be stored in one of the cache keys" 
890+     assert  not   should_raise ,  (
891+         "The hash of the weights should be stored in one of the cache keys" 
892+     )
893893
894894    assert  isinstance (result , float )
895895    assert  result  ==  pytest .approx (
@@ -1064,7 +1064,7 @@ def test_estimator_report_get_X_y_and_data_source_hash_error():
10641064    report  =  EstimatorReport (estimator )
10651065
10661066    err_msg  =  re .escape (
1067-         "Invalid data source: unknown. Possible values are: "    " test, train, X_y."
1067+         "Invalid data source: unknown. Possible values are: test, train, X_y." 
10681068    )
10691069    with  pytest .raises (ValueError , match = err_msg ):
10701070        report .metrics .log_loss (data_source = "unknown" )
0 commit comments