Skip to content

Commit

Permalink
Fixed stupid mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Aug 16, 2024
1 parent 5ea8966 commit e6ddf00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/pdes/test_pde_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ def test_pde_consts():

eq = PDE({"a": "laplace(b)"}, consts={"b": 3})
with pytest.raises(
AttributeError if os.environ["NUMBA_DISABLE_JIT"] == "1" else nb.TypingError
AttributeError
if os.environ.get("NUMBA_DISABLE_JIT", "0") == "1"
else nb.TypingError
):
eq.evolution_rate(field)

Expand Down

0 comments on commit e6ddf00

Please sign in to comment.