#1102907 fix debmutate 0.72vversion check_fail

#1102907#5
Date:
2025-04-13 05:42:39 UTC
From:
To:
Dear Maintainer,

I'd like to submit a patch for the debmutate package that fixes a failing test "test_debmutate.DebmutateVersion".
See the failure in https://ci.debian.net/packages/d/debmutate/unstable/amd64/58336464/

Without the fix, the output of case

pytest ./tests/test_debmutate.py
/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.3, pytest-8.3.5, pluggy-1.5.0
rootdir: /home/debmutate/debmutate_test2/debmutate-0.72
configfile: pyproject.toml
plugins: cov-5.0.0, asyncio-0.25.1, flaky-3.8.1, typeguard-4.4.2, httpbin-2.1.0, xdist-3.6.1
asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None
collected 1 item

tests/test_debmutate.py F                                                                                              [100%]

========================================================== FAILURES ==========================================================
E       ?    ^
E       + 0.71
E       ?    ^



With the fix:

pytest ./tests/test_debmutate.py
/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.3, pytest-8.3.5, pluggy-1.5.0
rootdir: /home/debmutate/debmutate_test/debmutate-0.72
configfile: pyproject.toml
plugins: cov-5.0.0, asyncio-0.25.1, flaky-3.8.1, typeguard-4.4.2, httpbin-2.1.0, xdist-3.6.1
asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None
collected 1 item

tests/test_debmutate.py .


Thank you for considering this patch attached

Rong Fu