@@ -24,7 +24,9 @@ def switch_numexpr_min_elements(request):
24
24
25
25
# ------------------------------------------------------------------
26
26
27
-
27
+ # doctest with +SKIP for one fixture fails during setup with
28
+ # 'DoctestItem' object has no attribute 'callspec'
29
+ # due to switch_numexpr_min_elements fixture
28
30
@pytest .fixture (params = [1 , np .array (1 , dtype = np .int64 )])
29
31
def one (request ):
30
32
"""
@@ -37,11 +39,11 @@ def one(request):
37
39
38
40
Examples
39
41
--------
40
- >>> dti = pd.date_range('2016-01-01', periods=2, freq='H')
41
- >>> dti
42
+ dti = pd.date_range('2016-01-01', periods=2, freq='H')
43
+ dti
42
44
DatetimeIndex(['2016-01-01 00:00:00', '2016-01-01 01:00:00'],
43
45
dtype='datetime64[ns]', freq='H')
44
- >>> dti + one
46
+ dti + one
45
47
DatetimeIndex(['2016-01-01 01:00:00', '2016-01-01 02:00:00'],
46
48
dtype='datetime64[ns]', freq='H')
47
49
"""
@@ -61,6 +63,9 @@ def one(request):
61
63
zeros .extend ([0 , 0.0 , - 0.0 ])
62
64
63
65
66
+ # doctest with +SKIP for zero fixture fails during setup with
67
+ # 'DoctestItem' object has no attribute 'callspec'
68
+ # due to switch_numexpr_min_elements fixture
64
69
@pytest .fixture (params = zeros )
65
70
def zero (request ):
66
71
"""
@@ -74,8 +79,8 @@ def zero(request):
74
79
75
80
Examples
76
81
--------
77
- >>> arr = RangeIndex(5)
78
- >>> arr / zeros
82
+ arr = RangeIndex(5)
83
+ arr / zeros
79
84
Float64Index([nan, inf, inf, inf, inf], dtype='float64')
80
85
"""
81
86
return request .param
0 commit comments