Package: src:tkcalendar
Version: 1.6.1-3
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

tkcalendar's autopkg tests fail with Python 3.12:

[...]
232s ======================================================================
232s ERROR: test_calendar_buttons_functions (tests.test_calendar.TestCalendar.test_calendar_buttons_functions)
232s ----------------------------------------------------------------------
232s Traceback (most recent call last):
232s File "/tmp/autopkgtest.Ikr8jw/autopkgtest_tmp/tests/test_calendar.py", line 194, in test_calendar_buttons_functions
232s     widget.selection_set(format_date(date(2018, 12, 31), 'short'))
232s                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232s File "/tmp/autopkgtest.Ikr8jw/autopkgtest_tmp/tests/__init__.py", line 30, in format_date
232s     return babel.dates.format_date(date, length, locale)
232s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232s File "/usr/lib/python3/dist-packages/babel/dates.py", line 726, in format_date
232s     locale = Locale.parse(locale)
232s              ^^^^^^^^^^^^^^^^^^^^
232s File "/usr/lib/python3/dist-packages/babel/core.py", line 330, in parse
232s     raise UnknownLocaleError(input_id)
232s babel.core.UnknownLocaleError: unknown locale 'c'
232s
232s ======================================================================
232s ERROR: test_calendar_init (tests.test_calendar.TestCalendar.test_calendar_init)
232s ----------------------------------------------------------------------
232s Traceback (most recent call last):
232s File "/tmp/autopkgtest.Ikr8jw/autopkgtest_tmp/tests/test_calendar.py", line 38, in test_calendar_init
232s     today = format_date(date.today(), 'short')
232s             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232s File "/tmp/autopkgtest.Ikr8jw/autopkgtest_tmp/tests/__init__.py", line 30, in format_date
232s     return babel.dates.format_date(date, length, locale)
232s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232s File "/usr/lib/python3/dist-packages/babel/dates.py", line 726, in format_date
232s     locale = Locale.parse(locale)
232s              ^^^^^^^^^^^^^^^^^^^^
232s File "/usr/lib/python3/dist-packages/babel/core.py", line 330, in parse
232s     raise UnknownLocaleError(input_id)
232s babel.core.UnknownLocaleError: unknown locale 'c'
232s
232s ======================================================================
232s ERROR: test_dateentry_functions (tests.test_dateentry.TestDateEntry.test_dateentry_functions)
232s ----------------------------------------------------------------------
232s Traceback (most recent call last):
232s File "/tmp/autopkgtest.Ikr8jw/autopkgtest_tmp/tests/test_dateentry.py", line 114, in test_dateentry_functions
232s     widget.set_date(format_date(date(2018, 12, 31), 'short'))
232s                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232s File "/tmp/autopkgtest.Ikr8jw/autopkgtest_tmp/tests/__init__.py", line 30, in format_date
232s     return babel.dates.format_date(date, length, locale)
232s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232s File "/usr/lib/python3/dist-packages/babel/dates.py", line 726, in format_date
232s     locale = Locale.parse(locale)
232s              ^^^^^^^^^^^^^^^^^^^^
232s File "/usr/lib/python3/dist-packages/babel/core.py", line 330, in parse
232s     raise UnknownLocaleError(input_id)
232s babel.core.UnknownLocaleError: unknown locale 'c'
232s
232s ----------------------------------------------------------------------
232s Ran 15 tests in 0.538s
232s
232s FAILED (errors=3)

Reply via email to