File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -461,19 +461,17 @@ def TestFunc3(a: A):
461461
462462def test_only_one_output_fail ():
463463
464- @python .define (outputs = ["out1" , "out2" ])
465- def TestFunc4 (a : A ) -> A :
466- return a
467-
468464 with pytest .raises (ValueError , match = "Multiple outputs specified" ):
469- TestFunc4 (a = A (x = 7 ))()
470465
466+ @python .define (outputs = ["out1" , "out2" ])
467+ def TestFunc4 (a : A ) -> A :
468+ return a
471469
472- def test_incorrect_num_outputs_fail ():
473470
474- @python .define (outputs = ["out1" , "out2" ])
475- def TestFunc5 (a : A ) -> tuple [A , A , A ]:
476- return a , a , a
471+ def test_incorrect_num_outputs_fail ():
477472
478473 with pytest .raises (ValueError , match = "Length of the outputs" ):
479- TestFunc5 (a = A (x = 7 ))()
474+
475+ @python .define (outputs = ["out1" , "out2" ])
476+ def TestFunc5 (a : A ) -> tuple [A , A , A ]:
477+ return a , a , a
You can’t perform that action at this time.
0 commit comments