Skip to content

Commit 0a04e1a

Browse files
committed
NotImplementedError -> TypeError
1 parent 1f34132 commit 0a04e1a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/firedrake/slate/test_slate_infrastructure.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,27 +369,27 @@ def test_illegal_add_sub():
369369
A - s
370370

371371

372-
def test_ops_NotImplementedError():
372+
def test_ops_TypeError():
373373
mesh = UnitSquareMesh(1, 1)
374374
V = FunctionSpace(mesh, "DG", 0)
375375
u = TrialFunction(V)
376376
v = TestFunction(V)
377377
f = Constant(1)
378378
A = Tensor(u * v * dx)
379379

380-
with pytest.raises(NotImplementedError):
380+
with pytest.raises(TypeError):
381381
A + f
382382

383-
with pytest.raises(NotImplementedError):
383+
with pytest.raises(TypeError):
384384
f + A
385385

386-
with pytest.raises(NotImplementedError):
386+
with pytest.raises(TypeError):
387387
A - f
388388

389-
with pytest.raises(NotImplementedError):
389+
with pytest.raises(TypeError):
390390
f - A
391391

392-
with pytest.raises(NotImplementedError):
392+
with pytest.raises(TypeError):
393393
f * A
394394

395395

0 commit comments

Comments
 (0)