• Bug#1100286: python-rokuecp: FTBFS: E AssertionError: assert None == 'm

    From Santiago Vila@21:1/5 to All on Wed Mar 12 17:40:15 2025
    Package: src:python-rokuecp
    Version: 0.19.4-2
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

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

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --buildsystem=pybuild
    debian/rules override_dh_auto_clean
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_auto_clean
    rm -rf rokuecp.egg-info/
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_autoreconf_clean -O--buildsystem=pybuild
    dh_clean -O--buildsystem=pybuild
    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
    dh_auto_build -O--buildsystem=pybuild
    I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module
    I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rokuecp
    * Building wheel...
    The "poetry.dev-dependencies" section is deprecated and will be removed in a future version. Use "poetry.group.dev.dependencies" instead.
    Successfully built rokuecp-0.0.0-py3-none-any.whl
    I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module
    dh_auto_test -O--buildsystem=pybuild
    I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rokuecp/build; python3.13 -m pytest --no-cov
    /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
    The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to
    avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

    warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) ============================= test session starts ==============================
    platform linux -- Python 3.13.2, pytest-8.3.5, pluggy-1.5.0
    rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rokuecp/build
    configfile: pyproject.toml
    plugins: asyncio-0.25.1, pytest_freezer-0.4.9, aresponses-3.0.0, cov-5.0.0 asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None
    collected 74 items

    tests/test_client.py .............. [ 18%] tests/test_helpers.py .F.... [ 27%] tests/test_interface.py ................................. [ 71%] tests/test_models.py ..................... [100%]

    =================================== FAILURES ===================================
    ___________________________ test_guess_stream_format ___________________________

    def test_guess_stream_format() -> None:
    """Test the guess_stream_format helper."""
    assert guess_stream_format("/path/media.media") is None
    assert guess_stream_format("/path/media.txt") is None

    assert guess_stream_format("/path/media.mp4", "video/mp4") == "mp4"
    assert guess_stream_format("/path/media.mp4") == "mp4"
    assert guess_stream_format("/path/media.m4v") == "mp4"
    assert guess_stream_format("/path/media.mov") == "mp4"
    assert guess_stream_format("/path/media.mkv") == "mkv"
    E AssertionError: assert None == 'mkv'
    E + where None = guess_stream_format('/path/media.mkv')

    tests/test_helpers.py:41: AssertionError
    =========================== short test summary info ============================
    FAILED tests/test_helpers.py::test_guess_stream_format - AssertionError: asse...
    ========================= 1 failed, 73 passed in 1.28s =========================
    E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rokuecp/build; python3.13 -m pytest --no-cov
    dh_auto_test: error: pybuild --test -i python{version} -p 3.13 returned exit code 13
    make: *** [debian/rules:8: 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/202503/

    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 add an affects on src:python-rokuecp, so that this is still visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)