import os
import numpy as np

import xarray as xr

from . import TestCase, assert_equal,assert_allclose,requires_numba

from oocgcm.oceanfuncs.eos import misc

@requires_numba
def test_numpy_spice():
    assert_allclose(misc._spice(15,33),0.54458641375)

import os
import numpy as np

import xarray as xr

from . import TestCase, assert_equal,assert_allclose,requires_numba,has_numba

if has_numba:
    from oocgcm.oceanfuncs.eos import misc

@requires_numba
def test_numpy_spice():
    assert_allclose(misc._spice(15,33),0.54458641375)

Fix has_numba for travis build
Fix has_numba for travis build

  import os
  import numpy as np
  
  import xarray as xr
  
- from . import TestCase, assert_equal,assert_allclose,requires_numba
+ from . import TestCase, assert_equal,assert_allclose,requires_numba,has_numba
  
+ if has_numba:
- from oocgcm.oceanfuncs.eos import misc
+     from oocgcm.oceanfuncs.eos import misc
  
  @requires_numba
  def test_numpy_spice():
      assert_allclose(misc._spice(15,33),0.54458641375)
  
Fix has_numba for travis build
## Code Before:
import os
import numpy as np

import xarray as xr

from . import TestCase, assert_equal,assert_allclose,requires_numba

from oocgcm.oceanfuncs.eos import misc

@requires_numba
def test_numpy_spice():
    assert_allclose(misc._spice(15,33),0.54458641375)

## Instruction:
Fix has_numba for travis build
## Code After:
import os
import numpy as np

import xarray as xr

from . import TestCase, assert_equal,assert_allclose,requires_numba,has_numba

if has_numba:
    from oocgcm.oceanfuncs.eos import misc

@requires_numba
def test_numpy_spice():
    assert_allclose(misc._spice(15,33),0.54458641375)
