Skip to content

Commit a19cdfc

Browse files
committed
clean asv
1 parent 0ee926c commit a19cdfc

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

asv_bench/benchmarks/dtypes.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,18 @@ def time_pandas_dtype(self, dtype):
2121

2222

2323
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-
3324
param_names = ['dtype']
3425
params = ['scalar-string', 'scalar-int', 'list-string', 'array-string']
3526
data_dict = {'scalar-string': 'foo',
3627
'scalar-int': 1,
3728
'list-string': ['foo'] * 1000,
3829
'array-string': np.array(['foo'] * 1000)}
3930

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
4236

4337

4438
from .pandas_vb_common import setup # noqa: F401

0 commit comments

Comments
 (0)