@@ -172,20 +172,20 @@ def main():
172172 UserWarning ,
173173 )
174174
175- print ("\n ---\n Backend test summary:" )
176- for name in ("tensorflow" , "pytorch" ):
177- status , _ = backend_results .get (name , ("SKIPPED" , None ))
178- print (f"{ name :<11} [{ status } ]" )
179- print ("---" )
180- for name , (status , error ) in backend_results .items ():
181- if status == "ERROR" :
182- print (f"{ name .capitalize ()} error:\n { error } \n " )
183-
184- if not any_backend_succeeded and backend_failures :
185- failure_messages = "; " .join (
186- f"{ b } : { exc } " for b , exc in backend_failures .items ()
187- )
188- raise RuntimeError (f"All backend tests failed. Details: { failure_messages } " )
175+ print ("\n ---\n Backend test summary:" )
176+ for name in ("tensorflow" , "pytorch" ):
177+ status , _ = backend_results .get (name , ("SKIPPED" , None ))
178+ print (f"{ name :<11} [{ status } ]" )
179+ print ("---" )
180+ for name , (status , error ) in backend_results .items ():
181+ if status == "ERROR" :
182+ print (f"{ name .capitalize ()} error:\n { error } \n " )
183+
184+ if not any_backend_succeeded and backend_failures :
185+ failure_messages = "; " .join (
186+ f"{ b } : { exc } " for b , exc in backend_failures .items ()
187+ )
188+ raise RuntimeError (f"All backend tests failed. Details: { failure_messages } " )
189189
190190
191191 finally :
0 commit comments