Skip to content

Commit 860c8a5

Browse files
committed
TST: use lists, reference GH issue
1 parent 6a422b2 commit 860c8a5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pandas/tests/frame/methods/test_sort_index.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,11 +765,12 @@ def test_sort_index_with_categories(self, categories):
765765
"ascending",
766766
[
767767
None,
768-
(True, None),
769-
(False, "True"),
768+
[True, None],
769+
[False, "True"],
770770
],
771771
)
772772
def test_sort_index_ascending_bad_value_raises(self, ascending):
773+
# GH 39434
773774
df = DataFrame(np.arange(64))
774775
length = len(df.index)
775776
df.index = [(i - length / 2) % length for i in range(length)]

pandas/util/_validators.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
Module that contains many useful utilities
33
for validating data or function arguments
44
"""
5-
from typing import Iterable, Sequence, Union
5+
from typing import (
6+
Iterable,
7+
Sequence,
8+
Union,
9+
)
610
import warnings
711

812
import numpy as np

0 commit comments

Comments
 (0)