Skip to content

Commit 46ad4b7

Browse files
authored
CLN: 35925 rm trailing commas (#36446)
1 parent 1b895ef commit 46ad4b7

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

pandas/tests/indexes/base_class/test_indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_get_slice_bounds_within(self, kind, side, expected):
1414
@pytest.mark.parametrize("kind", ["getitem", "loc", None])
1515
@pytest.mark.parametrize("side", ["left", "right"])
1616
@pytest.mark.parametrize(
17-
"data, bound, expected", [(list("abcdef"), "x", 6), (list("bcdefg"), "a", 0)],
17+
"data, bound, expected", [(list("abcdef"), "x", 6), (list("bcdefg"), "a", 0)]
1818
)
1919
def test_get_slice_bounds_outside(self, kind, side, expected, data, bound):
2020
index = Index(data)

pandas/tests/indexes/test_common.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,7 @@ def test_sort_values_invalid_na_position(index_with_missing, na_position):
411411
pytest.xfail("missing value sorting order not defined for index type")
412412

413413
if na_position not in ["first", "last"]:
414-
with pytest.raises(
415-
ValueError, match=f"invalid na_position: {na_position}",
416-
):
414+
with pytest.raises(ValueError, match=f"invalid na_position: {na_position}"):
417415
index_with_missing.sort_values(na_position=na_position)
418416

419417

pandas/tests/indexes/test_numeric.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,7 @@ def test_get_slice_bounds_within(self, kind, side, expected):
699699

700700
@pytest.mark.parametrize("kind", ["getitem", "loc", None])
701701
@pytest.mark.parametrize("side", ["left", "right"])
702-
@pytest.mark.parametrize(
703-
"bound, expected", [(-1, 0), (10, 6)],
704-
)
702+
@pytest.mark.parametrize("bound, expected", [(-1, 0), (10, 6)])
705703
def test_get_slice_bounds_outside(self, kind, side, expected, bound):
706704
index = Index(range(6))
707705
result = index.get_slice_bound(bound, kind=kind, side=side)

0 commit comments

Comments
 (0)