@@ -2000,12 +2000,12 @@ def test_clip_problem_cases(self, arr, amin, amax, exp):
2000
2000
np .array (np .nan ),
2001
2001
np .zeros (10 , dtype = np .int32 )),
2002
2002
])
2003
+ @pytest .mark .filterwarnings ("ignore::DeprecationWarning" )
2003
2004
def test_clip_scalar_nan_propagation (self , arr , amin , amax ):
2004
2005
# enforcement of scalar nan propagation for comparisons
2005
2006
# called through clip()
2006
2007
expected = np .minimum (np .maximum (arr , amin ), amax )
2007
- with assert_warns (DeprecationWarning ):
2008
- actual = np .clip (arr , amin , amax )
2008
+ actual = np .clip (arr , amin , amax )
2009
2009
assert_equal (actual , expected )
2010
2010
2011
2011
@pytest .mark .xfail (reason = "propagation doesn't match spec" )
@@ -2014,6 +2014,7 @@ def test_clip_scalar_nan_propagation(self, arr, amin, amax):
2014
2014
np .timedelta64 ('NaT' ),
2015
2015
np .zeros (10 , dtype = np .int32 )),
2016
2016
])
2017
+ @pytest .mark .filterwarnings ("ignore::DeprecationWarning" )
2017
2018
def test_NaT_propagation (self , arr , amin , amax ):
2018
2019
# NOTE: the expected function spec doesn't
2019
2020
# propagate NaT, but clip() now does
0 commit comments