File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments