Package: src:python-recurring-ical-events
Version: 2.2.1-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 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:311: python3.12 setup.py config
/<<PKGBUILDDIR>>/setup.py:5: SetuptoolsDeprecationWarning: The test command is 
disabled and references to it are deprecated.
!!

        
********************************************************************************
        Please remove any references to `setuptools.command.test` in all 
supported versions of the affected package.

        By 2024-Nov-15, you need to update your project and remove deprecated 
calls
        or your builds will no longer be supported.
        
********************************************************************************

!!
  from setuptools.command.test import test as TestCommandBase
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: 
Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build
/<<PKGBUILDDIR>>/setup.py:5: SetuptoolsDeprecationWarning: The test command is 
disabled and references to it are deprecated.
!!

        
********************************************************************************
        Please remove any references to `setuptools.command.test` in all 
supported versions of the affected package.

        By 2024-Nov-15, you need to update your project and remove deprecated 
calls
        or your builds will no longer be supported.
        
********************************************************************************

!!
  from setuptools.command.test import test as TestCommandBase
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: 
Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running build
running build_py
copying recurring_ical_events.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m 
pytest -k "not test_zoneinfo_must_be_installed_if_it_is_possible"
============================= test session starts ==============================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.3.0
collected 860 items / 1 deselected / 859 selected

test/test_after.py ...................................................ss [  6%]
                                                                         [  6%]
test/test_at_function.py .................................               [ 10%]
test/test_convert_inputs.py ..................                           [ 12%]
test/test_daylight_saving_time.py ......                                 [ 12%]
test/test_deleted_entries.py ...                                         [ 13%]
test/test_duration.py ................................................   [ 18%]
test/test_event_values_and_edits.py ......................               [ 21%]
test/test_examples.py .................................................. [ 27%]
.....................................                                    [ 31%]
test/test_issue_101_select_components.py ............................... [ 35%]
....................                                                     [ 37%]
test/test_issue_107_omitting_last_event.py ...                           [ 37%]
test/test_issue_113_period_in_rdate.py ......                            [ 38%]
test/test_issue_117_until_before_dtstart.py ...                          [ 38%]
test/test_issue_128_only_first_event.py .........                        [ 39%]
test/test_issue_15.py ...                                                [ 40%]
test/test_issue_18_cancel_status.py ..................                   [ 42%]
test/test_issue_20_exdate_ignored.py ................................... [ 46%]
...................                                                      [ 48%]
test/test_issue_27.py ......                                             [ 49%]
test/test_issue_28_timezone_with_z.py ...                                [ 49%]
test/test_issue_36_recurrence_ID_format.py .........                     [ 50%]
test/test_issue_4.py ...............                                     [ 52%]
test/test_issue_44_day_event_reported_twice.py .....................     [ 54%]
test/test_issue_48_daylight.py ..................                        [ 56%]
test/test_issue_48_dst.py .........                                      [ 57%]
test/test_issue_61.py ...                                                [ 58%]
test/test_issue_62_moved_event.py .................................      [ 62%]
test/test_issue_6_copy_subcomponents.py ......                           [ 62%]
test/test_issue_7_datetime_and_date_start_stop.py ...............        [ 64%]
test/test_issue_86_x_wr_timezone_but_no_tzid_in_dt.py ...                [ 64%]
test/test_issue_97_simple_recurrent_todos_and_journals.py .............. [ 66%]
.............                                                            [ 68%]
test/test_keep_recurrence_attributes.py .........                        [ 69%]
test/test_multiple_rrule.py ...                                          [ 69%]
test/test_properties.py ..................                               [ 71%]
test/test_rdate.py ................................................      [ 77%]
test/test_readme.py .                                                    [ 77%]
test/test_recurrence_sequence_number.py ...                              [ 77%]
test/test_repeated_properties.py ...                                     [ 77%]
test/test_repetitions_do_not_change.py ...............                   [ 79%]
test/test_simple_recurrent_events.py ...........................         [ 82%]
test/test_single_events.py ...............                               [ 84%]
test/test_time_arguments.py ........                                     [ 85%]
test/test_time_span_contains_event.py .................................  [ 89%]
test/test_time_zones_differ.py .F......F.F......F.F......F               [ 92%]
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-EST-0-three_events]
 _

calendars = <conftest.Calendars object at 0x7f9e989288c0>, date = (2019, 3, 4)
hours = 24, timezone = 'EST', 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, "EST", 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, 'EST', 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 = 'EST'

    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: 'EST'

/usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError
_ test_include_events_if_the_time_zone_differs[Calendars-date8-1-EST-1-Germany] 
_

calendars = <conftest.Calendars object at 0x7f9e989288c0>, date = (2019, 1, 1)
hours = 1, timezone = 'EST', 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, "EST", 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, 'EST', 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 = 'EST'

    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: 'EST'

/usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError
_ 
test_include_events_if_the_time_zone_differs[ReversedCalendars-date1-24-EST-0-three_events]
 _

calendars = <conftest.ReversedCalendars object at 0x7f9e9892a570>
date = (2019, 3, 4), hours = 24, timezone = 'EST', 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, "EST", 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, 'EST', 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 = 'EST'

    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: 'EST'

/usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError
_ 
test_include_events_if_the_time_zone_differs[ReversedCalendars-date8-1-EST-1-Germany]
 _

calendars = <conftest.ReversedCalendars object at 0x7f9e9892a570>
date = (2019, 1, 1), hours = 1, timezone = 'EST', 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, "EST", 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, 'EST', 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 = 'EST'

    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: 'EST'

/usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError
_ 
test_include_events_if_the_time_zone_differs[ZoneInfoCalendars-date1-24-EST-0-three_events]
 _

calendars = <conftest.ZoneInfoCalendars object at 0x7f9e98addb50>
date = (2019, 3, 4), hours = 24, timezone = 'EST', 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, "EST", 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, 'EST', 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 = 'EST'

    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: 'EST'

/usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError
_ 
test_include_events_if_the_time_zone_differs[ZoneInfoCalendars-date8-1-EST-1-Germany]
 _

calendars = <conftest.ZoneInfoCalendars object at 0x7f9e98addb50>
date = (2019, 1, 1), hours = 1, timezone = 'EST', 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, "EST", 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, 'EST', 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 = 'EST'

    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: 'EST'

/usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError
=========================== short test summary info ============================
FAILED 
test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[Calendars-date1-24-EST-0-three_events]
FAILED 
test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[Calendars-date8-1-EST-1-Germany]
FAILED 
test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[ReversedCalendars-date1-24-EST-0-three_events]
FAILED 
test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[ReversedCalendars-date8-1-EST-1-Germany]
FAILED 
test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[ZoneInfoCalendars-date1-24-EST-0-three_events]
FAILED 
test/test_time_zones_differ.py::test_include_events_if_the_time_zone_differs[ZoneInfoCalendars-date8-1-EST-1-Germany]
============ 6 failed, 851 passed, 2 skipped, 1 deselected in 3.89s ============
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -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.12 
returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

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

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 could not 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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to