File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1+ from distutils .version import LooseVersion
2+
13import numpy as np
24import pytest
35
810
911from . import base
1012
11- NP_VERSION_INFO = tuple (int (x ) for x in np .__version__ .split ('.' )[:2 ])
12-
1313
1414@pytest .fixture (params = ['float' , 'object' ])
1515def dtype (request ):
@@ -50,7 +50,7 @@ def data_missing(allow_in_pandas, dtype):
5050 # For NumPy <1.16, np.array([np.nan, (1,)]) raises
5151 # ValueError: setting an array element with a sequence.
5252 if dtype .numpy_dtype == 'object' :
53- if NP_VERSION_INFO < ( 1 , 16 ):
53+ if LooseVersion ( np . __version__ ) < LooseVersion ( "1.16" ):
5454 raise pytest .skip ("Skipping for NumPy <1.16" )
5555 return PandasArray (np .array ([np .nan , (1 ,)]))
5656 return PandasArray (np .array ([np .nan , 1.0 ]))
You can’t perform that action at this time.
0 commit comments