diff --git a/tests/test_buffering.py b/tests/test_buffering.py index aebde40eff..c1196466e3 100644 --- a/tests/test_buffering.py +++ b/tests/test_buffering.py @@ -351,12 +351,8 @@ def define(self, dimensions): eqns = [Eq(u.forward, u + 1, subdomain=s_d0), Eq(u.forward, u.forward + 1, subdomain=s_d1)] - try: + with pytest.raises(CompilationError): Operator(eqns, opt='buffering') - except CompilationError: - assert True - except: - assert False @pytest.mark.xfail(reason="Cannot deal with non-overlapping SubDimensions yet")