File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
pandas/tests/indexes/datetimes Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ def test_datetimeindex_accessors(self):
115
115
exp = dti [[0 , 90 , 181 , 273 ]]
116
116
tm .assert_index_equal (res , exp )
117
117
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" )
119
119
tm .assert_index_equal (res , exp )
120
120
121
121
def test_datetimeindex_accessors2 (self ):
@@ -198,7 +198,8 @@ def test_datetimeindex_accessors6(self):
198
198
# GH 12806
199
199
# error: Unsupported operand types for + ("List[None]" and "List[str]")
200
200
@pytest .mark .parametrize (
201
- "time_locale" , [None ] + tm .get_locales () # type: ignore[operator]
201
+ "time_locale" ,
202
+ [None ] + tm .get_locales (), # type: ignore[operator]
202
203
)
203
204
def test_datetime_name_accessors (self , time_locale ):
204
205
# Test Monday -> Sunday and January -> December, in that sequence
You can’t perform that action at this time.
0 commit comments