We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b263ef0 commit e425531Copy full SHA for e425531
tests/graph/test_basic.py
@@ -367,13 +367,8 @@ def test_eval_kwargs(self):
367
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
+ # regression test for https://github.com/pymc-devs/pytensor/issues/1084
371
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
377
assert q.eval({"x": 1, "y": 2}, on_unused_input="ignore") == 2.0
378
379
@pytest.mark.filterwarnings("error")
0 commit comments