test_generic_function_attributes fails with pybind
Issue #983
resolved
The test test_generic_function_attributes fails with following message:
with pytest.raises(RuntimeError):
> e2(0, 0)
E Failed: DID NOT RAISE <class 'RuntimeError'>
test_expression.py:432: Failed
Comments (7)
-
-
The assert shouldn't be turned into error -
eval
can be in a tight loop.There used to be a check for that here in generated code, although noticed the comment
Runtime checks (TODO: Better to check these when updating the value instead...)
. -
- changed component to pybind11
-
assigned issue to
- marked as minor
Fix in
jan/fix-issue-983
. -
- changed status to resolved
Fix issue
#983→ <<cset fdb19280c136>>
-
The fix in branch is too complicated. Just disable the test when assertions are off. The fix in next.
-
- changed status to open
Not yet in master
-
- changed status to resolved
Fix issue
#983→ <<cset 6711e9439827>>
- Log in to comment
This is supposed to raise through
which does not work when asserts are off. That's poor error handlin g.