Skip to content

Commit c677286

Browse files
committed
fix test failure.
1 parent b212a71 commit c677286

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

tests/test_components.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
TendencyStepper,
1919
TimeDifferencingWrapper,
2020
UpdateFrequencyWrapper,
21+
set_backend,
2122
)
2223
from sympl._core.tracers import reset_packers, reset_tracers
2324

@@ -43,6 +44,8 @@
4344
)
4445
from climt._core.unyt_backend import UnytBackend, UnytStateContainer
4546

47+
set_backend(UnytBackend())
48+
4649
os.environ["NUMBA_DISABLE_JIT"] = "1"
4750

4851
vertical_dimension_names = ["interface_levels", "mid_levels", "full_levels"]

tests/test_conservation.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
from datetime import timedelta
2-
31
import numpy as np
42
import unyt
5-
from sympl import AdamsBashforth, TendencyComponent, TendencyStepper, get_constant
3+
from sympl import (
4+
AdamsBashforth,
5+
TendencyComponent,
6+
TendencyStepper,
7+
get_constant,
8+
set_backend,
9+
)
610

711
import climt
8-
from climt import UnytTimeDelta
12+
from climt import UnytBackend, UnytTimeDelta
13+
14+
set_backend(UnytBackend())
915

1016

1117
class ConservationTestBase(object):

0 commit comments

Comments
 (0)