Skip to content

Commit dcc860f

Browse files
committed
update test
1 parent 7e2833d commit dcc860f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/indexes/datetimes/test_misc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_datetimeindex_accessors(self):
115115
exp = dti[[0, 90, 181, 273]]
116116
tm.assert_index_equal(res, exp)
117117
res = dti[dti.is_leap_year]
118-
exp = DatetimeIndex([], freq="D", tz=dti.tz, name="name")
118+
exp = DatetimeIndex([], freq="D", tz=dti.tz, name="name").as_unit("ns")
119119
tm.assert_index_equal(res, exp)
120120

121121
def test_datetimeindex_accessors2(self):
@@ -198,7 +198,8 @@ def test_datetimeindex_accessors6(self):
198198
# GH 12806
199199
# error: Unsupported operand types for + ("List[None]" and "List[str]")
200200
@pytest.mark.parametrize(
201-
"time_locale", [None] + tm.get_locales() # type: ignore[operator]
201+
"time_locale",
202+
[None] + tm.get_locales(), # type: ignore[operator]
202203
)
203204
def test_datetime_name_accessors(self, time_locale):
204205
# Test Monday -> Sunday and January -> December, in that sequence

0 commit comments

Comments
 (0)