[Python-apps-team] Bug#859472: khal FTBFS: tests/event_test.py:307: AssertionError

Adrian Bunk bunk at debian.org
Mon Apr 3 21:50:19 UTC 2017


Source: khal
Version: 0.9.4-1
Severity: serious

https://buildd.debian.org/status/fetch.php?pkg=khal&arch=all&ver=0.9.4-1&stamp=1491255368&raw=0

...
   debian/rules override_dh_auto_test
make[1]: Entering directory '/«PKGBUILDDIR»'
mkdir -p debian/tmp/locale/
localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
localedef -f UTF-8 -i de_DE ./debian/tmp/locale/de_DE.UTF-8/
localedef -f UTF-8 -i cs_CZ ./debian/tmp/locale/cs_CZ.UTF-8/
localedef -f UTF-8 -i el_GR ./debian/tmp/locale/el_GR.UTF-8/
export LOCPATH=/«PKGBUILDDIR»/debian/tmp/locale/ && \
export LC_ALL=en_US.UTF-8 && \
LC_ALL=en_US.UTF-8 dh_auto_test
I: pybuild base:184: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_3.5/build; python3.5 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.5.3, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
rootdir: /«PKGBUILDDIR», inifile: 
collected 259 items

tests/backend_test.py ..........................
tests/cal_display_test.py ..s...
tests/cli_test.py ................................
tests/configwizard_test.py .
tests/controller_test.py ............
tests/event_test.py ..........................F................
tests/khalendar_test.py .....................
tests/khalendar_utils_test.py .s.......s..........s.................
tests/settings_test.py ...........
tests/terminal_test.py ...
tests/utils_test.py ..............................................ss.......
tests/vdir_test.py x..
tests/vtimezone_test.py ..F
tests/ui/test_calendarwidget.py ..s
tests/ui/test_editor.py .
tests/ui/test_widgets.py .

=================================== FAILURES ===================================
______________________________ test_event_no_dst _______________________________

    def test_event_no_dst():
        """test the creation of a corect VTIMEZONE for timezones with no dst"""
        event_no_dst = _get_text('event_no_dst')
        cal_no_dst = _get_text('cal_no_dst')
        event = Event.fromString(event_no_dst, calendar='foobar', locale=LOCALE_BOGOTA)
>       assert normalize_component(event.raw) == normalize_component(cal_no_dst)
E       assert ('VCALENDAR',...enset())}))})) == ('VCALENDAR', ...enset())}))}))
E         At index 2 diff: frozenset({('VTIMEZONE', b'BEGIN:VTIMEZONE\r\nTZID:America/Bogota\r\nEND:VTIMEZONE\r\n', frozenset({('STANDARD', b'BEGIN:STANDARD\r\nDTSTART;VALUE=DATE-TIME:19930403T230000\r\nTZNAME:-05\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\n', frozenset())})), ('VEVENT', b'BEGIN:VEVENT\r\nSUMMARY:An Event\r\nDTSTART;TZID=America/Bogota;VALUE=DATE-TIME:20140409T093000\r\nDTEND;TZID=America/Bogota;VALUE=DATE-TIME:20140409T103000\r\nDTSTAMP;VALUE=DATE-TIME:20140401T234817Z\r\nUID:event_no_dst\r\nEND:VEVENT\r\n', frozenset())}) != frozenset({('VTIMEZONE', b'BEGIN:VTIMEZONE\r\nTZID:America/Bogota\r\nEND:VTIMEZONE\r\n', frozenset({('STANDARD', b'BEGIN:STANDARD\r\nDTSTART;VALUE=DATE-TIME:19930403T230000\r\nTZNAME:COT\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\n', frozenset())})), ('VEVENT', b'BEGIN:VEVENT\r\nSUMMARY:An Event\r\nDTSTART;TZID=America/Bogota;VALUE=DATE-TIME:20140409T093000\r\nDTEND;TZID=America/Bogota;VALUE=DATE-TIME:20140409T103000\r\nDTSTAMP;VALUE=DATE-TIME:20140401T234817Z\r\nUID:event_no_dst\r\nEND:VEVENT\r\n', frozenset())})
E         Use -v to get the full diff
E         Detailed information truncated (-7 more lines), use "-vv" to show

tests/event_test.py:307: AssertionError
_________________________________ test_bogota __________________________________

    def test_bogota():
        vbogota = [b'BEGIN:VTIMEZONE',
                   b'TZID:America/Bogota',
                   b'BEGIN:STANDARD',
                   b'DTSTART;VALUE=DATE-TIME:19930403T230000',
                   b'TZNAME:COT',
                   b'TZOFFSETFROM:-0400',
                   b'TZOFFSETTO:-0500',
                   b'END:STANDARD',
                   b'END:VTIMEZONE',
                   b'']
>       assert create_timezone(bogota, atime, atime).to_ical().split(b'\r\n') == vbogota
E       assert [b'BEGIN:VTIM...M:-0400', ...] == [b'BEGIN:VTIME...M:-0400', ...]
E         At index 4 diff: b'TZNAME:-05' != b'TZNAME:COT'
E         Use -v to get the full diff

tests/vtimezone_test.py:75: AssertionError
========== 2 failed, 249 passed, 7 skipped, 1 xfailed in 8.06 seconds ==========
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /«PKGBUILDDIR»/.pybuild/pythonX.Y_3.5/build; python3.5 -m pytest tests
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.5 returned exit code 13
debian/rules:26: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/«PKGBUILDDIR»'
debian/rules:6: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2


More information about the Python-apps-team mailing list