FTBFS 2.0.1+dfsg1-2 DeprecationWarning: There is no current event loop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-werkzeug (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
python-werkzeug fails to build from source for Python 3.10 as per https:/
=======
_______
@pytest.
)
def test_local_
ls = local.LocalStack()
ls.push(1)
async def task():
assert len(ls.
> loop = asyncio.
E DeprecationWarning: There is no current event loop
tests/test_
_______
def test_proxy_await():
async def get():
return 1
_, p = _make_proxy(get())
async def main():
return await p
> out = asyncio.
E DeprecationWarning: There is no current event loop
tests/test_
_______
def test_proxy_aiter():
class Example:
value = 3
def __aiter__(self):
async def __anext__(self):
if self.value:
_, p = _make_proxy(
async def main():
out = []
async for v in p:
return out
> out = asyncio.
E DeprecationWarning: There is no current event loop
tests/test_
_______
def test_proxy_
class Example:
value = 2
async def __aenter__(self):
async def __aexit__(self, exc_type, exc_val, exc_tb):
_, p = _make_proxy(
async def main():
async with p:
assert p.value == 2
return True
> assert asyncio.
E DeprecationWarning: There is no current event loop
tests/test_
=======
FAILED tests/test_
FAILED tests/test_
FAILED tests/test_
FAILED tests/test_
=========== 4 failed, 757 passed, 1 skipped, 39 deselected in 6.44s ============
Fix forwarded to Debian at https:/ /salsa. debian. org/python- team/packages/ python- werkzeug/ -/merge_ requests/ 2