Skip to content

Commit 0a46950

Browse files
committed
lines too long
1 parent 09c7f5d commit 0a46950

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pandas/tests/indexes/test_common.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,9 @@ def test_hasnans_isnans(self, index_flat):
445445
def test_sort_values_invalid_na_position(index_with_missing, na_position):
446446
non_na_values = [x for x in index_with_missing if pd.notna(x)]
447447
if len({type(x) for x in non_na_values}) > 1:
448-
pytest.mark.xfail(reason="Sorting fails due to heterogeneous types in index (int vs str)")
448+
pytest.mark.xfail(
449+
reason="Sorting fails due to heterogeneous types in index (int vs str)"
450+
)
449451

450452
with pytest.raises(ValueError, match=f"invalid na_position: {na_position}"):
451453
index_with_missing.sort_values(na_position=na_position)
@@ -462,7 +464,9 @@ def test_sort_values_with_missing(index_with_missing, na_position, request):
462464

463465
non_na_values = [x for x in index_with_missing if pd.notna(x)]
464466
if len({type(x) for x in non_na_values}) > 1:
465-
pytest.mark.xfail(reason="Sorting fails due to heterogeneous types in index (int vs str)")
467+
pytest.mark.xfail(
468+
reason="Sorting fails due to heterogeneous types in index (int vs str)"
469+
)
466470

467471
if isinstance(index_with_missing, CategoricalIndex):
468472
request.applymarker(

pandas/tests/indexes/test_old_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def test_argsort(self, index):
371371

372372
def test_numpy_argsort(self, index):
373373
# new test for mixed-int-string
374-
if index.equals(pd.Index([0, "a", 1, "b", 2, "c"])):
374+
if index.equals(Index([0, "a", 1, "b", 2, "c"])):
375375
result = np.argsort(index.astype(str))
376376
expected = index.astype(str).argsort()
377377
tm.assert_numpy_array_equal(result, expected)

0 commit comments

Comments
 (0)