Skip to content

Commit fbbbf90

Browse files
committed
Change data_for_ones to data_for_twos
1 parent d97cf8b commit fbbbf90

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

pandas/tests/extension/base/ops.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def test_divmod(self, data):
9191
self._check_divmod_op(s, divmod, 1, exc=self.divmod_exc)
9292
self._check_divmod_op(1, ops.rdivmod, s, exc=self.divmod_exc)
9393

94-
def test_divmod_series_array(self, data, data_for_ones):
94+
def test_divmod_series_array(self, data, data_for_twos):
9595
s = pd.Series(data)
9696
self._check_divmod_op(s, divmod, data)
9797

98-
other = data_for_ones * 2
98+
other = data_for_twos
9999
self._check_divmod_op(other, ops.rdivmod, s)
100100

101101
other = pd.Series(other)

pandas/tests/extension/decimal/test_decimal.py

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

2525

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

3030

3131
@pytest.fixture

pandas/tests/extension/test_integer.py

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

4444

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

4949

5050
@pytest.fixture

pandas/tests/extension/test_period.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def data(dtype):
2121

2222

2323
@pytest.fixture
24-
def data_for_ones(dtype):
25-
return PeriodArray(np.ones(100), freq=dtype.freq)
24+
def data_for_twos(dtype):
25+
return PeriodArray(np.ones(100) * 2, freq=dtype.freq)
2626

2727

2828
@pytest.fixture

pandas/tests/extension/test_sparse.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def data(request):
3434

3535

3636
@pytest.fixture
37-
def data_for_ones(request):
38-
return SparseArray(np.ones(100))
37+
def data_for_twos(request):
38+
return SparseArray(np.ones(100) * 2)
3939

4040

4141
@pytest.fixture(params=[0, np.nan])

0 commit comments

Comments
 (0)