with_invalid_raises_RuntimeError -> raises_ValueError, re #8419