Skip to content

Commit 4ead552

Browse files
authored
CLN: Remove unused fixtures (pandas-dev#36699)
1 parent 235e5b7 commit 4ead552

File tree

6 files changed

+0
-49
lines changed

6 files changed

+0
-49
lines changed

pandas/conftest.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,6 @@ def axis(request):
174174
axis_frame = axis
175175

176176

177-
@pytest.fixture(params=[0, "index"], ids=lambda x: f"axis {repr(x)}")
178-
def axis_series(request):
179-
"""
180-
Fixture for returning the axis numbers of a Series.
181-
"""
182-
return request.param
183-
184-
185177
@pytest.fixture(params=[True, False, None])
186178
def observed(request):
187179
"""
@@ -1241,15 +1233,6 @@ def spmatrix(request):
12411233
return getattr(sparse, request.param + "_matrix")
12421234

12431235

1244-
@pytest.fixture(params=list(tm.cython_table))
1245-
def cython_table_items(request):
1246-
"""
1247-
Yields a tuple of a function and its corresponding name. Correspond to
1248-
the list of aggregator "Cython functions" used on selected table items.
1249-
"""
1250-
return request.param
1251-
1252-
12531236
@pytest.fixture(
12541237
params=[
12551238
getattr(pd.offsets, o)

pandas/tests/arrays/boolean/test_construction.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
from pandas.core.arrays.boolean import coerce_to_array
88

99

10-
@pytest.fixture
11-
def data():
12-
return pd.array(
13-
[True, False] * 4 + [np.nan] + [True, False] * 44 + [np.nan] + [True, False],
14-
dtype="boolean",
15-
)
16-
17-
1810
def test_boolean_array_constructor():
1911
values = np.array([True, False, True, False], dtype="bool")
2012
mask = np.array([False, False, False, True], dtype="bool")

pandas/tests/arrays/boolean/test_function.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
import pandas._testing as tm
66

77

8-
@pytest.fixture
9-
def data():
10-
return pd.array(
11-
[True, False] * 4 + [np.nan] + [True, False] * 44 + [np.nan] + [True, False],
12-
dtype="boolean",
13-
)
14-
15-
168
@pytest.mark.parametrize(
179
"ufunc", [np.add, np.logical_or, np.logical_and, np.logical_xor]
1810
)

pandas/tests/arrays/sparse/test_array.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
from pandas.core.arrays.sparse import SparseArray, SparseDtype
1515

1616

17-
@pytest.fixture(params=["integer", "block"])
18-
def kind(request):
19-
return request.param
20-
21-
2217
class TestSparseArray:
2318
def setup_method(self, method):
2419
self.arr_data = np.array([np.nan, np.nan, 1, 2, 3, np.nan, 4, 5, np.nan, 6])

pandas/tests/indexes/interval/test_setops.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
import pandas._testing as tm
66

77

8-
@pytest.fixture(scope="class", params=[None, "foo"])
9-
def name(request):
10-
return request.param
11-
12-
138
def monotonic_index(start, end, dtype="int64", closed="right"):
149
return IntervalIndex.from_breaks(np.arange(start, end, dtype=dtype), closed=closed)
1510

pandas/tests/resample/conftest.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ def downsample_method(request):
3434
return request.param
3535

3636

37-
@pytest.fixture(params=upsample_methods)
38-
def upsample_method(request):
39-
"""Fixture for parametrization of Grouper upsample methods."""
40-
return request.param
41-
42-
4337
@pytest.fixture(params=resample_methods)
4438
def resample_method(request):
4539
"""Fixture for parametrization of Grouper resample methods."""

0 commit comments

Comments
 (0)