@@ -24,7 +24,9 @@ def switch_numexpr_min_elements(request):
2424
2525# ------------------------------------------------------------------
2626
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
2830@pytest .fixture (params = [1 , np .array (1 , dtype = np .int64 )])
2931def one (request ):
3032 """
@@ -37,11 +39,11 @@ def one(request):
3739
3840 Examples
3941 --------
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
4244 DatetimeIndex(['2016-01-01 00:00:00', '2016-01-01 01:00:00'],
4345 dtype='datetime64[ns]', freq='H')
44- >>> dti + one
46+ dti + one
4547 DatetimeIndex(['2016-01-01 01:00:00', '2016-01-01 02:00:00'],
4648 dtype='datetime64[ns]', freq='H')
4749 """
@@ -61,6 +63,9 @@ def one(request):
6163zeros .extend ([0 , 0.0 , - 0.0 ])
6264
6365
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
6469@pytest .fixture (params = zeros )
6570def zero (request ):
6671 """
@@ -74,8 +79,8 @@ def zero(request):
7479
7580 Examples
7681 --------
77- >>> arr = RangeIndex(5)
78- >>> arr / zeros
82+ arr = RangeIndex(5)
83+ arr / zeros
7984 Float64Index([nan, inf, inf, inf, inf], dtype='float64')
8085 """
8186 return request .param
0 commit comments