We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70ff707 commit 5e706e4Copy full SHA for 5e706e4
tests/test_time.py
@@ -539,6 +539,9 @@ def test_precisedelta_multiple_units(
539
"5 days and 4.50 hours",
540
),
541
(dt.timedelta(days=5, hours=4, seconds=30 * 60), "days", "%0.2f", "5.19 days"),
542
+ (dt.timedelta(days=31), "days", "%d", "1 month"),
543
+ (dt.timedelta(days=31.01), "days", "%d", "1 month and 1 day"),
544
+ (dt.timedelta(days=92), "days", "%d", "3 months"),
545
(dt.timedelta(days=120), "months", "%0.2f", "3.93 months"),
546
(dt.timedelta(days=183), "years", "%0.1f", "0.5 years"),
547
(0.01, "seconds", "%0.3f", "0.010 seconds"),
@@ -559,9 +562,6 @@ def test_precisedelta_multiple_units(
559
562
"%.4f",
560
563
"23 hours, 59 minutes and 59.9990 seconds",
561
564
- (dt.timedelta(days=31), "days", "%d", "1 month"),
- (dt.timedelta(days=31.01), "days", "%d", "1 month and 1 day"),
- (dt.timedelta(days=92), "days", "%d", "3 months"),
565
],
566
)
567
def test_precisedelta_custom_format(
0 commit comments