Skip to content

fix(locale): handle delta of zero in Icelandic locale - #1358

Open
vineethsaivs wants to merge 1 commit into
arrow-py:masterfrom
vineethsaivs:fix/icelandic-locale-delta-zero
Open

vineethsaivs wants to merge 1 commit into
arrow-py:masterfrom
vineethsaivs:fix/icelandic-locale-delta-zero

Conversation

@vineethsaivs

@vineethsaivs vineethsaivs commented Sep 18, 2026 •

Copy link
Copy Markdown

Closes #1011. A zero delta in the Icelandic locale now falls back to the future form instead of raising a ValueError, as the issue proposes. For example, now.humanize(now, locale="is", granularity="year") returns "eftir 0 ár".

TestIcelandicLocale.test_format_timeframe used to expect the ValueError for ("years", 0). It now asserts "0 ár".

@codecov

codecov Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2224255) to head (0304ecc).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1358   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines         2315      2313    -2     
  Branches       358       357    -1     
=========================================
- Hits          2315      2313    -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@vineethsaivs

Copy link
Copy Markdown
Author

Friendly bump: still relevant, and it merges cleanly with the base branch. Happy to adjust anything.

@vineethsaivs
vineethsaivs force-pushed the fix/icelandic-locale-delta-zero branch from ade9d80 to 0304ecc Compare October 23, 2026 06:32
@vineethsaivs

Copy link
Copy Markdown
Author

Gentle nudge in case this got buried: it implements what #1011 asks for, and the three red jobs also fail on master (#1393).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Support For Timeframe Units With Zero Delta in Icelandic Locale

1 participant