Source: python-nest-asyncio
Version: 1.5.1-1
Severity: serious
X-Debbugs-CC:
debi...@lists.debian.org
Tags: sid bookworm
User:
debi...@lists.debian.org
Usertags: needs-update
User:
debian...@lists.debian.org
Usertags: python3.10
Control: affects -1 src:python3-defaults
Dear maintainer(s),
We are in the transition of adding python3.10 to the supported Python
versions [0]. With a recent upload of python3-defaults the autopkgtest
of python-nest-asyncio fails in testing when that autopkgtest is run
with the binary packages of python3-defaults from unstable. It passes
when run with only packages from testing. In tabular form:
pass fail
python3-defaults from testing 3.9.8-1
python-nest-asyncio from testing 1.5.1-1
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration of python3-defaults
to testing [1].
https://docs.python.org/3/whatsnew/3.10.html lists
what's new in Python3.10, it may help to identify what needs to be updated.
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[0]
https://bugs.debian.org/996584
[1]
https://qa.debian.org/excuses.php?package=python3-defaults
https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-nest-asyncio/17420661/log.gz
'tests' -> '/tmp/autopkgtest-lxc.n7a2xc97/downtmp/autopkgtest_tmp/tests'
'tests/__init__.py' ->
'/tmp/autopkgtest-lxc.n7a2xc97/downtmp/autopkgtest_tmp/tests/__init__.py'
'tests/nest_test.py' ->
'/tmp/autopkgtest-lxc.n7a2xc97/downtmp/autopkgtest_tmp/tests/nest_test.py'
Running testsuite with python3.10:
============================= test session starts
==============================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
rootdir: /tmp/autopkgtest-lxc.n7a2xc97/downtmp/autopkgtest_tmp
collected 6 items
tests/nest_test.py .....F
[100%]
=================================== FAILURES
===================================
___________ NestTest.test_two_run_until_completes_in_one_outer_loop
____________
self = <tests.nest_test.NestTest
testMethod=test_two_run_until_completes_in_one_outer_loop>
def test_two_run_until_completes_in_one_outer_loop(self):
async def f1():
self.loop.run_until_complete(asyncio.sleep(0.02))
return 4
async def f2():
self.loop.run_until_complete(asyncio.sleep(0.01))
return 2
result = self.loop.run_until_complete(
> asyncio.gather(f1(), f2(), loop=self.loop))
E TypeError: gather() got an unexpected keyword argument 'loop'
tests/nest_test.py:87: TypeError
=============================== warnings summary
===============================
tests/nest_test.py::NestTest::test_two_run_until_completes_in_one_outer_loop
/tmp/autopkgtest-lxc.n7a2xc97/downtmp/autopkgtest_tmp/tests/nest_test.py:87:
RuntimeWarning: coroutine
'NestTest.test_two_run_until_completes_in_one_outer_loop.<locals>.f2'
was never awaited
asyncio.gather(f1(), f2(), loop=self.loop))
tests/nest_test.py::NestTest::test_two_run_until_completes_in_one_outer_loop
/tmp/autopkgtest-lxc.n7a2xc97/downtmp/autopkgtest_tmp/tests/nest_test.py:87:
RuntimeWarning: coroutine
'NestTest.test_two_run_until_completes_in_one_outer_loop.<locals>.f1'
was never awaited
asyncio.gather(f1(), f2(), loop=self.loop))
-- Docs:
https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info
============================
FAILED
tests/nest_test.py::NestTest::test_two_run_until_completes_in_one_outer_loop
=================== 1 failed, 5 passed, 2 warnings in 0.15s
====================
autopkgtest [13:31:45]: test upstream-tests