summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2022-04-20 12:19:47 +0300
committerAarni Koskela <akx@iki.fi>2022-04-20 12:53:30 +0300
commit2a3d05affe7af2dec2c0f91df83d2b876c73db8f (patch)
tree363833dc2832bcc8321611c9181bca0b84c85309 /tests
parent61109c4bd4d60a79d7cb5f216a8286ddff6fb30b (diff)
downloadbabel-2a3d05affe7af2dec2c0f91df83d2b876c73db8f.tar.gz
Add test for issue 798
Diffstat (limited to 'tests')
-rw-r--r--tests/test_dates.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_dates.py b/tests/test_dates.py
index 143ea3f..9367466 100644
--- a/tests/test_dates.py
+++ b/tests/test_dates.py
@@ -873,3 +873,7 @@ def test_en_gb_first_weekday():
assert Locale.parse('en').first_week_day == 0 # Monday in general
assert Locale.parse('en_US').first_week_day == 6 # Sunday in the US
assert Locale.parse('en_GB').first_week_day == 0 # Monday in the UK
+
+
+def test_issue_798():
+ assert dates.format_timedelta(timedelta(), format='narrow', locale='es_US') == '0s'