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 @@ -565,15 +565,15 @@ def test_bounds_with_different_units(self):
565
565
566
566
for date_string in out_of_bounds_dates :
567
567
for unit in time_units :
568
- dt64 = np .datetime64 (date_string , dtype = "M8[{ unit}]" . format ( unit = unit ) )
568
+ dt64 = np .datetime64 (date_string , unit )
569
569
with pytest .raises (ValueError ):
570
570
Timestamp (dt64 )
571
571
572
572
in_bounds_dates = ("1677-09-23" , "2262-04-11" )
573
573
574
574
for date_string in in_bounds_dates :
575
575
for unit in time_units :
576
- dt64 = np .datetime64 (date_string , dtype = "M8[{ unit}]" . format ( unit = unit ) )
576
+ dt64 = np .datetime64 (date_string , unit )
577
577
Timestamp (dt64 )
578
578
579
579
def test_min_valid (self ):
You can’t perform that action at this time.
0 commit comments