Package: debmutate Version: 0.72 Severity: normal 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 ========================================================== _______________________________________ DebmutateVersion.test_matches_package_version ________________________________________ self = <tests.test_debmutate.DebmutateVersion testMethod=test_matches_package_version> def test_matches_package_version(self): if not os.path.exists("debian/changelog"): self.skipTest( "no debian/changelog available. Running outside of source tree?" ) with open("debian/changelog") as f: cl = Changelog(f, max_blocks=1) cl_version = str(cl.version) cl_version = cl_version.split("+")[0] cl_version = cl_version.split("~")[0] > self.assertEqual(cl_version, version_string) E AssertionError: '0.72' != '0.71' E - 0.72 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
fix_debmutate_version_check_fail.patch
Description: fix_debmutate_version_check_fail.patch