Skip to content

Commit a2e48cb

Browse files
committed
Strengthen DST fold comparison test
1 parent f7ee549 commit a2e48cb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/datetime/test_comparison.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,4 +416,11 @@ def test_less_than_with_fold():
416416
)
417417

418418
assert d1.timestamp() > d2.timestamp()
419+
420+
# Verify rich ordering operators behave consistently when fold differs but
421+
# the absolute instant (timestamp) shows d1 is later than d2.
419422
assert not (d1 < d2)
423+
assert d1 > d2
424+
assert d2 < d1
425+
assert d1 >= d2
426+
assert not (d1 <= d2)

0 commit comments

Comments
 (0)