@@ -529,14 +529,14 @@ def test_tz_cmp() -> None:
529529 ('seconds' , 1654646400 , datetime (2022 , 6 , 8 , tzinfo = timezone .utc )),
530530 ('seconds' , '1654646400' , datetime (2022 , 6 , 8 , tzinfo = timezone .utc )),
531531 ('seconds' , 1654646400.123456 , datetime (2022 , 6 , 8 , 0 , 0 , 0 , 123456 , tzinfo = timezone .utc )),
532- ('seconds' , 8640000000.0 , datetime (2243 , 10 , 17 , tzinfo = timezone .utc )),
533- ('seconds' , 92534400000.0 , datetime (4902 , 4 , 20 , tzinfo = timezone .utc )),
532+ ('seconds' , 8640000000.0 , datetime (2243 , 10 , 17 , tzinfo = timezone .utc )),
533+ ('seconds' , 92534400000.0 , datetime (4902 , 4 , 20 , tzinfo = timezone .utc )),
534534 # 'milliseconds' mode: treat as milliseconds since epoch
535535 ('milliseconds' , 1654646400 , datetime (1970 , 1 , 20 , 3 , 37 , 26 , 400000 , tzinfo = timezone .utc )),
536536 ('milliseconds' , 1654646400123 , datetime (2022 , 6 , 8 , 0 , 0 , 0 , 123000 , tzinfo = timezone .utc )),
537537 ('milliseconds' , '1654646400123' , datetime (2022 , 6 , 8 , 0 , 0 , 0 , 123000 , tzinfo = timezone .utc )),
538- ('milliseconds' , 8640000000.0 , datetime (1970 , 4 , 11 , tzinfo = timezone .utc )),
539- ('milliseconds' , 92534400000.0 , datetime (1972 , 12 , 7 , tzinfo = timezone .utc )),
538+ ('milliseconds' , 8640000000.0 , datetime (1970 , 4 , 11 , tzinfo = timezone .utc )),
539+ ('milliseconds' , 92534400000.0 , datetime (1972 , 12 , 7 , tzinfo = timezone .utc )),
540540 pytest .param (
541541 'milliseconds' ,
542542 1654646400123.456 ,
@@ -552,8 +552,8 @@ def test_tz_cmp() -> None:
552552 datetime (2022 , 6 , 8 , 0 , 0 , 0 , 123456 , tzinfo = timezone .utc ),
553553 marks = pytest .mark .xfail (reason = 'Current behaviour means this fails' , strict = True ),
554554 ),
555- ('infer' , 8640000000.0 , datetime (2243 , 10 , 17 , tzinfo = timezone .utc )),
556- ('infer' , 92534400000.0 , datetime (1972 , 12 , 7 , tzinfo = timezone .utc )),
555+ ('infer' , 8640000000.0 , datetime (2243 , 10 , 17 , tzinfo = timezone .utc )),
556+ ('infer' , 92534400000.0 , datetime (1972 , 12 , 7 , tzinfo = timezone .utc )),
557557 ],
558558)
559559def test_val_temporal_unit_datetime (val_temporal_unit , input_value , expected ):
0 commit comments