File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -365,15 +365,15 @@ def test_eval_with_strings_no_match(self):
365365 def test_eval_kwargs (self ):
366366 with pytest .raises (UnusedInputError ):
367367 self .w .eval ({self .z : 3 , self .x : 2.5 })
368+ assert self .w .eval ({self .z : 3 , self .x : 2.5 }, on_unused_input = "ignore" ) == 6.0
369+
370+ # regression tests for https://github.com/pymc-devs/pytensor/issues/1084
371+ q = self .x + 1
368372 with pytest .warns (
369373 UserWarning ,
370374 match = "pytensor.function was asked to create a function" ,
371375 ):
372- self .w .eval ({self .z : 3 , self .x : 2.5 }, on_unused_input = "warn" )
373- assert self .w .eval ({self .z : 3 , self .x : 2.5 }, on_unused_input = "ignore" ) == 6.0
374-
375- # regression test for https://github.com/pymc-devs/pytensor/issues/1084
376- q = self .x + 1
376+ assert q .eval ({"x" : 1 , "y" : 2 }, on_unused_input = "warn" ) == 2.0
377377 assert q .eval ({"x" : 1 , "y" : 2 }, on_unused_input = "ignore" ) == 2.0
378378
379379 @pytest .mark .filterwarnings ("error" )
You can’t perform that action at this time.
0 commit comments