Source: python-nest-asyncio
Version: 1.5.1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:237: python3.10 setup.py config 
> running config
> I: pybuild base:237: python3.9 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:237: /usr/bin/python3.10 setup.py build 
> running build
> running build_py
> copying nest_asyncio.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_nest_asyncio/build
> I: pybuild base:237: /usr/bin/python3 setup.py build 
> running build
> running build_py
> copying nest_asyncio.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_nest_asyncio/build
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:237: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_nest_asyncio/build; python3.10 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> 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 
> ===============================
> .pybuild/cpython3_3.10_nest_asyncio/build/tests/nest_test.py::NestTest::test_two_run_until_completes_in_one_outer_loop
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_nest_asyncio/build/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))
> 
> .pybuild/cpython3_3.10_nest_asyncio/build/tests/nest_test.py::NestTest::test_two_run_until_completes_in_one_outer_loop
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_nest_asyncio/build/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.12s 
> ====================
> E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_nest_asyncio/build; python3.10 -m 
> pytest tests
> I: pybuild base:237: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_nest_asyncio/build; python3.9 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 6 items
> 
> tests/nest_test.py ......                                                
> [100%]
> 
> =============================== warnings summary 
> ===============================
> .pybuild/cpython3_3.9_nest_asyncio/build/tests/nest_test.py::NestTest::test_two_run_until_completes_in_one_outer_loop
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_nest_asyncio/build/tests/nest_test.py:87:
>  DeprecationWarning: The loop argument is deprecated since Python 3.8, and 
> scheduled for removal in Python 3.10.
>     asyncio.gather(f1(), f2(), loop=self.loop))
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> ========================= 6 passed, 1 warning in 0.14s 
> =========================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 
> 3.9" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/python-nest-asyncio_1.5.1-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to