Source: python-recurring-ical-events
Version: 2.0.2-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230925 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:291: python3.11 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:291: /usr/bin/python3 setup.py build 
> running build
> running build_py
> copying recurring_ical_events.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:291: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; 
> python3.11 -m pytest -k "not 
> test_zoneinfo_must_be_installed_if_it_is_possible"
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> collected 760 items / 1 deselected / 759 selected
> 
> test/test_at_function.py .................................               [  
> 4%]
> test/test_convert_inputs.py ..................                           [  
> 6%]
> test/test_daylight_saving_time.py ......                                 [  
> 7%]
> test/test_deleted_entries.py ...                                         [  
> 7%]
> test/test_duration.py ................................................   [ 
> 14%]
> test/test_event_values_and_edits.py ......................               [ 
> 17%]
> test/test_examples.py .................................................. [ 
> 23%]
> ..................................                                       [ 
> 28%]
> test/test_issue_101_select_components.py ............................... [ 
> 32%]
> ....................                                                     [ 
> 34%]
> test/test_issue_107_omitting_last_event.py ...                           [ 
> 35%]
> test/test_issue_15.py ...                                                [ 
> 35%]
> test/test_issue_18_cancel_status.py ..................                   [ 
> 38%]
> test/test_issue_20_exdate_ignored.py ................................... [ 
> 42%]
> ...................                                                      [ 
> 45%]
> test/test_issue_27.py ......                                             [ 
> 45%]
> test/test_issue_28_timezone_with_z.py ...                                [ 
> 46%]
> test/test_issue_36_recurrence_ID_format.py .........                     [ 
> 47%]
> test/test_issue_4.py ...............                                     [ 
> 49%]
> test/test_issue_44_day_event_reported_twice.py .....................     [ 
> 52%]
> test/test_issue_48_daylight.py ..................                        [ 
> 54%]
> test/test_issue_48_dst.py .........                                      [ 
> 55%]
> test/test_issue_61.py ...                                                [ 
> 56%]
> test/test_issue_62_moved_event.py .........                              [ 
> 57%]
> test/test_issue_6_copy_subcomponents.py ......                           [ 
> 58%]
> test/test_issue_7_datetime_and_date_start_stop.py ...............        [ 
> 60%]
> test/test_issue_86_x_wr_timezone_but_no_tzid_in_dt.py ...                [ 
> 60%]
> test/test_issue_97_simple_recurrent_todos_and_journals.py .............. [ 
> 62%]
> .............                                                            [ 
> 64%]
> test/test_keep_recurrence_attributes.py .........                        [ 
> 65%]
> test/test_properties.py ..................                               [ 
> 67%]
> test/test_rdate.py ................................................s     [ 
> 74%]
> test/test_readme.py .                                                    [ 
> 74%]
> test/test_recurrence_sequence_number.py ...                              [ 
> 74%]
> test/test_repeated_properties.py ...                                     [ 
> 75%]
> test/test_repetitions_do_not_change.py ...............                   [ 
> 77%]
> test/test_simple_recurrent_events.py ...........................         [ 
> 80%]
> test/test_single_events.py ...............                               [ 
> 82%]
> test/test_time_arguments.py ........                                     [ 
> 83%]
> test/test_time_span_contains_event.py .................................  [ 
> 88%]
> test/test_time_zones_differ.py .F......F.F......F.F......F               [ 
> 91%]
> test/test_x_wr_timezone.py ...........................................   [ 
> 97%]
> test/test_zero_size_events.py .........                                  [ 
> 98%]
> test/test_zoneinfo_issue_57.py ............                              
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _ 
> test_include_events_if_the_time_zone_differs[Calendars-date1-24-US/Eastern-0-three_events]
>  _
> 
> calendars = <conftest.Calendars object at 0x7f9f7637d9d0>, date = (2019, 3, 4)
> hours = 24, timezone = 'US/Eastern', number_of_events = 0
> calendar_name = 'three_events'
> 
>     
> @pytest.mark.parametrize("date,hours,timezone,number_of_events,calendar_name",
>  [
>     # DTSTART;TZID=Europe/Berlin:20190304T000000
>     # time zone offset 6:07:00 between Europe/Berlin and Asia/Ho_Chi_Minh
>         ((2019,3,4), 24, "Europe/Berlin", 1, "three_events"),
>         ((2019,3,4), 24, "US/Eastern", 0, "three_events"),
>         ((2019,3,4), 24, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>         ((2019,3,4), 1, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 6, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 7, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>     # events that have no time zone, New Year
>         ((2019,1,1), 1, 'Europe/Berlin', 1, "Germany"),
>         ((2019,1,1), 1, 'Asia/Ho_Chi_Minh', 1, "Germany"),
>         ((2019,1,1), 1, 'US/Eastern', 1, "Germany"),
>     ])
>     def test_include_events_if_the_time_zone_differs(calendars, date, hours, 
> timezone, number_of_events, calendar_name):
>         """When the time zone is different, events can be included or
>         excluded because they are in another time zone.
>         """
> >       tzinfo = pytz.timezone(timezone)
> 
> test/test_time_zones_differ.py:24: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> zone = 'US/Eastern'
> 
>     def timezone(zone):
>         r''' Return a datetime.tzinfo implementation for the given timezone
>     
>         >>> from datetime import datetime, timedelta
>         >>> utc = timezone('UTC')
>         >>> eastern = timezone('US/Eastern')
>         >>> eastern.zone
>         'US/Eastern'
>         >>> timezone(unicode('US/Eastern')) is eastern
>         True
>         >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc)
>         >>> loc_dt = utc_dt.astimezone(eastern)
>         >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
>         >>> loc_dt.strftime(fmt)
>         '2002-10-27 01:00:00 EST (-0500)'
>         >>> (loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 00:50:00 EST (-0500)'
>         >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:50:00 EDT (-0400)'
>         >>> (loc_dt + timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:10:00 EST (-0500)'
>     
>         Raises UnknownTimeZoneError if passed an unknown zone.
>     
>         >>> try:
>         ...     timezone('Asia/Shangri-La')
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         >>> try:
>         ...     timezone(unicode('\N{TRADE MARK SIGN}'))
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         '''
>         if zone is None:
>             raise UnknownTimeZoneError(None)
>     
>         if zone.upper() == 'UTC':
>             return utc
>     
>         try:
>             zone = ascii(zone)
>         except UnicodeEncodeError:
>             # All valid timezones are ASCII
>             raise UnknownTimeZoneError(zone)
>     
>         zone = _case_insensitive_zone_lookup(_unmunge_zone(zone))
>         if zone not in _tzinfo_cache:
>             if zone in all_timezones_set:  # noqa
>                 fp = open_resource(zone)
>                 try:
>                     _tzinfo_cache[zone] = build_tzinfo(zone, fp)
>                 finally:
>                     fp.close()
>             else:
> >               raise UnknownTimeZoneError(zone)
> E               pytz.exceptions.UnknownTimeZoneError: 'US/Eastern'
> 
> /usr/lib/python3/dist-packages/pytz/__init__.py:202: UnknownTimeZoneError
> _ 
> test_include_events_if_the_time_zone_differs[Calendars-date8-1-US/Eastern-1-Germany]
>  _
> 
> calendars = <conftest.Calendars object at 0x7f9f7637d9d0>, date = (2019, 1, 1)
> hours = 1, timezone = 'US/Eastern', number_of_events = 1
> calendar_name = 'Germany'
> 
>     
> @pytest.mark.parametrize("date,hours,timezone,number_of_events,calendar_name",
>  [
>     # DTSTART;TZID=Europe/Berlin:20190304T000000
>     # time zone offset 6:07:00 between Europe/Berlin and Asia/Ho_Chi_Minh
>         ((2019,3,4), 24, "Europe/Berlin", 1, "three_events"),
>         ((2019,3,4), 24, "US/Eastern", 0, "three_events"),
>         ((2019,3,4), 24, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>         ((2019,3,4), 1, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 6, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 7, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>     # events that have no time zone, New Year
>         ((2019,1,1), 1, 'Europe/Berlin', 1, "Germany"),
>         ((2019,1,1), 1, 'Asia/Ho_Chi_Minh', 1, "Germany"),
>         ((2019,1,1), 1, 'US/Eastern', 1, "Germany"),
>     ])
>     def test_include_events_if_the_time_zone_differs(calendars, date, hours, 
> timezone, number_of_events, calendar_name):
>         """When the time zone is different, events can be included or
>         excluded because they are in another time zone.
>         """
> >       tzinfo = pytz.timezone(timezone)
> 
> test/test_time_zones_differ.py:24: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> zone = 'US/Eastern'
> 
>     def timezone(zone):
>         r''' Return a datetime.tzinfo implementation for the given timezone
>     
>         >>> from datetime import datetime, timedelta
>         >>> utc = timezone('UTC')
>         >>> eastern = timezone('US/Eastern')
>         >>> eastern.zone
>         'US/Eastern'
>         >>> timezone(unicode('US/Eastern')) is eastern
>         True
>         >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc)
>         >>> loc_dt = utc_dt.astimezone(eastern)
>         >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
>         >>> loc_dt.strftime(fmt)
>         '2002-10-27 01:00:00 EST (-0500)'
>         >>> (loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 00:50:00 EST (-0500)'
>         >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:50:00 EDT (-0400)'
>         >>> (loc_dt + timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:10:00 EST (-0500)'
>     
>         Raises UnknownTimeZoneError if passed an unknown zone.
>     
>         >>> try:
>         ...     timezone('Asia/Shangri-La')
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         >>> try:
>         ...     timezone(unicode('\N{TRADE MARK SIGN}'))
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         '''
>         if zone is None:
>             raise UnknownTimeZoneError(None)
>     
>         if zone.upper() == 'UTC':
>             return utc
>     
>         try:
>             zone = ascii(zone)
>         except UnicodeEncodeError:
>             # All valid timezones are ASCII
>             raise UnknownTimeZoneError(zone)
>     
>         zone = _case_insensitive_zone_lookup(_unmunge_zone(zone))
>         if zone not in _tzinfo_cache:
>             if zone in all_timezones_set:  # noqa
>                 fp = open_resource(zone)
>                 try:
>                     _tzinfo_cache[zone] = build_tzinfo(zone, fp)
>                 finally:
>                     fp.close()
>             else:
> >               raise UnknownTimeZoneError(zone)
> E               pytz.exceptions.UnknownTimeZoneError: 'US/Eastern'
> 
> /usr/lib/python3/dist-packages/pytz/__init__.py:202: UnknownTimeZoneError
> _ 
> test_include_events_if_the_time_zone_differs[ReversedCalendars-date1-24-US/Eastern-0-three_events]
>  _
> 
> calendars = <conftest.ReversedCalendars object at 0x7f9f76568590>
> date = (2019, 3, 4), hours = 24, timezone = 'US/Eastern', number_of_events = 0
> calendar_name = 'three_events'
> 
>     
> @pytest.mark.parametrize("date,hours,timezone,number_of_events,calendar_name",
>  [
>     # DTSTART;TZID=Europe/Berlin:20190304T000000
>     # time zone offset 6:07:00 between Europe/Berlin and Asia/Ho_Chi_Minh
>         ((2019,3,4), 24, "Europe/Berlin", 1, "three_events"),
>         ((2019,3,4), 24, "US/Eastern", 0, "three_events"),
>         ((2019,3,4), 24, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>         ((2019,3,4), 1, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 6, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 7, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>     # events that have no time zone, New Year
>         ((2019,1,1), 1, 'Europe/Berlin', 1, "Germany"),
>         ((2019,1,1), 1, 'Asia/Ho_Chi_Minh', 1, "Germany"),
>         ((2019,1,1), 1, 'US/Eastern', 1, "Germany"),
>     ])
>     def test_include_events_if_the_time_zone_differs(calendars, date, hours, 
> timezone, number_of_events, calendar_name):
>         """When the time zone is different, events can be included or
>         excluded because they are in another time zone.
>         """
> >       tzinfo = pytz.timezone(timezone)
> 
> test/test_time_zones_differ.py:24: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> zone = 'US/Eastern'
> 
>     def timezone(zone):
>         r''' Return a datetime.tzinfo implementation for the given timezone
>     
>         >>> from datetime import datetime, timedelta
>         >>> utc = timezone('UTC')
>         >>> eastern = timezone('US/Eastern')
>         >>> eastern.zone
>         'US/Eastern'
>         >>> timezone(unicode('US/Eastern')) is eastern
>         True
>         >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc)
>         >>> loc_dt = utc_dt.astimezone(eastern)
>         >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
>         >>> loc_dt.strftime(fmt)
>         '2002-10-27 01:00:00 EST (-0500)'
>         >>> (loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 00:50:00 EST (-0500)'
>         >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:50:00 EDT (-0400)'
>         >>> (loc_dt + timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:10:00 EST (-0500)'
>     
>         Raises UnknownTimeZoneError if passed an unknown zone.
>     
>         >>> try:
>         ...     timezone('Asia/Shangri-La')
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         >>> try:
>         ...     timezone(unicode('\N{TRADE MARK SIGN}'))
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         '''
>         if zone is None:
>             raise UnknownTimeZoneError(None)
>     
>         if zone.upper() == 'UTC':
>             return utc
>     
>         try:
>             zone = ascii(zone)
>         except UnicodeEncodeError:
>             # All valid timezones are ASCII
>             raise UnknownTimeZoneError(zone)
>     
>         zone = _case_insensitive_zone_lookup(_unmunge_zone(zone))
>         if zone not in _tzinfo_cache:
>             if zone in all_timezones_set:  # noqa
>                 fp = open_resource(zone)
>                 try:
>                     _tzinfo_cache[zone] = build_tzinfo(zone, fp)
>                 finally:
>                     fp.close()
>             else:
> >               raise UnknownTimeZoneError(zone)
> E               pytz.exceptions.UnknownTimeZoneError: 'US/Eastern'
> 
> /usr/lib/python3/dist-packages/pytz/__init__.py:202: UnknownTimeZoneError
> _ 
> test_include_events_if_the_time_zone_differs[ReversedCalendars-date8-1-US/Eastern-1-Germany]
>  _
> 
> calendars = <conftest.ReversedCalendars object at 0x7f9f76568590>
> date = (2019, 1, 1), hours = 1, timezone = 'US/Eastern', number_of_events = 1
> calendar_name = 'Germany'
> 
>     
> @pytest.mark.parametrize("date,hours,timezone,number_of_events,calendar_name",
>  [
>     # DTSTART;TZID=Europe/Berlin:20190304T000000
>     # time zone offset 6:07:00 between Europe/Berlin and Asia/Ho_Chi_Minh
>         ((2019,3,4), 24, "Europe/Berlin", 1, "three_events"),
>         ((2019,3,4), 24, "US/Eastern", 0, "three_events"),
>         ((2019,3,4), 24, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>         ((2019,3,4), 1, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 6, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 7, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>     # events that have no time zone, New Year
>         ((2019,1,1), 1, 'Europe/Berlin', 1, "Germany"),
>         ((2019,1,1), 1, 'Asia/Ho_Chi_Minh', 1, "Germany"),
>         ((2019,1,1), 1, 'US/Eastern', 1, "Germany"),
>     ])
>     def test_include_events_if_the_time_zone_differs(calendars, date, hours, 
> timezone, number_of_events, calendar_name):
>         """When the time zone is different, events can be included or
>         excluded because they are in another time zone.
>         """
> >       tzinfo = pytz.timezone(timezone)
> 
> test/test_time_zones_differ.py:24: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> zone = 'US/Eastern'
> 
>     def timezone(zone):
>         r''' Return a datetime.tzinfo implementation for the given timezone
>     
>         >>> from datetime import datetime, timedelta
>         >>> utc = timezone('UTC')
>         >>> eastern = timezone('US/Eastern')
>         >>> eastern.zone
>         'US/Eastern'
>         >>> timezone(unicode('US/Eastern')) is eastern
>         True
>         >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc)
>         >>> loc_dt = utc_dt.astimezone(eastern)
>         >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
>         >>> loc_dt.strftime(fmt)
>         '2002-10-27 01:00:00 EST (-0500)'
>         >>> (loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 00:50:00 EST (-0500)'
>         >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:50:00 EDT (-0400)'
>         >>> (loc_dt + timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:10:00 EST (-0500)'
>     
>         Raises UnknownTimeZoneError if passed an unknown zone.
>     
>         >>> try:
>         ...     timezone('Asia/Shangri-La')
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         >>> try:
>         ...     timezone(unicode('\N{TRADE MARK SIGN}'))
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         '''
>         if zone is None:
>             raise UnknownTimeZoneError(None)
>     
>         if zone.upper() == 'UTC':
>             return utc
>     
>         try:
>             zone = ascii(zone)
>         except UnicodeEncodeError:
>             # All valid timezones are ASCII
>             raise UnknownTimeZoneError(zone)
>     
>         zone = _case_insensitive_zone_lookup(_unmunge_zone(zone))
>         if zone not in _tzinfo_cache:
>             if zone in all_timezones_set:  # noqa
>                 fp = open_resource(zone)
>                 try:
>                     _tzinfo_cache[zone] = build_tzinfo(zone, fp)
>                 finally:
>                     fp.close()
>             else:
> >               raise UnknownTimeZoneError(zone)
> E               pytz.exceptions.UnknownTimeZoneError: 'US/Eastern'
> 
> /usr/lib/python3/dist-packages/pytz/__init__.py:202: UnknownTimeZoneError
> _ 
> test_include_events_if_the_time_zone_differs[ZoneInfoCalendars-date1-24-US/Eastern-0-three_events]
>  _
> 
> calendars = <conftest.ZoneInfoCalendars object at 0x7f9f76a48990>
> date = (2019, 3, 4), hours = 24, timezone = 'US/Eastern', number_of_events = 0
> calendar_name = 'three_events'
> 
>     
> @pytest.mark.parametrize("date,hours,timezone,number_of_events,calendar_name",
>  [
>     # DTSTART;TZID=Europe/Berlin:20190304T000000
>     # time zone offset 6:07:00 between Europe/Berlin and Asia/Ho_Chi_Minh
>         ((2019,3,4), 24, "Europe/Berlin", 1, "three_events"),
>         ((2019,3,4), 24, "US/Eastern", 0, "three_events"),
>         ((2019,3,4), 24, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>         ((2019,3,4), 1, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 6, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 7, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>     # events that have no time zone, New Year
>         ((2019,1,1), 1, 'Europe/Berlin', 1, "Germany"),
>         ((2019,1,1), 1, 'Asia/Ho_Chi_Minh', 1, "Germany"),
>         ((2019,1,1), 1, 'US/Eastern', 1, "Germany"),
>     ])
>     def test_include_events_if_the_time_zone_differs(calendars, date, hours, 
> timezone, number_of_events, calendar_name):
>         """When the time zone is different, events can be included or
>         excluded because they are in another time zone.
>         """
> >       tzinfo = pytz.timezone(timezone)
> 
> test/test_time_zones_differ.py:24: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> zone = 'US/Eastern'
> 
>     def timezone(zone):
>         r''' Return a datetime.tzinfo implementation for the given timezone
>     
>         >>> from datetime import datetime, timedelta
>         >>> utc = timezone('UTC')
>         >>> eastern = timezone('US/Eastern')
>         >>> eastern.zone
>         'US/Eastern'
>         >>> timezone(unicode('US/Eastern')) is eastern
>         True
>         >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc)
>         >>> loc_dt = utc_dt.astimezone(eastern)
>         >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
>         >>> loc_dt.strftime(fmt)
>         '2002-10-27 01:00:00 EST (-0500)'
>         >>> (loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 00:50:00 EST (-0500)'
>         >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:50:00 EDT (-0400)'
>         >>> (loc_dt + timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:10:00 EST (-0500)'
>     
>         Raises UnknownTimeZoneError if passed an unknown zone.
>     
>         >>> try:
>         ...     timezone('Asia/Shangri-La')
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         >>> try:
>         ...     timezone(unicode('\N{TRADE MARK SIGN}'))
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         '''
>         if zone is None:
>             raise UnknownTimeZoneError(None)
>     
>         if zone.upper() == 'UTC':
>             return utc
>     
>         try:
>             zone = ascii(zone)
>         except UnicodeEncodeError:
>             # All valid timezones are ASCII
>             raise UnknownTimeZoneError(zone)
>     
>         zone = _case_insensitive_zone_lookup(_unmunge_zone(zone))
>         if zone not in _tzinfo_cache:
>             if zone in all_timezones_set:  # noqa
>                 fp = open_resource(zone)
>                 try:
>                     _tzinfo_cache[zone] = build_tzinfo(zone, fp)
>                 finally:
>                     fp.close()
>             else:
> >               raise UnknownTimeZoneError(zone)
> E               pytz.exceptions.UnknownTimeZoneError: 'US/Eastern'
> 
> /usr/lib/python3/dist-packages/pytz/__init__.py:202: UnknownTimeZoneError
> _ 
> test_include_events_if_the_time_zone_differs[ZoneInfoCalendars-date8-1-US/Eastern-1-Germany]
>  _
> 
> calendars = <conftest.ZoneInfoCalendars object at 0x7f9f76a48990>
> date = (2019, 1, 1), hours = 1, timezone = 'US/Eastern', number_of_events = 1
> calendar_name = 'Germany'
> 
>     
> @pytest.mark.parametrize("date,hours,timezone,number_of_events,calendar_name",
>  [
>     # DTSTART;TZID=Europe/Berlin:20190304T000000
>     # time zone offset 6:07:00 between Europe/Berlin and Asia/Ho_Chi_Minh
>         ((2019,3,4), 24, "Europe/Berlin", 1, "three_events"),
>         ((2019,3,4), 24, "US/Eastern", 0, "three_events"),
>         ((2019,3,4), 24, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>         ((2019,3,4), 1, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 6, 'Asia/Ho_Chi_Minh', 0, "three_events"),
>         ((2019,3,4), 7, 'Asia/Ho_Chi_Minh', 1, "three_events"),
>     # events that have no time zone, New Year
>         ((2019,1,1), 1, 'Europe/Berlin', 1, "Germany"),
>         ((2019,1,1), 1, 'Asia/Ho_Chi_Minh', 1, "Germany"),
>         ((2019,1,1), 1, 'US/Eastern', 1, "Germany"),
>     ])
>     def test_include_events_if_the_time_zone_differs(calendars, date, hours, 
> timezone, number_of_events, calendar_name):
>         """When the time zone is different, events can be included or
>         excluded because they are in another time zone.
>         """
> >       tzinfo = pytz.timezone(timezone)
> 
> test/test_time_zones_differ.py:24: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> zone = 'US/Eastern'
> 
>     def timezone(zone):
>         r''' Return a datetime.tzinfo implementation for the given timezone
>     
>         >>> from datetime import datetime, timedelta
>         >>> utc = timezone('UTC')
>         >>> eastern = timezone('US/Eastern')
>         >>> eastern.zone
>         'US/Eastern'
>         >>> timezone(unicode('US/Eastern')) is eastern
>         True
>         >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc)
>         >>> loc_dt = utc_dt.astimezone(eastern)
>         >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
>         >>> loc_dt.strftime(fmt)
>         '2002-10-27 01:00:00 EST (-0500)'
>         >>> (loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 00:50:00 EST (-0500)'
>         >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:50:00 EDT (-0400)'
>         >>> (loc_dt + timedelta(minutes=10)).strftime(fmt)
>         '2002-10-27 01:10:00 EST (-0500)'
>     
>         Raises UnknownTimeZoneError if passed an unknown zone.
>     
>         >>> try:
>         ...     timezone('Asia/Shangri-La')
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         >>> try:
>         ...     timezone(unicode('\N{TRADE MARK SIGN}'))
>         ... except UnknownTimeZoneError:
>         ...     print('Unknown')
>         Unknown
>     
>         '''
>         if zone is None:
>             raise UnknownTimeZoneError(None)
>     
>         if zone.upper() == 'UTC':
>             return utc
>     
>         try:
>             zone = ascii(zone)
>         except UnicodeEncodeError:
>             # All valid timezones are ASCII
>             raise UnknownTimeZoneError(zone)
>     
>         zone = _case_insensitive_zone_lookup(_unmunge_zone(zone))
>         if zone not in _tzinfo_cache:
>             if zone in all_timezones_set:  # noqa
>                 fp = open_resource(zone)
>                 try:
>                     _tzinfo_cache[zone] = build_tzinfo(zone, fp)
>                 finally:
>                     fp.close()
>             else:
> >               raise UnknownTimeZoneError(zone)
> E               pytz.exceptions.UnknownTimeZoneError: 'US/Eastern'
> 
> /usr/lib/python3/dist-packages/pytz/__init__.py:202: UnknownTimeZoneError
> =========================== short test summary info 
> ============================
> FAILED 
> test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[Calendars-date1-24-US/Eastern-0-three_events]
> FAILED 
> test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[Calendars-date8-1-US/Eastern-1-Germany]
> FAILED 
> test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[ReversedCalendars-date1-24-US/Eastern-0-three_events]
> FAILED 
> test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[ReversedCalendars-date8-1-US/Eastern-1-Germany]
> FAILED 
> test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[ZoneInfoCalendars-date1-24-US/Eastern-0-three_events]
> FAILED 
> test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[ZoneInfoCalendars-date8-1-US/Eastern-1-Germany]
> ============ 6 failed, 752 passed, 1 skipped, 1 deselected in 6.71s 
> ============
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; python3.11 -m pytest -k "not 
> test_zoneinfo_must_be_installed_if_it_is_possible"
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/09/25/python-recurring-ical-events_2.0.2-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to