@@ -3331,6 +3331,7 @@ def test_invalid_origin(self, unit):
33313331 ],
33323332 )
33333333 def test_epoch (self , units , epochs , origin_unit ):
3334+ # GH 63419: after v3.0.0 default resolution is microseconds
33343335 epoch_1960 = Timestamp (1960 , 1 , 1 )
33353336 units_from_epochs = np .arange (5 , dtype = np .int64 )
33363337 # result resolution is max of origin resolution and unit resolution
@@ -3356,11 +3357,8 @@ def test_epoch(self, units, epochs, origin_unit):
33563357 ],
33573358 )
33583359 def test_invalid_origins (self , origin , exc , units ):
3359- msg = "|" .join (
3360- [
3361- f"origin { origin } cannot be converted to a Timestamp" ,
3362- ]
3363- )
3360+ # GH 63419
3361+ msg = f"origin { origin } cannot be converted to a Timestamp"
33643362 with pytest .raises (exc , match = msg ):
33653363 to_datetime (list (range (5 )), unit = units , origin = origin )
33663364
@@ -3437,7 +3435,7 @@ def test_arg_tz_ns_unit(self, offset, utc, exp):
34373435 tm .assert_index_equal (result , expected )
34383436
34393437 def test_invalid_origins_oob (self ):
3440- # GH# 63419 datetime(1, 1, 1) overflows only for unit='ns'
3438+ # GH 63419 datetime(1, 1, 1) overflows only for unit='ns'
34413439 msg = "Cannot cast .* to unit='ns' without overflow"
34423440 with pytest .raises (OutOfBoundsDatetime , match = msg ):
34433441 to_datetime (list (range (5 )), unit = "ns" , origin = datetime (1 , 1 , 1 ))
0 commit comments