Skip to content

Commit

Permalink
Fix mypy error in pandas\tests\indexes\interval\test_interval_tree.py (
Browse files Browse the repository at this point in the history
  • Loading branch information
pqzx authored and WillAyd committed Nov 7, 2019
1 parent e35841f commit 235d120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/indexes/interval/test_interval_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ def test_get_indexer_closed(self, closed, leaf_size):
(np.array([0, 2, np.nan]), np.array([1, 3, np.nan]), False),
],
)
@pytest.mark.parametrize("order", map(list, permutations(range(3))))
@pytest.mark.parametrize("order", (list(x) for x in permutations(range(3))))
def test_is_overlapping(self, closed, order, left, right, expected):
# GH 23309
tree = IntervalTree(left[order], right[order], closed=closed)
result = tree.is_overlapping
assert result is expected

@pytest.mark.parametrize("order", map(list, permutations(range(3))))
@pytest.mark.parametrize("order", (list(x) for x in permutations(range(3))))
def test_is_overlapping_endpoints(self, closed, order):
"""shared endpoints are marked as overlapping"""
# GH 23309
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ ignore_errors=True
[mypy-pandas.tests.extension.json.test_json]
ignore_errors=True

[mypy-pandas.tests.indexes.interval.test_interval_tree]
ignore_errors=True

[mypy-pandas.tests.indexes.test_base]
ignore_errors=True

Expand Down

0 comments on commit 235d120

Please sign in to comment.