@@ -304,7 +304,7 @@ def test_graph_conditional_if_else(init_cuda, condition_value):
304304 try :
305305 gb_if , gb_else = gb .if_else (handle )
306306 except RuntimeError as e :
307- with pytest .raises (RuntimeError , match = "^Driver version" ):
307+ with pytest .raises (RuntimeError , match = "^( Driver|Binding) version" ):
308308 raise e
309309 gb .end_building ()
310310 b .close ()
@@ -377,7 +377,7 @@ def test_graph_conditional_switch(init_cuda, condition_value):
377377 try :
378378 gb_case = list (gb .switch (handle , 3 ))
379379 except RuntimeError as e :
380- with pytest .raises (RuntimeError , match = "^Driver version" ):
380+ with pytest .raises (RuntimeError , match = "^( Driver|Binding) version" ):
381381 raise e
382382 gb .end_building ()
383383 b .close ()
@@ -568,7 +568,7 @@ def build_graph(condition_value):
568568 try :
569569 gb_case = list (gb .switch (handle , 3 ))
570570 except Exception as e :
571- with pytest .raises (RuntimeError , match = "^Driver version" ):
571+ with pytest .raises (RuntimeError , match = "^( Driver|Binding) version" ):
572572 raise e
573573 gb .end_building ()
574574 raise e
@@ -599,7 +599,7 @@ def build_graph(condition_value):
599599 try :
600600 graph_variants = [build_graph (0 ), build_graph (1 ), build_graph (2 )]
601601 except Exception as e :
602- with pytest .raises (RuntimeError , match = "^Driver version" ):
602+ with pytest .raises (RuntimeError , match = "^( Driver|Binding) version" ):
603603 raise e
604604 b .close ()
605605 pytest .skip ("Driver does not support conditional switch" )
0 commit comments