File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ def test_td_rfloordiv_invalid_scalar(self):
498
498
# GH#18846
499
499
td = Timedelta (hours = 3 , minutes = 3 )
500
500
501
- dt64 = np .datetime64 ("2016-01-01" , dtype = "datetime64[us] " )
501
+ dt64 = np .datetime64 ("2016-01-01" , "us " )
502
502
with pytest .raises (TypeError ):
503
503
td .__rfloordiv__ (dt64 )
504
504
Original file line number Diff line number Diff line change @@ -575,15 +575,15 @@ def test_bounds_with_different_units(self):
575
575
576
576
for date_string in out_of_bounds_dates :
577
577
for unit in time_units :
578
- dt64 = np .datetime64 (date_string , dtype = "M8[{ unit}]" . format ( unit = unit ) )
578
+ dt64 = np .datetime64 (date_string , unit )
579
579
with pytest .raises (ValueError ):
580
580
Timestamp (dt64 )
581
581
582
582
in_bounds_dates = ("1677-09-23" , "2262-04-11" )
583
583
584
584
for date_string in in_bounds_dates :
585
585
for unit in time_units :
586
- dt64 = np .datetime64 (date_string , dtype = "M8[{ unit}]" . format ( unit = unit ) )
586
+ dt64 = np .datetime64 (date_string , unit )
587
587
Timestamp (dt64 )
588
588
589
589
def test_min_valid (self ):
You can’t perform that action at this time.
0 commit comments