Skip to content

Commit 235d120

Browse files
pqzxWillAyd
authored andcommitted
Fix mypy error in pandas\tests\indexes\interval\test_interval_tree.py (#29021)
1 parent e35841f commit 235d120

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pandas/tests/indexes/interval/test_interval_tree.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ def test_get_indexer_closed(self, closed, leaf_size):
154154
(np.array([0, 2, np.nan]), np.array([1, 3, np.nan]), False),
155155
],
156156
)
157-
@pytest.mark.parametrize("order", map(list, permutations(range(3))))
157+
@pytest.mark.parametrize("order", (list(x) for x in permutations(range(3))))
158158
def test_is_overlapping(self, closed, order, left, right, expected):
159159
# GH 23309
160160
tree = IntervalTree(left[order], right[order], closed=closed)
161161
result = tree.is_overlapping
162162
assert result is expected
163163

164-
@pytest.mark.parametrize("order", map(list, permutations(range(3))))
164+
@pytest.mark.parametrize("order", (list(x) for x in permutations(range(3))))
165165
def test_is_overlapping_endpoints(self, closed, order):
166166
"""shared endpoints are marked as overlapping"""
167167
# GH 23309

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ ignore_errors=True
145145
[mypy-pandas.tests.extension.json.test_json]
146146
ignore_errors=True
147147

148-
[mypy-pandas.tests.indexes.interval.test_interval_tree]
149-
ignore_errors=True
150-
151148
[mypy-pandas.tests.indexes.test_base]
152149
ignore_errors=True
153150

0 commit comments

Comments
 (0)