python-uvicorn: FTBFS: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future

Bug #1965578 reported by Nick Rosbrook
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-uvicorn (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

See the failed build log here: https://launchpadlibrarian.net/591269853/buildlog_ubuntu-jammy-amd64.python-uvicorn_0.15.0-2_BUILDING.txt.gz.

The relevant section is as follows:

I: pybuild pybuild:298: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build
I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build; python3.10 -m pytest -s --verbose -k 'not test_run and not test_invalid_upgrade and not test_default_headers and not test_trace_logging and not test_websocket_auto' --ignore=tests/protocols/test_websocket.py
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/main.py", line 265, in wrap_session
INTERNALERROR> config._do_configure()
INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 982, in _do_configure
INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 308, in call_historic
INTERNALERROR> res = self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 92, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 83, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 191, in pytest_configure
INTERNALERROR> config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 1321, in issue_config_time_warning
INTERNALERROR> warnings.warn(warning, stacklevel=stacklevel)
INTERNALERROR> DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
E: pybuild pybuild:367: test: plugin distutils failed with: exit code=3: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build; python3.10 -m pytest -s --verbose -k 'not test_run and not test_invalid_upgrade and not test_default_headers and not test_trace_logging and not test_websocket_auto' --ignore=tests/protocols/test_websocket.py
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 returned exit code 13

Revision history for this message
Nick Rosbrook (enr0n) wrote :
Revision history for this message
William Wilson (jawn-smith) wrote :

I have a tiny nitpick here. The existing patches for this package are in the form of ####-<function>.patch, but the patch added here is missing the ####. Can you rename the patch and upload a new debdiff?

Revision history for this message
Nick Rosbrook (enr0n) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-uvicorn - 0.15.0-2ubuntu1

---------------
python-uvicorn (0.15.0-2ubuntu1) jammy; urgency=medium

  * debian/patches: Add 0004-set-pytest-asyncio-mode-auto.patch to fix
    DeprecationWarning build error on python3.10 (LP: #1965578).
  * debian/control: Require python3-pytest-asyncio (>= 0.18.0), which is
    necessary for the asyncio_mode config option.

 -- Nick Rosbrook <email address hidden> Fri, 18 Mar 2022 15:10:11 -0400

Changed in python-uvicorn (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.