Source: hypercorn Version: 0.11.1-1 Severity: serious Tags: ftbfs https://buildd.debian.org/status/fetch.php?pkg=hypercorn&arch=all&ver=0.11.1-1&stamp=1602683894&raw=0
... =================================== FAILURES =================================== _________________________ test_protocol_send_response __________________________ protocol = <hypercorn.protocol.h11.H11Protocol object at 0x7f53b456f6d0> @pytest.mark.asyncio async def test_protocol_send_response(protocol: H11Protocol) -> None: await protocol.stream_send(Response(stream_id=1, status_code=201, headers=[])) protocol.send.assert_called() > assert protocol.send.call_args_list == [ call( RawData( data=( b"HTTP/1.1 201 \r\ndate: Thu, 01 Jan 1970 01:23:20 GMT\r\n" b"server: hypercorn-h11\r\nConnection: close\r\n\r\n" ) ) ) ] E AssertionError: assert [call(RawData...ddress=None))] == [call(RawData(...ddress=None))] E At index 0 diff: call(RawData(data=b'HTTP/1.1 201 \r\ndate: Thu, 01 Jan 1970 01:23:20 GMT\r\nserver: hypercorn-h11\r\nconnection: close\r\n\r\n', address=None)) != call(RawData(data=b'HTTP/1.1 201 \r\ndate: Thu, 01 Jan 1970 01:23:20 GMT\r\nserver: hypercorn-h11\r\nConnection: close\r\n\r\n', address=None)) E Use -v to get the full diff protocol = <hypercorn.protocol.h11.H11Protocol object at 0x7f53b456f6d0> tests/protocol/test_h11.py:42: AssertionError ___________________________ test_protocol_send_body ____________________________ protocol = <hypercorn.protocol.h11.H11Protocol object at 0x7f53b3c51310> @pytest.mark.asyncio async def test_protocol_send_body(protocol: H11Protocol) -> None: await protocol.handle( RawData(data=b"GET / HTTP/1.1\r\nHost: hypercorn\r\nConnection: close\r\n\r\n") ) await protocol.stream_send( Response(stream_id=1, status_code=200, headers=[(b"content-length", b"5")]) ) await protocol.stream_send(Body(stream_id=1, data=b"hello")) protocol.send.assert_called() > assert protocol.send.call_args_list == [ call( RawData( data=b"HTTP/1.1 200 \r\ncontent-length: 5\r\ndate: Thu, 01 Jan 1970 01:23:20 GMT\r\nserver: hypercorn-h11\r\nConnection: close\r\n\r\n" # noqa: E501 ) ), call(RawData(data=b"hello")), ] E AssertionError: assert [call(RawData...ddress=None))] == [call(RawData(...ddress=None))] E At index 0 diff: call(RawData(data=b'HTTP/1.1 200 \r\ncontent-length: 5\r\ndate: Thu, 01 Jan 1970 01:23:20 GMT\r\nserver: hypercorn-h11\r\nconnection: close\r\n\r\n', address=None)) != call(RawData(data=b'HTTP/1.1 200 \r\ncontent-length: 5\r\ndate: Thu, 01 Jan 1970 01:23:20 GMT\r\nserver: hypercorn-h11\r\nConnection: close\r\n\r\n', address=None)) E Use -v to get the full diff protocol = <hypercorn.protocol.h11.H11Protocol object at 0x7f53b3c51310> tests/protocol/test_h11.py:71: AssertionError ---------------------------- Captured stderr setup ----------------------------- Exception ignored in: <coroutine object TCPServer.run at 0x7f53b458e5c0> Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hypercorn/build/hypercorn/asyncio/tcp_server.py", line 79, in run await self._read_data() File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hypercorn/build/hypercorn/asyncio/tcp_server.py", line 103, in _read_data data = await self.reader.read(MAX_RECV) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hypercorn/build/tests/asyncio/helpers.py", line 21, in read return await self.data.get() File "/usr/lib/python3.9/asyncio/queues.py", line 168, in get getter.cancel() # Just in case getter is not done yet. File "/usr/lib/python3.9/asyncio/base_events.py", line 746, in call_soon self._check_closed() File "/usr/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed ------------------------------ Captured log setup ------------------------------ ERROR asyncio:base_events.py:1738 Task was destroyed but it is pending! task: <Task pending name='Task-66' coro=<TCPServer.run() running at /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hypercorn/build/hypercorn/asyncio/tcp_server.py:79> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f53b4545c70>()]>> ERROR asyncio:base_events.py:1738 Task was destroyed but it is pending! task: <Task pending name='Task-74' coro=<_call_later() running at /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hypercorn/build/hypercorn/asyncio/tcp_server.py:154> wait_for=<Future cancelled> cb=[<TaskWakeupMethWrapper object at 0x7f53b4608dc0>()]> ERROR asyncio:base_events.py:1738 Task was destroyed but it is pending! task: <Task pending name='Task-68' coro=<H2Protocol.send_task() running at /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hypercorn/build/hypercorn/protocol/h2.py:147> wait_for=<Task pending name='Task-74' coro=<_call_later() done, defined at /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hypercorn/build/hypercorn/asyncio/tcp_server.py:153> wait_for=<Future cancelled> cb=[<TaskWakeupMethWrapper object at 0x7f53b4608dc0>()]>> ... ========= 2 failed, 165 passed, 2 skipped, 6 warnings in 2.12 seconds ========== E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_hypercorn/build; python3.9 -m pytest --ignore=tests/trio dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.8" returned exit code 13 make: *** [debian/rules:7: build-indep] Error 25