Skip to content

Commit

Permalink
allow FunctionSpace.sub to take negative indices
Browse files Browse the repository at this point in the history
  • Loading branch information
JHopeCollins committed Jan 9, 2025
1 parent 22aa4d6 commit aeb3257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/firedrake/regression/test_vfs_component_bcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def test_cant_integrate_subscripted_VFS(V):


@pytest.mark.parametrize("cmpt",
[-1, 2])
[-3, 2])
def test_cant_subscript_outside_components(V, cmpt):
with pytest.raises(IndexError):
return V.sub(cmpt)
Expand Down

0 comments on commit aeb3257

Please sign in to comment.