Skip to content

Commit b727250

Browse files
committed
precommit
1 parent 2e11d26 commit b727250

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

pandas/tests/frame/methods/test_asfreq.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ def test_asfreq_with_date_object_index(self, frame_or_series):
191191
ts = frame_or_series(np.random.default_rng(2).standard_normal(20), index=rng)
192192
ts.index = [x.date() for x in ts.index]
193193

194-
with pytest.raises(TypeError, match="Cannot compare Timestamp with datetime.date"):
194+
with pytest.raises(
195+
TypeError, match="Cannot compare Timestamp with datetime.date"
196+
):
195197
ts.asfreq("4h", method="ffill")
196198

197199
def test_asfreq_with_unsorted_index(self, frame_or_series):

pandas/tests/indexes/datetimes/test_indexing.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,14 @@ def test_get_indexer(self):
586586
@pytest.mark.parametrize(
587587
"target, expected",
588588
[
589-
([date(2020, 1, 1), Timestamp("2020-01-02")], np.array([-1, 1], dtype=np.intp)),
590-
([Timestamp("2020-01-01"), date(2020, 1, 2)], np.array([0, -1], dtype=np.intp)),
589+
(
590+
[date(2020, 1, 1), Timestamp("2020-01-02")],
591+
np.array([-1, 1], dtype=np.intp),
592+
),
593+
(
594+
[Timestamp("2020-01-01"), date(2020, 1, 2)],
595+
np.array([0, -1], dtype=np.intp),
596+
),
591597
],
592598
)
593599
def test_get_indexer_mixed_dtypes(self, target, expected):

0 commit comments

Comments
 (0)