diff --git a/ci/Current.txt b/ci/Current.txt index f269aa7a830..2d9800e1848 100644 --- a/ci/Current.txt +++ b/ci/Current.txt @@ -1,5 +1,5 @@ matplotlib==3.2.1 -numpy==1.18.5 +numpy==1.19.1 scipy==1.5.2 pint==0.14 xarray==0.15.1 diff --git a/tests/calc/test_thermo.py b/tests/calc/test_thermo.py index 69ec2511256..284b8697114 100644 --- a/tests/calc/test_thermo.py +++ b/tests/calc/test_thermo.py @@ -808,6 +808,7 @@ def test_most_unstable_parcel(): assert_almost_equal(ret[2], 19.0 * units.degC, 6) +@pytest.mark.filterwarnings('ignore:invalid value:RuntimeWarning') def test_isentropic_pressure(): """Test calculation of isentropic pressure function.""" lev = [100000., 95000., 90000., 85000.] * units.Pa @@ -819,8 +820,7 @@ def test_isentropic_pressure(): tmp[:, :, -1] = np.nan tmpk = tmp * units.kelvin isentlev = [296.] * units.kelvin - with pytest.warns(RuntimeWarning, match='invalid value'): - isentprs = isentropic_interpolation(isentlev, lev, tmpk) + isentprs = isentropic_interpolation(isentlev, lev, tmpk) trueprs = np.ones((1, 5, 5)) * (1000. * units.hPa) trueprs[:, :, -1] = np.nan assert isentprs[0].shape == (1, 5, 5) diff --git a/tests/plots/test_declarative.py b/tests/plots/test_declarative.py index 6c7c7c55562..a3584e2ce01 100644 --- a/tests/plots/test_declarative.py +++ b/tests/plots/test_declarative.py @@ -439,7 +439,7 @@ def test_declarative_barb_earth_relative(): return pc.figure -@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.346) +@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.347) def test_declarative_barb_gfs(): """Test making a contour plot.""" data = xr.open_dataset(get_test_data('GFS_test.nc', as_file_obj=False))