Skip to content

Instantly share code, notes, and snippets.

@natsukium
Created October 31, 2023 15:06
Show Gist options
  • Save natsukium/6ccaab40f55b36223f66fb075829bd82 to your computer and use it in GitHub Desktop.
Save natsukium/6ccaab40f55b36223f66fb075829bd82 to your computer and use it in GitHub Desktop.
system: aarch64-darwin | build_time: 17 seconds | https://github.com/NixOS/nixpkgs/pull/263122
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
unpacking sources
unpacking source archive /nix/store/wnd2922x3x7zw58hh93wv78xrw2pdxb3-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/test_states.py
patching sources
substituteStream(): WARNING: pattern 'version = "0.0.0"' doesn't match anything in file 'pyproject.toml'
updateAutotoolsGnuConfigScriptsPhase
configuring
no configure script, doing nothing
building
Executing pypaBuildPhase
Creating a wheel...
* Getting build dependencies for wheel...
* Building wheel...
Successfully built python_opensky-0.2.1-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
installing
Executing pypaInstallPhase
Successfully installed python_opensky-0.2.1-py3-none-any.whl
Finished executing pypaInstallPhase
pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
post-installation fixup
checking for references to /private/tmp/nix-build-python3.10-python-opensky-0.2.1.drv-0/ in /nix/store/zl9sl968a3hm8vm4zi273nrmmzm3fys3-python3.10-python-opensky-0.2.1...
patching script interpreter paths in /nix/store/zl9sl968a3hm8vm4zi273nrmmzm3fys3-python3.10-python-opensky-0.2.1
stripping (with command strip and flags -S) in /nix/store/zl9sl968a3hm8vm4zi273nrmmzm3fys3-python3.10-python-opensky-0.2.1/lib
checking for references to /private/tmp/nix-build-python3.10-python-opensky-0.2.1.drv-0/ in /nix/store/ixyw25njpjsgn40xalapjdmk48r0h0qg-python3.10-python-opensky-0.2.1-dist...
patching script interpreter paths in /nix/store/ixyw25njpjsgn40xalapjdmk48r0h0qg-python3.10-python-opensky-0.2.1-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
running install tests
no Makefile or custom installCheckPhase, doing nothing
pythonCatchConflictsPhase
/nix/store/q2zpnf017gccs9w9mb0ikdqhkf0k5v82-catch_conflicts.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
pythonRemoveBinBytecodePhase
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: python_opensky
pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform darwin -- Python 3.10.13, pytest-7.4.2, pluggy-1.2.0
rootdir: /private/tmp/nix-build-python3.10-python-opensky-0.2.1.drv-0/source
configfile: pyproject.toml
plugins: aresponses-2.1.6, asyncio-0.21.1, syrupy-4.5.0, devtools-0.12.2
asyncio: mode=auto
collected 21 items
tests/test_models.py . [ 4%]
tests/test_radius.py ..... [ 28%]
tests/test_states.py EEEEEEEEEEEEE.. [100%]
==================================== ERRORS ====================================
________________________ ERROR at setup of test_states _________________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_states>>, kwargs = {}
func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x102352ef0>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x102352f80>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
__________________ ERROR at setup of test_unavailable_states ___________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_unavailable_states>>
kwargs = {}, func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x1023d6050>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x1023d6170>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
______________________ ERROR at setup of test_own_states _______________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_own_states>>, kwargs = {}
func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x1023d7d90>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x1023d7e20>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
________________ ERROR at setup of test_unavailable_own_states _________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_unavailable_own_states>>
kwargs = {}, func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x102350c10>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x102350d30>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
_______________ ERROR at setup of test_states_with_bounding_box ________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_states_with_bounding_box>>
kwargs = {}, func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x102350790>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x102352c20>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
_____________________ ERROR at setup of test_credit_usage ______________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_credit_usage>>
kwargs = {}, func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x10244cd30>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x10244c040>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
______________________ ERROR at setup of test_new_session ______________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_new_session>>, kwargs = {}
func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x1023d7760>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x1023d77f0>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
________________________ ERROR at setup of test_timeout ________________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_timeout>>, kwargs = {}
func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x102350160>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x102350d30>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
_________________________ ERROR at setup of test_auth __________________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_auth>>, kwargs = {}
func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x10244cf70>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x10244d240>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
_____________________ ERROR at setup of test_unauthorized ______________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_unauthorized>>
kwargs = {}, func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x10244d630>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x10244d090>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
_____________________ ERROR at setup of test_user_credits ______________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_user_credits>>
kwargs = {}, func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x102352f80>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x102350d30>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
_____________________ ERROR at setup of test_request_error _____________________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_request_error>>
kwargs = {}, func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x10244c700>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x10244c5e0>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
______________ ERROR at setup of test_unexpected_server_response _______________
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aresponses' for <Function test_unexpected_server_response>>
kwargs = {}, func = <function aresponses at 0x10225aef0>
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x10244c040>
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x10244db40>
@functools.wraps(fixture)
def _asyncgen_fixture_wrapper(
event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
):
func = _perhaps_rebind_fixture_func(
fixture, request.instance, fixturedef.unittest
)
gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer() -> None:
"""Yield again, to finalize."""
async def async_finalizer() -> None:
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
event_loop.run_until_complete(async_finalizer())
> result = event_loop.run_until_complete(setup())
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:304:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ak3zf631ws2rwsl5qq0x3v7j18h0c2jj-python3-3.10.13/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
return future.result()
/nix/store/0xkhglmxr5zbvp05pz9fkh5qdj6j3n1m-python3.10-pytest-asyncio-0.21.1/lib/python3.10/site-packages/pytest_asyncio/plugin.py:286: in setup
res = await gen_obj.__anext__()
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:336: in aresponses
async with ResponsesMockServer(loop=event_loop) as server:
/nix/store/2lvfyqq3flnv8c17wxy434qc06vghlnd-python3.10-aresponses-2.1.6/lib/python3.10/site-packages/aresponses/main.py:259: in __aenter__
await self.start_server(loop=self._loop)
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:133: in start_server
_sock = self.socket_factory(self.host, self.port, family)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
host = '127.0.0.1', port = 0, family = <AddressFamily.AF_INET: 2>
def get_port_socket(
host: str, port: int, family: socket.AddressFamily
) -> socket.socket:
s = socket.socket(family, socket.SOCK_STREAM)
if REUSE_ADDRESS:
# Windows has different semantics for SO_REUSEADDR,
# so don't set it. Ref:
# https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
> s.bind((host, port))
E PermissionError: [Errno 1] Operation not permitted
/nix/store/l7n8n5gi1k5jyjhbw0v6mqc2dbq3np2x-python3.10-aiohttp-3.8.5/lib/python3.10/site-packages/aiohttp/test_utils.py:80: PermissionError
=========================== short test summary info ============================
ERROR tests/test_states.py::test_states - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_unavailable_states - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_own_states - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_unavailable_own_states - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_states_with_bounding_box - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_credit_usage - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_new_session - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_timeout - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_auth - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_unauthorized - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_user_credits - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_request_error - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_states.py::test_unexpected_server_response - PermissionError: [Errno 1] Operation not permitted
========================= 8 passed, 13 errors in 0.57s =========================
/nix/store/76bslal3s07bjixxrl8b20r25c0wwpay-stdenv-darwin/setup: line 1605: pop_var_context: head of shell_variables not a function context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment