File tree 1 file changed +5
-11
lines changed
1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -21,24 +21,18 @@ def time_pandas_dtype(self, dtype):
21
21
22
22
23
23
class DtypesInvalid (object ):
24
- params = ['foo' , 1 , ['foo' ] * 1000 , np .array (['foo' ] * 1000 )]
25
- param_names = ['dtype' ]
26
-
27
- def time_pandas_dtype_invalid (self , dtype ):
28
- try :
29
- pandas_dtype (dtype )
30
- except TypeError :
31
- pass
32
-
33
24
param_names = ['dtype' ]
34
25
params = ['scalar-string' , 'scalar-int' , 'list-string' , 'array-string' ]
35
26
data_dict = {'scalar-string' : 'foo' ,
36
27
'scalar-int' : 1 ,
37
28
'list-string' : ['foo' ] * 1000 ,
38
29
'array-string' : np .array (['foo' ] * 1000 )}
39
30
40
- def setup (self , dtype ):
41
- self .data = self .data_dict [dtype ]
31
+ def time_pandas_dtype_invalid (self , dtype ):
32
+ try :
33
+ pandas_dtype (self .data_dict [dtype ])
34
+ except TypeError :
35
+ pass
42
36
43
37
44
38
from .pandas_vb_common import setup # noqa: F401
You can’t perform that action at this time.
0 commit comments