#1151148 khal: FTBFS: E AssertionError: assert '[ ] Allday

Package:
src:khal
Source:
src:khal
Submitter:
Santiago Vila
Date:
2026-10-17 13:39:10 UTC
Severity:
normal
Tags:
#1151148#5
Date:
2026-10-17 13:38:17 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:khal, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
        canvas = editor.render((50,), True)
            "[ ] Allday\nFrom: \x1b[31m2.10.2017 \x1b[0m \x1b[34m13:00 \x1b[0m\n"
            "To:   \x1b[34m04.10.2017\x1b[0m \x1b[34m18:00 \x1b[0m\n"
        )
E       AssertionError: assert '[ ] Allday\nFrom: \x1b[31m02.10.2017\x1b[0m \x1b[34m13:00 \x1b[0m\nTo:   \x1b[34m04.10.2017\x1b[0m \x1b[34m18:00 \x1b[0m\n' == '[ ] Allday\nFrom: \x1b[31m2.10.2017 \x1b[0m \x1b[34m13:00 \x1b[0m\nTo:   \x1b[34m04.10.2017\x1b[0m \x1b[34m18:00 \x1b[0m\n'
E
E           [ ] Allday
E         - From: 2.10.2017  13:00 
E         ?                     -
E         + From: 02.10.2017 13:00 
E         ?            +
E           To:   04.10.2017 18:00 

tests/ui/test_editor.py:107: AssertionError
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/hypothesis/internal/conjecture/providers.py:367
  /usr/lib/python3/dist-packages/hypothesis/internal/conjecture/providers.py:367: DeprecationWarning: urwid.display_common is moved to urwid.display.common since urwid 2.4.0. API will be removed in version 6.0.
    module_file := getattr(module, "__file__", None)

../../../../../../usr/lib/python3/dist-packages/hypothesis/internal/conjecture/providers.py:367
  /usr/lib/python3/dist-packages/hypothesis/internal/conjecture/providers.py:367: DeprecationWarning: urwid.raw_display is moved to urwid.display.raw since urwid 2.4.0. API will be removed in version 6.0.
    module_file := getattr(module, "__file__", None)

../../../../../../usr/lib/python3/dist-packages/hypothesis/internal/conjecture/providers.py:367
  /usr/lib/python3/dist-packages/hypothesis/internal/conjecture/providers.py:367: DeprecationWarning: urwid.curses_display is moved to urwid.display.curses since urwid 2.4.0. API will be removed in version 6.0.
    module_file := getattr(module, "__file__", None)

../../../../../../usr/lib/python3/dist-packages/hypothesis/internal/conjecture/providers.py:367
  /usr/lib/python3/dist-packages/hypothesis/internal/conjecture/providers.py:367: DeprecationWarning: urwid.escape is moved to urwid.display.escape since urwid 2.4.0. API will be removed in version 6.0.
    module_file := getattr(module, "__file__", None)

tests/cli_test.py: 2 warnings
tests/controller_test.py: 3 warnings
tests/parse_datetime_test.py: 11 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_khal/build/khal/parse_datetime.py:83: DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguous
  and fails to parse leap day. The default behavior will change in Python 3.15
  to either always raise an exception or to use a different default year (TBD).
  To avoid trouble, add a specific year to the input & format.
  See https://github.com/python/cpython/issues/70647.
    dtstart_struct = strptime(dtstring, dateformat)