Created
April 20, 2025 21:09
-
-
Save al3xtjames/3846bfef79e73be3a6c369e8af918c80 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 python-runtime-deps-check-hook | |
Using pythonRuntimeDepsCheckHook | |
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 | |
/nix/store/ms9hlbnq81zpy8zxs7ddchn87bns9awg-pytest-check-hook/nix-support/setup-hook: line 41: warning: command substitution: 1 unterminated here-document | |
Using pytestCheckPhase | |
Running phase: unpackPhase | |
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking source archive /nix/store/80zfc6hirrcgzjzjm97a3mix3ysw700s-source | |
source root is source | |
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/uv.lock" | |
Running phase: patchPhase | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
Running phase: configurePhase | |
@nix { "action": "setPhase", "phase": "configurePhase" } | |
no configure script, doing nothing | |
Running phase: buildPhase | |
@nix { "action": "setPhase", "phase": "buildPhase" } | |
Executing pypaBuildPhase | |
Creating a wheel... | |
pypa build flags: --no-isolation --outdir dist/ --wheel | |
* Getting build dependencies for wheel... | |
* Building wheel... | |
Successfully built blockbuster-1.5.23-py3-none-any.whl | |
Finished creating a wheel... | |
Finished executing pypaBuildPhase | |
Running phase: pythonRuntimeDepsCheckHook | |
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" } | |
Executing pythonRuntimeDepsCheck | |
Checking runtime dependencies for blockbuster-1.5.23-py3-none-any.whl | |
Finished executing pythonRuntimeDepsCheck | |
Running phase: installPhase | |
@nix { "action": "setPhase", "phase": "installPhase" } | |
Executing pypaInstallPhase | |
Successfully installed blockbuster-1.5.23-py3-none-any.whl | |
Finished executing pypaInstallPhase | |
Running phase: pythonOutputDistPhase | |
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" } | |
Executing pythonOutputDistPhase | |
Finished executing pythonOutputDistPhase | |
Running phase: fixupPhase | |
@nix { "action": "setPhase", "phase": "fixupPhase" } | |
checking for references to /private/tmp/nix-build-python3.12-blockbuster-1.5.23.drv-0/ in /nix/store/h06w2m6zs81g47jzgkf4p8i0k5d4c78r-python3.12-blockbuster-1.5.23... | |
patching script interpreter paths in /nix/store/h06w2m6zs81g47jzgkf4p8i0k5d4c78r-python3.12-blockbuster-1.5.23 | |
stripping (with command strip and flags -S) in /nix/store/h06w2m6zs81g47jzgkf4p8i0k5d4c78r-python3.12-blockbuster-1.5.23/lib | |
checking for references to /private/tmp/nix-build-python3.12-blockbuster-1.5.23.drv-0/ in /nix/store/wmv14fzl5qa1r4cy65dqqvmc323yz0zq-python3.12-blockbuster-1.5.23-dist... | |
patching script interpreter paths in /nix/store/wmv14fzl5qa1r4cy65dqqvmc323yz0zq-python3.12-blockbuster-1.5.23-dist | |
Executing pythonRemoveTestsDir | |
Finished executing pythonRemoveTestsDir | |
Running phase: installCheckPhase | |
@nix { "action": "setPhase", "phase": "installCheckPhase" } | |
no Makefile or custom installCheckPhase, doing nothing | |
Running phase: pythonCatchConflictsPhase | |
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" } | |
Running phase: pythonRemoveBinBytecodePhase | |
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" } | |
Running phase: pythonImportsCheckPhase | |
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" } | |
Executing pythonImportsCheckPhase | |
Check whether the following modules can be imported: blockbuster | |
Running phase: pytestCheckPhase | |
@nix { "action": "setPhase", "phase": "pytestCheckPhase" } | |
Executing pytestCheckPhase | |
pytest flags: -m pytest -k not\ \(test_ssl_socket\) | |
/nix/store/w2xp92lvsqavdm4ccgdnvsqnchiljlmi-python3.12-pytest-asyncio-0.26.0/lib/python3.12/site-packages/pytest_asyncio/plugin.py:217: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. | |
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" | |
warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) | |
============================= test session starts ============================== | |
platform darwin -- Python 3.12.9, pytest-8.3.5, pluggy-1.5.0 | |
rootdir: /private/tmp/nix-build-python3.12-blockbuster-1.5.23.drv-0/source | |
configfile: pyproject.toml | |
plugins: asyncio-0.26.0 | |
asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function | |
collecting ... | |
collected 57 items / 1 deselected / 56 selected | |
tests/test_blockbuster.py ..FF.......................................... [ 82%] | |
.......... [100%] | |
=================================== FAILURES =================================== | |
_______________________________ test_socket_send _______________________________ | |
args = (<socket.socket [closed] fd=-1, family=2, type=1, proto=0>, ('127.0.0.1', 65432)) | |
kwargs = {} | |
def wrapper(*args: Any, **kwargs: Any) -> _T: | |
if blockbuster_skip.get(False): | |
return func(*args, **kwargs) | |
try: | |
> asyncio.get_running_loop() | |
E RuntimeError: no running event loop | |
blockbuster/blockbuster.py:78: RuntimeError | |
During handling of the above exception, another exception occurred: | |
async def test_socket_send() -> None: | |
tcp_server_task = asyncio.create_task(to_thread(tcp_server)) | |
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: | |
while True: | |
with contextlib.suppress(ConnectionRefusedError): | |
await asyncio.sleep(0.1) | |
> await to_thread(s.connect, ("127.0.0.1", PORT)) | |
tests/test_blockbuster.py:83: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/test_blockbuster.py:34: in to_thread | |
return await loop.run_in_executor(None, func_call) | |
/nix/store/qvkklfm7bahzq9cy5sv0mx6ad95y11wh-python3-3.12.9/lib/python3.12/concurrent/futures/thread.py:59: in run | |
result = self.fn(*self.args, **self.kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<socket.socket [closed] fd=-1, family=2, type=1, proto=0>, ('127.0.0.1', 65432)) | |
kwargs = {} | |
def wrapper(*args: Any, **kwargs: Any) -> _T: | |
if blockbuster_skip.get(False): | |
return func(*args, **kwargs) | |
try: | |
asyncio.get_running_loop() | |
except RuntimeError: | |
> return func(*args, **kwargs) | |
E PermissionError: [Errno 1] Operation not permitted | |
blockbuster/blockbuster.py:80: PermissionError | |
________________________ test_socket_send_non_blocking _________________________ | |
args = (<socket.socket [closed] fd=-1, family=2, type=1, proto=0>, ('127.0.0.1', 65432)) | |
kwargs = {} | |
def wrapper(*args: Any, **kwargs: Any) -> _T: | |
if blockbuster_skip.get(False): | |
return func(*args, **kwargs) | |
try: | |
> asyncio.get_running_loop() | |
E RuntimeError: no running event loop | |
blockbuster/blockbuster.py:78: RuntimeError | |
During handling of the above exception, another exception occurred: | |
async def test_socket_send_non_blocking() -> None: | |
tcp_server_task = asyncio.create_task(to_thread(tcp_server)) | |
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: | |
while True: | |
with contextlib.suppress(ConnectionRefusedError): | |
await asyncio.sleep(0.1) | |
> await to_thread(s.connect, ("127.0.0.1", PORT)) | |
tests/test_blockbuster.py:96: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/test_blockbuster.py:34: in to_thread | |
return await loop.run_in_executor(None, func_call) | |
/nix/store/qvkklfm7bahzq9cy5sv0mx6ad95y11wh-python3-3.12.9/lib/python3.12/concurrent/futures/thread.py:59: in run | |
result = self.fn(*self.args, **self.kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<socket.socket [closed] fd=-1, family=2, type=1, proto=0>, ('127.0.0.1', 65432)) | |
kwargs = {} | |
def wrapper(*args: Any, **kwargs: Any) -> _T: | |
if blockbuster_skip.get(False): | |
return func(*args, **kwargs) | |
try: | |
asyncio.get_running_loop() | |
except RuntimeError: | |
> return func(*args, **kwargs) | |
E PermissionError: [Errno 1] Operation not permitted | |
blockbuster/blockbuster.py:80: PermissionError | |
=========================== short test summary info ============================ | |
FAILED tests/test_blockbuster.py::test_socket_send - PermissionError: [Errno 1] Operation not permitted | |
FAILED tests/test_blockbuster.py::test_socket_send_non_blocking - PermissionError: [Errno 1] Operation not permitted | |
================== 2 failed, 54 passed, 1 deselected in 0.80s ================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment