Skip to content

Commit e425531

Browse files
committed
update test_eval for unused_input
1 parent b263ef0 commit e425531

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/graph/test_basic.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,13 +367,8 @@ def test_eval_kwargs(self):
367367
self.w.eval({self.z: 3, self.x: 2.5})
368368
assert self.w.eval({self.z: 3, self.x: 2.5}, on_unused_input="ignore") == 6.0
369369

370-
# regression tests for https://github.com/pymc-devs/pytensor/issues/1084
370+
# regression test for https://github.com/pymc-devs/pytensor/issues/1084
371371
q = self.x + 1
372-
with pytest.warns(
373-
UserWarning,
374-
match="pytensor.function was asked to create a function",
375-
):
376-
assert q.eval({"x": 1, "y": 2}, on_unused_input="warn") == 2.0
377372
assert q.eval({"x": 1, "y": 2}, on_unused_input="ignore") == 2.0
378373

379374
@pytest.mark.filterwarnings("error")

0 commit comments

Comments
 (0)