File tree 1 file changed +8
-10
lines changed
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):
461
461
462
462
def test_only_one_output_fail ():
463
463
464
- @python .define (outputs = ["out1" , "out2" ])
465
- def TestFunc4 (a : A ) -> A :
466
- return a
467
-
468
464
with pytest .raises (ValueError , match = "Multiple outputs specified" ):
469
- TestFunc4 (a = A (x = 7 ))()
470
465
466
+ @python .define (outputs = ["out1" , "out2" ])
467
+ def TestFunc4 (a : A ) -> A :
468
+ return a
471
469
472
- def test_incorrect_num_outputs_fail ():
473
470
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 ():
477
472
478
473
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