Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Oct 12, 2022
1 parent 71c2853 commit 8f4dfab
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/regression/test_adjoint_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def handle_annotation():
pause_annotation()


@pytest.fixture(params=['iadd', 'isub', 'imul', 'idiv'])
@pytest.fixture(params=['iadd', 'isub'])
def op(request):
return request.param

Expand Down Expand Up @@ -469,10 +469,6 @@ def test_ioperator_replay(op, order, power):
t += s
elif op == 'isub':
t -= s
elif op == 'imul':
t *= s
elif op == 'idiv':
t /= s
else:
raise ValueError("Operator '{:s}' not recognised".format(op))

Expand All @@ -497,12 +493,6 @@ def test_ioperator_replay(op, order, power):
elif op == 'isub':
ss -= ss
tt -= tt
elif op == 'imul':
ss *= ss
tt *= tt
elif op == 'idiv':
ss /= ss
tt /= tt
assert np.isclose(rf_s(t_orig), assemble(f(tt)*dx))
assert np.isclose(rf_t(s_orig), assemble(f(ss)*dx))

Expand Down

0 comments on commit 8f4dfab

Please sign in to comment.