]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add test for issue 798
authorAarni Koskela <akx@iki.fi>
Wed, 20 Apr 2022 09:19:47 +0000 (12:19 +0300)
committerAarni Koskela <akx@iki.fi>
Wed, 20 Apr 2022 09:53:30 +0000 (12:53 +0300)
tests/test_dates.py

index 143ea3fe389f6df22f71cc88804447d46ccc653a..936746698a79b4e2237cea51f38c7e669eb75440 100644 (file)
@@ -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'