Skip to content

Commit 19191a4

Browse files
committed
doc and refactor
1 parent a62679b commit 19191a4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/indexes/arithmetic/timedelta/test_mul.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def left() -> "pd.Index[pd.Timedelta]":
2525

2626

2727
def test_mul_py_scalar(left: "pd.Index[pd.Timedelta]") -> None:
28-
"""Test pd.Series[pd.Timedelta] * Python native scalars"""
28+
"""Test pd.Index[pd.Timedelta] * Python native scalars"""
2929
b, i, f, c = True, 1, 1.0, 1j
3030

3131
# pandas-dev/pandas#62316
@@ -45,7 +45,7 @@ def test_mul_py_scalar(left: "pd.Index[pd.Timedelta]") -> None:
4545

4646

4747
def test_mul_py_sequence(left: "pd.Index[pd.Timedelta]") -> None:
48-
"""Test pd.Series[pd.Timedelta] * Python native sequences"""
48+
"""Test pd.Index[pd.Timedelta] * Python native sequences"""
4949
b, i, f, c = [True], [2], [1.5], [1.7j]
5050

5151
# pandas-dev/pandas#62316
@@ -65,7 +65,7 @@ def test_mul_py_sequence(left: "pd.Index[pd.Timedelta]") -> None:
6565

6666

6767
def test_mul_numpy_array(left: "pd.Index[pd.Timedelta]") -> None:
68-
"""Test pd.Series[pd.Timedelta] * numpy arrays"""
68+
"""Test pd.Index[pd.Timedelta] * numpy arrays"""
6969
b = np.array([True], np.bool_)
7070
i = np.array([2], np.int64)
7171
f = np.array([1.5], np.float64)
@@ -92,7 +92,7 @@ def test_mul_numpy_array(left: "pd.Index[pd.Timedelta]") -> None:
9292

9393

9494
def test_mul_pd_index(left: "pd.Index[pd.Timedelta]") -> None:
95-
"""Test pd.Series[pd.Timedelta] * pandas Indexes"""
95+
"""Test pd.Index[pd.Timedelta] * pandas Indexes"""
9696
b = pd.Index([True])
9797
i = pd.Index([2])
9898
f = pd.Index([1.5])
File renamed without changes.

tests/indexes/timedeltaindex/test_mul.py renamed to tests/indexes/arithmetic/timedeltaindex/test_mul.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def left() -> pd.TimedeltaIndex:
2222

2323

2424
def test_mul_py_scalar(left: pd.TimedeltaIndex) -> None:
25-
"""Test pd.Series[pd.Timedelta] * Python native scalars"""
25+
"""Test pd.TimedeltaIndex * Python native scalars"""
2626
b, i, f, c = True, 1, 1.0, 1j
2727

2828
# pandas-dev/pandas#62316
@@ -42,7 +42,7 @@ def test_mul_py_scalar(left: pd.TimedeltaIndex) -> None:
4242

4343

4444
def test_mul_py_sequence(left: pd.TimedeltaIndex) -> None:
45-
"""Test pd.Series[pd.Timedelta] * Python native sequences"""
45+
"""Test pd.TimedeltaIndex * Python native sequences"""
4646
b, i, f, c = [True], [2], [1.5], [1.7j]
4747

4848
# pandas-dev/pandas#62316
@@ -62,7 +62,7 @@ def test_mul_py_sequence(left: pd.TimedeltaIndex) -> None:
6262

6363

6464
def test_mul_numpy_array(left: pd.TimedeltaIndex) -> None:
65-
"""Test pd.Series[pd.Timedelta] * numpy arrays"""
65+
"""Test pd.TimedeltaIndex * numpy arrays"""
6666
b = np.array([True], np.bool_)
6767
i = np.array([2], np.int64)
6868
f = np.array([1.5], np.float64)
@@ -99,7 +99,7 @@ def test_mul_numpy_array(left: pd.TimedeltaIndex) -> None:
9999

100100

101101
def test_mul_pd_index(left: pd.TimedeltaIndex) -> None:
102-
"""Test pd.Series[pd.Timedelta] * pandas Indexes"""
102+
"""Test pd.TimedeltaIndex * pandas Indexes"""
103103
b = pd.Index([True])
104104
i = pd.Index([2])
105105
f = pd.Index([1.5])

0 commit comments

Comments
 (0)