Package: pyrail
Version: 0.6.1-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: [email protected]

Dear Maintainer,

pyrail's test suite generates new DeprecationWarning output with Python
3.15 which causes pytest to fail the test suite. This causes a FTBFS
when rebuilding the current package and also causes the autopkgtests to
fail.

The DeprecationWarning does not come from pyrail's own source but from
a dependency; pyrail needs to ignore the DeprecationWarning in its
pytest config until the dependency updates.

//---

D: pybuild tools:297: invoking: cd 
/build/pyrail-36hWG7/pyrail-0.6.1/.pybuild/cpython3_3.15/build; python3.15 -m 
pytest -k "not test_get_stations and not test_get_stations and not 
test_get_liveboard and not test_get_connections and not test_get_vehicle and 
not test_get_composition and not test_get_disturbances and not 
test_liveboard_with_date_time"
============================= test session starts ==============================
platform linux -- Python 3.15.2, pytest-9.1.1, pluggy-1.6.0
rootdir: /build/pyrail-36hWG7/pyrail-0.6.1/.pybuild/cpython3_3.15/build
configfile: pyproject.toml
testpaths: tests
plugins: asyncio-1.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, 
asyncio_default_test_loop_scope=function
collected 0 items / 3 errors

==================================== ERRORS ====================================
_________________________ ERROR collecting tests/live __________________________
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1389: in _gcd_import
    ???
<frozen importlib._bootstrap>:1353: in _find_and_load
    ???
<frozen importlib._bootstrap>:1249: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:857: in _load_unlocked
    ???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:188: in exec_module
    exec(co, module.__dict__)
tests/live/conftest.py:14: in <module>
    from pyrail.irail import IRail
pyrail/__init__.py:14: in <module>
    from .irail import IRail
pyrail/irail.py:25: in <module>
    from pyrail.models import (
pyrail/models.py:62: in <module>
    class ApiResponse(DataClassORJSONMixin):
/usr/lib/python3/dist-packages/mashumaro/mixins/dict.py:26: in __init_subclass__
    compile_mixin_unpacker(cls, **builder_params["unpacker"])
/usr/lib/python3/dist-packages/mashumaro/core/meta/mixin.py:49: in 
compile_mixin_unpacker
    builder.add_unpack_method()
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:578: in 
add_unpack_method
    self._add_unpack_method_lines(method_name)
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:483: in 
_add_unpack_method_lines
    ).build(
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:1324: in 
build
    unpacked_value = UnpackerRegistry.get(
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/common.py:222: in get
    expr = packer(spec)
           ^^^^^^^^^^^^
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/unpack.py:1256: in 
unpack_collection
    if issubclass(spec.origin_type, typing.ByteString):  # type: ignore
                                    ^^^^^^^^^^^^^^^^^
/usr/lib/python3.15/typing.py:3907: in __getattr__
    warnings._deprecated(
/usr/lib/python3.15/_py_warnings.py:892: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'typing.ByteString' and 'collections.abc.ByteString' 
are deprecated and slated for removal in Python 3.17
_____________________ ERROR collecting tests/test_irail.py _____________________
tests/test_irail.py:19: in <module>
    import pyrail
pyrail/__init__.py:14: in <module>
    from .irail import IRail
pyrail/irail.py:25: in <module>
    from pyrail.models import (
pyrail/models.py:62: in <module>
    class ApiResponse(DataClassORJSONMixin):
/usr/lib/python3/dist-packages/mashumaro/mixins/dict.py:26: in __init_subclass__
    compile_mixin_unpacker(cls, **builder_params["unpacker"])
/usr/lib/python3/dist-packages/mashumaro/core/meta/mixin.py:49: in 
compile_mixin_unpacker
    builder.add_unpack_method()
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:578: in 
add_unpack_method
    self._add_unpack_method_lines(method_name)
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:483: in 
_add_unpack_method_lines
    ).build(
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:1324: in 
build
    unpacked_value = UnpackerRegistry.get(
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/common.py:222: in get
    expr = packer(spec)
           ^^^^^^^^^^^^
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/unpack.py:1256: in 
unpack_collection
    if issubclass(spec.origin_type, typing.ByteString):  # type: ignore
                                    ^^^^^^^^^^^^^^^^^
/usr/lib/python3.15/typing.py:3907: in __getattr__
    warnings._deprecated(
/usr/lib/python3.15/_py_warnings.py:892: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'typing.ByteString' and 'collections.abc.ByteString' 
are deprecated and slated for removal in Python 3.17
________________ ERROR collecting tests/test_live_api_helper.py ________________
tests/test_live_api_helper.py:11: in <module>
    from tests.live.live_api import ATTEMPTS, INCOMPATIBLE, REJECTED, 
UNAVAILABLE, LiveApi
tests/live/live_api.py:17: in <module>
    from pyrail.irail import IRail
pyrail/__init__.py:14: in <module>
    from .irail import IRail
pyrail/irail.py:25: in <module>
    from pyrail.models import (
pyrail/models.py:62: in <module>
    class ApiResponse(DataClassORJSONMixin):
/usr/lib/python3/dist-packages/mashumaro/mixins/dict.py:26: in __init_subclass__
    compile_mixin_unpacker(cls, **builder_params["unpacker"])
/usr/lib/python3/dist-packages/mashumaro/core/meta/mixin.py:49: in 
compile_mixin_unpacker
    builder.add_unpack_method()
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:578: in 
add_unpack_method
    self._add_unpack_method_lines(method_name)
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:483: in 
_add_unpack_method_lines
    ).build(
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:1324: in 
build
    unpacked_value = UnpackerRegistry.get(
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/common.py:222: in get
    expr = packer(spec)
           ^^^^^^^^^^^^
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/unpack.py:1256: in 
unpack_collection
    if issubclass(spec.origin_type, typing.ByteString):  # type: ignore
                                    ^^^^^^^^^^^^^^^^^
/usr/lib/python3.15/typing.py:3907: in __getattr__
    warnings._deprecated(
/usr/lib/python3.15/_py_warnings.py:892: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'typing.ByteString' and 'collections.abc.ByteString' 
are deprecated and slated for removal in Python 3.17
=========================== short test summary info ============================
ERROR tests/live - DeprecationWarning: 'typing.ByteString' and 'collections.a...
ERROR tests/test_irail.py - DeprecationWarning: 'typing.ByteString' and 'coll...
ERROR tests/test_live_api_helper.py - DeprecationWarning: 'typing.ByteString'...
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 3 errors in 0.42s ===============================

---//

regards
Stuart

Reply via email to