Skip to content

Commit aab750f

Browse files
committed
Rename ones as data_for_ones
1 parent 058b6d8 commit aab750f

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

pandas/tests/extension/base/ops.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import operator
22

33
import pytest
4-
import numpy as np
54

65
import pandas as pd
76
from pandas.core import ops
@@ -92,13 +91,11 @@ def test_divmod(self, data):
9291
self._check_divmod_op(s, divmod, 1, exc=self.divmod_exc)
9392
self._check_divmod_op(1, ops.rdivmod, s, exc=self.divmod_exc)
9493

95-
def test_divmod_series_array(self, data, ones):
96-
#pytest.set_trace()
94+
def test_divmod_series_array(self, data, data_for_ones):
9795
s = pd.Series(data)
9896
self._check_divmod_op(s, divmod, data)
9997

100-
#pytest.set_trace()
101-
other = ones * 2
98+
other = data_for_ones * 2
10299
self._check_divmod_op(other, ops.rdivmod, s)
103100

104101
other = pd.Series(other)

pandas/tests/extension/decimal/test_decimal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def data():
2424

2525

2626
@pytest.fixture
27-
def ones():
27+
def data_for_ones():
2828
return DecimalArray([decimal.Decimal(1) for _ in range(100)])
2929

3030

pandas/tests/extension/test_integer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def data(dtype):
4343

4444

4545
@pytest.fixture
46-
def ones(dtype):
46+
def data_for_ones(dtype):
4747
return integer_array(np.ones(100), dtype=dtype)
4848

4949

pandas/tests/extension/test_period.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ def data(dtype):
2020
return PeriodArray(np.arange(1970, 2070), freq=dtype.freq)
2121

2222

23+
@pytest.fixture
24+
def data_for_ones(dtype):
25+
return PeriodArray(np.ones(100), freq=dtype.freq)
26+
27+
2328
@pytest.fixture
2429
def data_for_sorting(dtype):
2530
return PeriodArray([2018, 2019, 2017], freq=dtype.freq)
@@ -125,9 +130,6 @@ def test_direct_arith_with_series_returns_not_implemented(self, data):
125130
result = data.__sub__(other)
126131
assert result is NotImplemented
127132

128-
def test_divmod_series_array(self):
129-
pass
130-
131133

132134
class TestCasting(BasePeriodTests, base.BaseCastingTests):
133135
pass

pandas/tests/extension/test_sparse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def data(request):
3535

3636

3737
@pytest.fixture
38-
def ones(request):
38+
def data_for_ones(request):
3939
return SparseArray(np.ones(100))
4040

4141

0 commit comments

Comments
 (0)