Skip to content

Instantly share code, notes, and snippets.

@mweinelt
Created December 14, 2023 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mweinelt/fe629d072d1e947d3f69cd66fd920170 to your computer and use it in GitHub Desktop.
Save mweinelt/fe629d072d1e947d3f69cd66fd920170 to your computer and use it in GitHub Desktop.
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
Using pytestCheckPhase
Running phase: unpackPhase
unpacking source archive /nix/store/s1i4bprd341jhhb8ys5lnabbdi0qvpaa-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/test_zeroconf.py
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
* Getting build dependencies for wheel...
[1/5] Cythonizing aioesphomeapi/_frame_helper/base.py
warning: aioesphomeapi/_frame_helper/base.py:112:28: Unknown type declaration '_int' in annotation, ignoring
warning: aioesphomeapi/_frame_helper/base.py:184:33: Unknown type declaration '_bytes' in annotation, ignoring
[2/5] Cythonizing aioesphomeapi/_frame_helper/noise.py
[3/5] Cythonizing aioesphomeapi/_frame_helper/plain_text.py
warning: aioesphomeapi/_frame_helper/plain_text.py:15:29: Unknown type declaration '_int' in annotation, ignoring
warning: aioesphomeapi/_frame_helper/plain_text.py:95:53: Unknown type declaration '_int' in annotation, ignoring
[4/5] Cythonizing aioesphomeapi/client_callbacks.py
[5/5] Cythonizing aioesphomeapi/connection.py
warning: aioesphomeapi/connection.py:160:17: Unknown type declaration 'message.Message' in annotation, ignoring
warning: aioesphomeapi/connection.py:479:46: Unknown type declaration '_float' in annotation, ignoring
warning: aioesphomeapi/connection.py:629:43: Unknown type declaration 'ConnectionState' in annotation, ignoring
warning: aioesphomeapi/connection.py:644:39: Unknown type declaration 'message.Message' in annotation, ignoring
warning: aioesphomeapi/connection.py:816:45: Unknown type declaration '_int' in annotation, ignoring
warning: aioesphomeapi/connection.py:816:57: Unknown type declaration '_bytes' in annotation, ignoring
warning: aioesphomeapi/connection.py:570:31: Unknown type declaration 'BaseException' in annotation, ignoring
running egg_info
creating aioesphomeapi.egg-info
writing aioesphomeapi.egg-info/PKG-INFO
writing dependency_links to aioesphomeapi.egg-info/dependency_links.txt
writing entry points to aioesphomeapi.egg-info/entry_points.txt
writing requirements to aioesphomeapi.egg-info/requires.txt
writing top-level names to aioesphomeapi.egg-info/top_level.txt
writing manifest file 'aioesphomeapi.egg-info/SOURCES.txt'
reading manifest file 'aioesphomeapi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'aioesphomeapi.egg-info/SOURCES.txt'
* Building wheel...
[1/5] Cythonizing aioesphomeapi/client_callbacks.py
[2/5] Cythonizing aioesphomeapi/connection.py
warning: aioesphomeapi/connection.py:160:17: Unknown type declaration 'message.Message' in annotation, ignoring
warning: aioesphomeapi/connection.py:479:46: Unknown type declaration '_float' in annotation, ignoring
warning: aioesphomeapi/connection.py:629:43: Unknown type declaration 'ConnectionState' in annotation, ignoring
warning: aioesphomeapi/connection.py:644:39: Unknown type declaration 'message.Message' in annotation, ignoring
warning: aioesphomeapi/connection.py:816:45: Unknown type declaration '_int' in annotation, ignoring
warning: aioesphomeapi/connection.py:816:57: Unknown type declaration '_bytes' in annotation, ignoring
warning: aioesphomeapi/connection.py:570:31: Unknown type declaration 'BaseException' in annotation, ignoring
[3/5] Cythonizing aioesphomeapi/_frame_helper/base.py
warning: aioesphomeapi/_frame_helper/base.py:112:28: Unknown type declaration '_int' in annotation, ignoring
warning: aioesphomeapi/_frame_helper/base.py:184:33: Unknown type declaration '_bytes' in annotation, ignoring
[4/5] Cythonizing aioesphomeapi/_frame_helper/noise.py
[5/5] Cythonizing aioesphomeapi/_frame_helper/plain_text.py
warning: aioesphomeapi/_frame_helper/plain_text.py:15:29: Unknown type declaration '_int' in annotation, ignoring
warning: aioesphomeapi/_frame_helper/plain_text.py:95:53: Unknown type declaration '_int' in annotation, ignoring
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/util.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/host_resolver.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/client_callbacks.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/model_conversions.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/__init__.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/core.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/reconnect_logic.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/log_reader.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/api_pb2.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/log_runner.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/ble_defs.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/zeroconf.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/model.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/discover.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/connection.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/client.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
copying aioesphomeapi/api_options_pb2.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
creating build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper
copying aioesphomeapi/_frame_helper/__init__.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper
copying aioesphomeapi/_frame_helper/base.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper
copying aioesphomeapi/_frame_helper/plain_text.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper
copying aioesphomeapi/_frame_helper/noise.py -> build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper
running egg_info
writing aioesphomeapi.egg-info/PKG-INFO
writing dependency_links to aioesphomeapi.egg-info/dependency_links.txt
writing entry points to aioesphomeapi.egg-info/entry_points.txt
writing requirements to aioesphomeapi.egg-info/requires.txt
writing top-level names to aioesphomeapi.egg-info/top_level.txt
reading manifest file 'aioesphomeapi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'aioesphomeapi.egg-info/SOURCES.txt'
copying aioesphomeapi/py.typed -> build/lib.linux-x86_64-cpython-311/aioesphomeapi
running build_ext
building 'aioesphomeapi.client_callbacks' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/aioesphomeapi
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/include -fPIC -I/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/include/python3.11 -c aioesphomeapi/client_callbacks.c -o build/temp.linux-x86_64-cpython-311/aioesphomeapi/client_callbacks.o
gcc -shared -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib build/temp.linux-x86_64-cpython-311/aioesphomeapi/client_callbacks.o -L/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib -o build/lib.linux-x86_64-cpython-311/aioesphomeapi/client_callbacks.cpython-311-x86_64-linux-gnu.so
building 'aioesphomeapi.connection' extension
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/include -fPIC -I/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/include/python3.11 -c aioesphomeapi/connection.c -o build/temp.linux-x86_64-cpython-311/aioesphomeapi/connection.o
gcc -shared -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib build/temp.linux-x86_64-cpython-311/aioesphomeapi/connection.o -L/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib -o build/lib.linux-x86_64-cpython-311/aioesphomeapi/connection.cpython-311-x86_64-linux-gnu.so
building 'aioesphomeapi._frame_helper.plain_text' extension
creating build/temp.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/include -fPIC -I/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/include/python3.11 -c aioesphomeapi/_frame_helper/plain_text.c -o build/temp.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/plain_text.o
aioesphomeapi/_frame_helper/plain_text.c:4238:18: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_5__eq__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
4238 | static PyObject *__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_5__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aioesphomeapi/_frame_helper/plain_text.c:3834:18: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_3__repr__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
3834 | static PyObject *__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_3__repr__(PyObject *__pyx_v_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aioesphomeapi/_frame_helper/plain_text.c:3509:12: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_1__init__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
3509 | static int __pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -shared -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib build/temp.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/plain_text.o -L/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib -o build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/plain_text.cpython-311-x86_64-linux-gnu.so
building 'aioesphomeapi._frame_helper.noise' extension
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/include -fPIC -I/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/include/python3.11 -c aioesphomeapi/_frame_helper/noise.c -o build/temp.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/noise.o
aioesphomeapi/_frame_helper/noise.c:4888:18: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_5__eq__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
4888 | static PyObject *__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_5__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aioesphomeapi/_frame_helper/noise.c:4484:18: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_3__repr__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
4484 | static PyObject *__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_3__repr__(PyObject *__pyx_v_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aioesphomeapi/_frame_helper/noise.c:4159:12: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_1__init__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
4159 | static int __pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -shared -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib build/temp.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/noise.o -L/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib -o build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/noise.cpython-311-x86_64-linux-gnu.so
building 'aioesphomeapi._frame_helper.base' extension
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/include -fPIC -I/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/include/python3.11 -c aioesphomeapi/_frame_helper/base.c -o build/temp.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/base.o
aioesphomeapi/_frame_helper/base.c:4396:18: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_5__eq__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
4396 | static PyObject *__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_5__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aioesphomeapi/_frame_helper/base.c:3992:18: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_3__repr__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
3992 | static PyObject *__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_3__repr__(PyObject *__pyx_v_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aioesphomeapi/_frame_helper/base.c:3667:12: warning: ‘__pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_1__init__’ defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-function-Wunused-function8;;]
3667 | static int __pyx_pw_13aioesphomeapi_10connection_16ConnectionParams_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -shared -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.5.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.4.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.4/lib -L/nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.23/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.44.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p7/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.12/lib -L/nix/store/53gvfwp5gmdijx86xqbqys4as56wcs1w-tzdata-2023c/lib build/temp.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/base.o -L/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib -o build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/base.cpython-311-x86_64-linux-gnu.so
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/zeroconf.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/model.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/ble_defs.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/api_pb2.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/util.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/discover.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/core.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/log_runner.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/__init__.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/client_callbacks.cpython-311-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/reconnect_logic.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
creating build/bdist.linux-x86_64/wheel/aioesphomeapi/_frame_helper
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/__init__.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi/_frame_helper
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/base.cpython-311-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/aioesphomeapi/_frame_helper
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/noise.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi/_frame_helper
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/plain_text.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi/_frame_helper
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/base.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi/_frame_helper
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/plain_text.cpython-311-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/aioesphomeapi/_frame_helper
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/_frame_helper/noise.cpython-311-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/aioesphomeapi/_frame_helper
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/log_reader.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/host_resolver.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/py.typed -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/connection.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/client_callbacks.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/connection.cpython-311-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/api_options_pb2.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/client.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
copying build/lib.linux-x86_64-cpython-311/aioesphomeapi/model_conversions.py -> build/bdist.linux-x86_64/wheel/aioesphomeapi
running install_egg_info
Copying aioesphomeapi.egg-info to build/bdist.linux-x86_64/wheel/aioesphomeapi-19.2.1-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/aioesphomeapi-19.2.1.dist-info/WHEEL
creating '/build/source/dist/.tmp-s37hni3s/aioesphomeapi-19.2.1-cp311-cp311-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'aioesphomeapi/__init__.py'
adding 'aioesphomeapi/api_options_pb2.py'
adding 'aioesphomeapi/api_pb2.py'
adding 'aioesphomeapi/ble_defs.py'
adding 'aioesphomeapi/client.py'
adding 'aioesphomeapi/client_callbacks.cpython-311-x86_64-linux-gnu.so'
adding 'aioesphomeapi/client_callbacks.py'
adding 'aioesphomeapi/connection.cpython-311-x86_64-linux-gnu.so'
adding 'aioesphomeapi/connection.py'
adding 'aioesphomeapi/core.py'
adding 'aioesphomeapi/discover.py'
adding 'aioesphomeapi/host_resolver.py'
adding 'aioesphomeapi/log_reader.py'
adding 'aioesphomeapi/log_runner.py'
adding 'aioesphomeapi/model.py'
adding 'aioesphomeapi/model_conversions.py'
adding 'aioesphomeapi/py.typed'
adding 'aioesphomeapi/reconnect_logic.py'
adding 'aioesphomeapi/util.py'
adding 'aioesphomeapi/zeroconf.py'
adding 'aioesphomeapi/_frame_helper/__init__.py'
adding 'aioesphomeapi/_frame_helper/base.cpython-311-x86_64-linux-gnu.so'
adding 'aioesphomeapi/_frame_helper/base.py'
adding 'aioesphomeapi/_frame_helper/noise.cpython-311-x86_64-linux-gnu.so'
adding 'aioesphomeapi/_frame_helper/noise.py'
adding 'aioesphomeapi/_frame_helper/plain_text.cpython-311-x86_64-linux-gnu.so'
adding 'aioesphomeapi/_frame_helper/plain_text.py'
adding 'aioesphomeapi-19.2.1.dist-info/LICENSE'
adding 'aioesphomeapi-19.2.1.dist-info/METADATA'
adding 'aioesphomeapi-19.2.1.dist-info/WHEEL'
adding 'aioesphomeapi-19.2.1.dist-info/entry_points.txt'
adding 'aioesphomeapi-19.2.1.dist-info/top_level.txt'
adding 'aioesphomeapi-19.2.1.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built aioesphomeapi-19.2.1-cp311-cp311-linux_x86_64.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
buildPhase completed in 2 minutes 53 seconds
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for aioesphomeapi-19.2.1-cp311-cp311-linux_x86_64.whl
Finished executing pythonRuntimeDepsCheck
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed aioesphomeapi-19.2.1-cp311-cp311-linux_x86_64.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1
shrinking /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/lib/python3.11/site-packages/aioesphomeapi/_frame_helper/noise.cpython-311-x86_64-linux-gnu.so
shrinking /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/lib/python3.11/site-packages/aioesphomeapi/_frame_helper/base.cpython-311-x86_64-linux-gnu.so
shrinking /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/lib/python3.11/site-packages/aioesphomeapi/_frame_helper/plain_text.cpython-311-x86_64-linux-gnu.so
shrinking /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/lib/python3.11/site-packages/aioesphomeapi/client_callbacks.cpython-311-x86_64-linux-gnu.so
shrinking /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/lib/python3.11/site-packages/aioesphomeapi/connection.cpython-311-x86_64-linux-gnu.so
checking for references to /build/ in /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1...
patching script interpreter paths in /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1
stripping (with command strip and flags -S -p) in /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/lib /nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/ndmi0qzpw5zsl59623s1bls6vbh535l2-python3.11-aioesphomeapi-19.2.1-dist
checking for references to /build/ in /nix/store/ndmi0qzpw5zsl59623s1bls6vbh535l2-python3.11-aioesphomeapi-19.2.1-dist...
patching script interpreter paths in /nix/store/ndmi0qzpw5zsl59623s1bls6vbh535l2-python3.11-aioesphomeapi-19.2.1-dist
Rewriting #!/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/bin/python3.11 to #!/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7
wrapping `/nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/bin/aioesphomeapi-discover'...
Rewriting #!/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/bin/python3.11 to #!/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7
wrapping `/nix/store/gr4csc7nkmjc8ihidsi8hxd3yghlfz3x-python3.11-aioesphomeapi-19.2.1/bin/aioesphomeapi-logs'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
Running phase: pythonRemoveBinBytecodePhase
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: aioesphomeapi
Running phase: pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
rootdir: /build/source
plugins: asyncio-0.23.2
asyncio: mode=Mode.STRICT
collected 339 items
tests/test__frame_helper.py ..........................FF..FEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EE.. [ 10%]
tests/test_client.py ................................................... [ 25%]
.............................EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
E [ 40%]
EException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
E...EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EE.EException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EE [ 46%]
tests/test_connection.py EException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
FEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EE..Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
E.EException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
E [ 54%]
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EEException ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
EE. [ 55%]
tests/test_host_resolver.py ................ [ 60%]
tests/test_log_runner.py ... [ 61%]
tests/test_model.py .................................................... [ 76%]
............................................. [ 89%]
tests/test_reconnect_logic.py ................. [ 94%]
tests/test_util.py .............. [ 98%]
tests/test_zeroconf.py .... [100%]
==================================== ERRORS ====================================
____________ ERROR at setup of test_eof_received_closes_connection _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737292775440'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff492d250>
fileobj = <MagicMock name='socket().fileno()' id='140737292775440'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737292775440'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_eof_received_closes_connection>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff492d250>
fileobj = <MagicMock name='socket().fileno()' id='140737292775440'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________ ERROR at teardown of test_eof_received_closes_connection ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737292775440'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4588910>
fileobj = <MagicMock name='socket().fileno()' id='140737292775440'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737292775440'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4588910>
fileobj = <MagicMock name='socket().fileno()' id='140737292775440'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______ ERROR at setup of test_connection_lost_closes_connection_and_logs _______
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293063376'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48fa210>
fileobj = <MagicMock name='socket().fileno()' id='140737293063376'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293063376'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_connection_lost_closes_connection_and_logs>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48fa210>
fileobj = <MagicMock name='socket().fileno()' id='140737293063376'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____ ERROR at teardown of test_connection_lost_closes_connection_and_logs _____
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293063376'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48d6050>
fileobj = <MagicMock name='socket().fileno()' id='140737293063376'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293063376'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48d6050>
fileobj = <MagicMock name='socket().fileno()' id='140737293063376'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________________ ERROR at setup of test_bluetooth_disconnect __________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291719056'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff459f650>
fileobj = <MagicMock name='socket().fileno()' id='140737291719056'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291719056'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_disconnect>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff459f650>
fileobj = <MagicMock name='socket().fileno()' id='140737291719056'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________ ERROR at teardown of test_bluetooth_disconnect ________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291719056'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff46399d0>
fileobj = <MagicMock name='socket().fileno()' id='140737291719056'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291719056'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff46399d0>
fileobj = <MagicMock name='socket().fileno()' id='140737291719056'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________________ ERROR at setup of test_bluetooth_pair _____________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293106768'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43d5c90>
fileobj = <MagicMock name='socket().fileno()' id='140737293106768'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293106768'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_pair>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43d5c90>
fileobj = <MagicMock name='socket().fileno()' id='140737293106768'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________________ ERROR at teardown of test_bluetooth_pair ___________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293106768'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff49e4f10>
fileobj = <MagicMock name='socket().fileno()' id='140737293106768'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293106768'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff49e4f10>
fileobj = <MagicMock name='socket().fileno()' id='140737293106768'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at setup of test_bluetooth_pair_connection_drops ____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293386128'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4380a90>
fileobj = <MagicMock name='socket().fileno()' id='140737293386128'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293386128'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_pair_connection_drops>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4380a90>
fileobj = <MagicMock name='socket().fileno()' id='140737293386128'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at teardown of test_bluetooth_pair_connection_drops ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293386128'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f90290>
fileobj = <MagicMock name='socket().fileno()' id='140737293386128'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293386128'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f90290>
fileobj = <MagicMock name='socket().fileno()' id='140737293386128'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________ ERROR at setup of test_bluetooth_unpair_connection_drops ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293632848'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f7b2d0>
fileobj = <MagicMock name='socket().fileno()' id='140737293632848'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293632848'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_unpair_connection_drops>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f7b2d0>
fileobj = <MagicMock name='socket().fileno()' id='140737293632848'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at teardown of test_bluetooth_unpair_connection_drops __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293632848'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4801490>
fileobj = <MagicMock name='socket().fileno()' id='140737293632848'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293632848'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4801490>
fileobj = <MagicMock name='socket().fileno()' id='140737293632848'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at setup of test_bluetooth_clear_cache_connection_drops _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286473168'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45738d0>
fileobj = <MagicMock name='socket().fileno()' id='140737286473168'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286473168'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_clear_cache_connection_drops>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45738d0>
fileobj = <MagicMock name='socket().fileno()' id='140737286473168'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______ ERROR at teardown of test_bluetooth_clear_cache_connection_drops _______
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286473168'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff458ad50>
fileobj = <MagicMock name='socket().fileno()' id='140737286473168'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286473168'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff458ad50>
fileobj = <MagicMock name='socket().fileno()' id='140737286473168'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________________ ERROR at setup of test_bluetooth_unpair ____________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287358352'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff42b74d0>
fileobj = <MagicMock name='socket().fileno()' id='140737287358352'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287358352'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_unpair>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff42b74d0>
fileobj = <MagicMock name='socket().fileno()' id='140737287358352'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________________ ERROR at teardown of test_bluetooth_unpair __________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287358352'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4383d10>
fileobj = <MagicMock name='socket().fileno()' id='140737287358352'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287358352'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4383d10>
fileobj = <MagicMock name='socket().fileno()' id='140737287358352'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________________ ERROR at setup of test_bluetooth_clear_cache _________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289136656'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f61190>
fileobj = <MagicMock name='socket().fileno()' id='140737289136656'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289136656'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_clear_cache>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f61190>
fileobj = <MagicMock name='socket().fileno()' id='140737289136656'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________ ERROR at teardown of test_bluetooth_clear_cache ________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289136656'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff54ef310>
fileobj = <MagicMock name='socket().fileno()' id='140737289136656'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289136656'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff54ef310>
fileobj = <MagicMock name='socket().fileno()' id='140737289136656'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________________ ERROR at setup of test_device_info ______________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290563792'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4668110>
fileobj = <MagicMock name='socket().fileno()' id='140737290563792'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290563792'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_device_info>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4668110>
fileobj = <MagicMock name='socket().fileno()' id='140737290563792'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________________ ERROR at teardown of test_device_info _____________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290563792'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff40b2850>
fileobj = <MagicMock name='socket().fileno()' id='140737290563792'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290563792'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff40b2850>
fileobj = <MagicMock name='socket().fileno()' id='140737290563792'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________________ ERROR at setup of test_bluetooth_gatt_read __________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737288314128'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45790d0>
fileobj = <MagicMock name='socket().fileno()' id='140737288314128'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737288314128'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_read>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45790d0>
fileobj = <MagicMock name='socket().fileno()' id='140737288314128'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________ ERROR at teardown of test_bluetooth_gatt_read _________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737288314128'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff403cad0>
fileobj = <MagicMock name='socket().fileno()' id='140737288314128'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737288314128'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff403cad0>
fileobj = <MagicMock name='socket().fileno()' id='140737288314128'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at setup of test_bluetooth_gatt_read_connection_drops __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289656208'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff436a210>
fileobj = <MagicMock name='socket().fileno()' id='140737289656208'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289656208'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_read_connection_drops>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff436a210>
fileobj = <MagicMock name='socket().fileno()' id='140737289656208'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at teardown of test_bluetooth_gatt_read_connection_drops ________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289656208'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff42886d0>
fileobj = <MagicMock name='socket().fileno()' id='140737289656208'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289656208'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff42886d0>
fileobj = <MagicMock name='socket().fileno()' id='140737289656208'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________ ERROR at setup of test_bluetooth_gatt_read_error _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295127696'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4203210>
fileobj = <MagicMock name='socket().fileno()' id='140737295127696'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295127696'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_read_error>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4203210>
fileobj = <MagicMock name='socket().fileno()' id='140737295127696'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____________ ERROR at teardown of test_bluetooth_gatt_read_error ______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295127696'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff47a1250>
fileobj = <MagicMock name='socket().fileno()' id='140737295127696'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295127696'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff47a1250>
fileobj = <MagicMock name='socket().fileno()' id='140737295127696'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at setup of test_bluetooth_gatt_read_descriptor _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737288292176'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48b36d0>
fileobj = <MagicMock name='socket().fileno()' id='140737288292176'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737288292176'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_read_descriptor>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48b36d0>
fileobj = <MagicMock name='socket().fileno()' id='140737288292176'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________ ERROR at teardown of test_bluetooth_gatt_read_descriptor ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737288292176'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff47a1b50>
fileobj = <MagicMock name='socket().fileno()' id='140737288292176'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737288292176'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff47a1b50>
fileobj = <MagicMock name='socket().fileno()' id='140737288292176'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________________ ERROR at setup of test_bluetooth_gatt_write __________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293118352'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4021550>
fileobj = <MagicMock name='socket().fileno()' id='140737293118352'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293118352'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_write>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4021550>
fileobj = <MagicMock name='socket().fileno()' id='140737293118352'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________ ERROR at teardown of test_bluetooth_gatt_write ________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293118352'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff44ce490>
fileobj = <MagicMock name='socket().fileno()' id='140737293118352'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293118352'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff44ce490>
fileobj = <MagicMock name='socket().fileno()' id='140737293118352'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at setup of test_bluetooth_gatt_write_connection_drops _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293046480'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff42e3cd0>
fileobj = <MagicMock name='socket().fileno()' id='140737293046480'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293046480'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_write_connection_drops>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff42e3cd0>
fileobj = <MagicMock name='socket().fileno()' id='140737293046480'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______ ERROR at teardown of test_bluetooth_gatt_write_connection_drops ________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293046480'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4882290>
fileobj = <MagicMock name='socket().fileno()' id='140737293046480'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293046480'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4882290>
fileobj = <MagicMock name='socket().fileno()' id='140737293046480'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at setup of test_bluetooth_gatt_write_without_response _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737296297616'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4486b90>
fileobj = <MagicMock name='socket().fileno()' id='140737296297616'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737296297616'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_write_without_response>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4486b90>
fileobj = <MagicMock name='socket().fileno()' id='140737296297616'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______ ERROR at teardown of test_bluetooth_gatt_write_without_response ________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737296297616'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff46da6d0>
fileobj = <MagicMock name='socket().fileno()' id='140737296297616'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737296297616'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff46da6d0>
fileobj = <MagicMock name='socket().fileno()' id='140737296297616'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at setup of test_bluetooth_gatt_write_descriptor ____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289686480'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff421f050>
fileobj = <MagicMock name='socket().fileno()' id='140737289686480'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289686480'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_write_descriptor>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff421f050>
fileobj = <MagicMock name='socket().fileno()' id='140737289686480'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at teardown of test_bluetooth_gatt_write_descriptor ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289686480'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48fcf90>
fileobj = <MagicMock name='socket().fileno()' id='140737289686480'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289686480'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48fcf90>
fileobj = <MagicMock name='socket().fileno()' id='140737289686480'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___ ERROR at setup of test_bluetooth_gatt_write_descriptor_without_response ____
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295353616'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3fa0b10>
fileobj = <MagicMock name='socket().fileno()' id='140737295353616'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295353616'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_write_descriptor_without_response>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3fa0b10>
fileobj = <MagicMock name='socket().fileno()' id='140737295353616'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__ ERROR at teardown of test_bluetooth_gatt_write_descriptor_without_response __
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295353616'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4801450>
fileobj = <MagicMock name='socket().fileno()' id='140737295353616'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295353616'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4801450>
fileobj = <MagicMock name='socket().fileno()' id='140737295353616'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____ ERROR at setup of test_bluetooth_gatt_get_services_connection_drops ______
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291612560'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff434ad90>
fileobj = <MagicMock name='socket().fileno()' id='140737291612560'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291612560'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_get_services_connection_drops>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff434ad90>
fileobj = <MagicMock name='socket().fileno()' id='140737291612560'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____ ERROR at teardown of test_bluetooth_gatt_get_services_connection_drops ____
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291612560'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4769610>
fileobj = <MagicMock name='socket().fileno()' id='140737291612560'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291612560'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4769610>
fileobj = <MagicMock name='socket().fileno()' id='140737291612560'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at setup of test_bluetooth_gatt_get_services ______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737297591888'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45e8750>
fileobj = <MagicMock name='socket().fileno()' id='140737297591888'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737297591888'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_get_services>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45e8750>
fileobj = <MagicMock name='socket().fileno()' id='140737297591888'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at teardown of test_bluetooth_gatt_get_services _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737297591888'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f92690>
fileobj = <MagicMock name='socket().fileno()' id='140737297591888'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737297591888'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f92690>
fileobj = <MagicMock name='socket().fileno()' id='140737297591888'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at setup of test_bluetooth_gatt_get_services_errors ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287766416'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4047750>
fileobj = <MagicMock name='socket().fileno()' id='140737287766416'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287766416'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_get_services_errors>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4047750>
fileobj = <MagicMock name='socket().fileno()' id='140737287766416'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at teardown of test_bluetooth_gatt_get_services_errors _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287766416'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45b7a50>
fileobj = <MagicMock name='socket().fileno()' id='140737287766416'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287766416'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45b7a50>
fileobj = <MagicMock name='socket().fileno()' id='140737287766416'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____ ERROR at setup of test_bluetooth_gatt_start_notify_connection_drops ______
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293100112'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff430fe90>
fileobj = <MagicMock name='socket().fileno()' id='140737293100112'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293100112'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_start_notify_connection_drops>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff430fe90>
fileobj = <MagicMock name='socket().fileno()' id='140737293100112'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____ ERROR at teardown of test_bluetooth_gatt_start_notify_connection_drops ____
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293100112'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff46f1b90>
fileobj = <MagicMock name='socket().fileno()' id='140737293100112'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293100112'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff46f1b90>
fileobj = <MagicMock name='socket().fileno()' id='140737293100112'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at setup of test_bluetooth_gatt_start_notify ______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287876944'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4087010>
fileobj = <MagicMock name='socket().fileno()' id='140737287876944'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287876944'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_start_notify>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4087010>
fileobj = <MagicMock name='socket().fileno()' id='140737287876944'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at teardown of test_bluetooth_gatt_start_notify _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287876944'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff426f990>
fileobj = <MagicMock name='socket().fileno()' id='140737287876944'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287876944'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff426f990>
fileobj = <MagicMock name='socket().fileno()' id='140737287876944'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________ ERROR at setup of test_bluetooth_gatt_start_notify_fails ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286970704'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48d6750>
fileobj = <MagicMock name='socket().fileno()' id='140737286970704'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286970704'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_gatt_start_notify_fails>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48d6750>
fileobj = <MagicMock name='socket().fileno()' id='140737286970704'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at teardown of test_bluetooth_gatt_start_notify_fails __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286970704'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3fec310>
fileobj = <MagicMock name='socket().fileno()' id='140737286970704'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286970704'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3fec310>
fileobj = <MagicMock name='socket().fileno()' id='140737286970704'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at setup of test_subscribe_bluetooth_le_advertisements _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291182288'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4657750>
fileobj = <MagicMock name='socket().fileno()' id='140737291182288'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291182288'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_subscribe_bluetooth_le_advertisements>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4657750>
fileobj = <MagicMock name='socket().fileno()' id='140737291182288'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______ ERROR at teardown of test_subscribe_bluetooth_le_advertisements ________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291182288'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f9fb10>
fileobj = <MagicMock name='socket().fileno()' id='140737291182288'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291182288'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f9fb10>
fileobj = <MagicMock name='socket().fileno()' id='140737291182288'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______ ERROR at setup of test_subscribe_bluetooth_le_raw_advertisements _______
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737288326096'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48cb150>
fileobj = <MagicMock name='socket().fileno()' id='140737288326096'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737288326096'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_subscribe_bluetooth_le_raw_advertisements>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48cb150>
fileobj = <MagicMock name='socket().fileno()' id='140737288326096'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____ ERROR at teardown of test_subscribe_bluetooth_le_raw_advertisements ______
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737288326096'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff5541c50>
fileobj = <MagicMock name='socket().fileno()' id='140737288326096'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737288326096'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff5541c50>
fileobj = <MagicMock name='socket().fileno()' id='140737288326096'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at setup of test_subscribe_bluetooth_connections_free __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293118096'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff600d890>
fileobj = <MagicMock name='socket().fileno()' id='140737293118096'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293118096'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_subscribe_bluetooth_connections_free>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff600d890>
fileobj = <MagicMock name='socket().fileno()' id='140737293118096'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at teardown of test_subscribe_bluetooth_connections_free ________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293118096'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4768990>
fileobj = <MagicMock name='socket().fileno()' id='140737293118096'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293118096'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4768990>
fileobj = <MagicMock name='socket().fileno()' id='140737293118096'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at setup of test_subscribe_home_assistant_states ____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737296764240'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff42b5110>
fileobj = <MagicMock name='socket().fileno()' id='140737296764240'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737296764240'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_subscribe_home_assistant_states>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff42b5110>
fileobj = <MagicMock name='socket().fileno()' id='140737296764240'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at teardown of test_subscribe_home_assistant_states ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737296764240'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43e55d0>
fileobj = <MagicMock name='socket().fileno()' id='140737296764240'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737296764240'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43e55d0>
fileobj = <MagicMock name='socket().fileno()' id='140737296764240'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________________ ERROR at setup of test_set_debug _______________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290698960'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff477e290>
fileobj = <MagicMock name='socket().fileno()' id='140737290698960'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290698960'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_set_debug>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff477e290>
fileobj = <MagicMock name='socket().fileno()' id='140737290698960'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____________________ ERROR at teardown of test_set_debug ______________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290698960'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45ca310>
fileobj = <MagicMock name='socket().fileno()' id='140737290698960'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290698960'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45ca310>
fileobj = <MagicMock name='socket().fileno()' id='140737290698960'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________________ ERROR at setup of test_force_disconnect ____________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290276368'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff41e9290>
fileobj = <MagicMock name='socket().fileno()' id='140737290276368'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290276368'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_force_disconnect>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff41e9290>
fileobj = <MagicMock name='socket().fileno()' id='140737290276368'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________________ ERROR at teardown of test_force_disconnect __________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290276368'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff443b710>
fileobj = <MagicMock name='socket().fileno()' id='140737290276368'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290276368'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff443b710>
fileobj = <MagicMock name='socket().fileno()' id='140737290276368'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at setup of test_bluetooth_device_connect[False-0-0] __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286956368'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4140050>
fileobj = <MagicMock name='socket().fileno()' id='140737286956368'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286956368'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_device_connect[False-0-0]>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4140050>
fileobj = <MagicMock name='socket().fileno()' id='140737286956368'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at teardown of test_bluetooth_device_connect[False-0-0] _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286956368'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4112cd0>
fileobj = <MagicMock name='socket().fileno()' id='140737286956368'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286956368'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4112cd0>
fileobj = <MagicMock name='socket().fileno()' id='140737286956368'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at setup of test_bluetooth_device_connect[False-4-5] __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295947344'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48b0550>
fileobj = <MagicMock name='socket().fileno()' id='140737295947344'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295947344'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_device_connect[False-4-5]>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48b0550>
fileobj = <MagicMock name='socket().fileno()' id='140737295947344'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at teardown of test_bluetooth_device_connect[False-4-5] _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295947344'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45be950>
fileobj = <MagicMock name='socket().fileno()' id='140737295947344'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295947344'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45be950>
fileobj = <MagicMock name='socket().fileno()' id='140737295947344'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at setup of test_bluetooth_device_connect[True-4-4] ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295425936'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff440c410>
fileobj = <MagicMock name='socket().fileno()' id='140737295425936'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295425936'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_device_connect[True-4-4]>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff440c410>
fileobj = <MagicMock name='socket().fileno()' id='140737295425936'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at teardown of test_bluetooth_device_connect[True-4-4] _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295425936'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff459ca90>
fileobj = <MagicMock name='socket().fileno()' id='140737295425936'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295425936'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff459ca90>
fileobj = <MagicMock name='socket().fileno()' id='140737295425936'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___ ERROR at setup of test_bluetooth_device_connect_and_disconnect_times_out ___
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737288793104'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4348050>
fileobj = <MagicMock name='socket().fileno()' id='140737288793104'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737288793104'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_device_connect_and_disconnect_times_out>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4348050>
fileobj = <MagicMock name='socket().fileno()' id='140737288793104'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at teardown of test_bluetooth_device_connect_and_disconnect_times_out __
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737288793104'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff464cdd0>
fileobj = <MagicMock name='socket().fileno()' id='140737288793104'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737288793104'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff464cdd0>
fileobj = <MagicMock name='socket().fileno()' id='140737288793104'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___ ERROR at setup of test_bluetooth_device_connect_times_out_disconnect_ok ____
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293755024'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4315690>
fileobj = <MagicMock name='socket().fileno()' id='140737293755024'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293755024'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_device_connect_times_out_disconnect_ok>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4315690>
fileobj = <MagicMock name='socket().fileno()' id='140737293755024'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__ ERROR at teardown of test_bluetooth_device_connect_times_out_disconnect_ok __
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737293755024'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4572ad0>
fileobj = <MagicMock name='socket().fileno()' id='140737293755024'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737293755024'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4572ad0>
fileobj = <MagicMock name='socket().fileno()' id='140737293755024'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at setup of test_bluetooth_device_connect_cancelled ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289891088'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff401ce50>
fileobj = <MagicMock name='socket().fileno()' id='140737289891088'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289891088'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bluetooth_device_connect_cancelled>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff401ce50>
fileobj = <MagicMock name='socket().fileno()' id='140737289891088'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at teardown of test_bluetooth_device_connect_cancelled _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289891088'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff426e2d0>
fileobj = <MagicMock name='socket().fileno()' id='140737289891088'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289891088'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff426e2d0>
fileobj = <MagicMock name='socket().fileno()' id='140737289891088'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________ ERROR at setup of test_subscribe_voice_assistant _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291665104'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff492f1d0>
fileobj = <MagicMock name='socket().fileno()' id='140737291665104'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291665104'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_subscribe_voice_assistant>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff492f1d0>
fileobj = <MagicMock name='socket().fileno()' id='140737291665104'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____________ ERROR at teardown of test_subscribe_voice_assistant ______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291665104'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff462c790>
fileobj = <MagicMock name='socket().fileno()' id='140737291665104'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291665104'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff462c790>
fileobj = <MagicMock name='socket().fileno()' id='140737291665104'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________ ERROR at setup of test_subscribe_voice_assistant_failure ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291776016'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4139590>
fileobj = <MagicMock name='socket().fileno()' id='140737291776016'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291776016'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_subscribe_voice_assistant_failure>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4139590>
fileobj = <MagicMock name='socket().fileno()' id='140737291776016'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at teardown of test_subscribe_voice_assistant_failure __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291776016'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4184bd0>
fileobj = <MagicMock name='socket().fileno()' id='140737291776016'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291776016'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4184bd0>
fileobj = <MagicMock name='socket().fileno()' id='140737291776016'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at setup of test_subscribe_voice_assistant_cancels_long_running_handle_start _
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285628944'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e92a90>
fileobj = <MagicMock name='socket().fileno()' id='140737285628944'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285628944'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_subscribe_voice_assistant_cancels_long_running_handle_start>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e92a90>
fileobj = <MagicMock name='socket().fileno()' id='140737285628944'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at teardown of test_subscribe_voice_assistant_cancels_long_running_handle_start _
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285628944'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48fbd90>
fileobj = <MagicMock name='socket().fileno()' id='140737285628944'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285628944'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48fbd90>
fileobj = <MagicMock name='socket().fileno()' id='140737285628944'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at setup of test_api_version_after_connection_closed __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290310288'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e7bc90>
fileobj = <MagicMock name='socket().fileno()' id='140737290310288'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290310288'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_api_version_after_connection_closed>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e7bc90>
fileobj = <MagicMock name='socket().fileno()' id='140737290310288'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at teardown of test_api_version_after_connection_closed _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290310288'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff459f0d0>
fileobj = <MagicMock name='socket().fileno()' id='140737290310288'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290310288'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff459f0d0>
fileobj = <MagicMock name='socket().fileno()' id='140737290310288'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________________ ERROR at setup of test_connect ________________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289684176'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e77e90>
fileobj = <MagicMock name='socket().fileno()' id='140737289684176'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289684176'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_connect>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e77e90>
fileobj = <MagicMock name='socket().fileno()' id='140737289684176'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________________ ERROR at teardown of test_connect _______________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289684176'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff47bad10>
fileobj = <MagicMock name='socket().fileno()' id='140737289684176'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289684176'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff47bad10>
fileobj = <MagicMock name='socket().fileno()' id='140737289684176'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________ ERROR at setup of test_timeout_sending_message ________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285625680'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4390690>
fileobj = <MagicMock name='socket().fileno()' id='140737285625680'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285625680'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_timeout_sending_message>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4390690>
fileobj = <MagicMock name='socket().fileno()' id='140737285625680'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at teardown of test_timeout_sending_message _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285625680'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff41b54d0>
fileobj = <MagicMock name='socket().fileno()' id='140737285625680'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285625680'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff41b54d0>
fileobj = <MagicMock name='socket().fileno()' id='140737285625680'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at setup of test_disconnect_when_not_fully_connected __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287348432'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4930090>
fileobj = <MagicMock name='socket().fileno()' id='140737287348432'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287348432'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_disconnect_when_not_fully_connected>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4930090>
fileobj = <MagicMock name='socket().fileno()' id='140737287348432'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at teardown of test_disconnect_when_not_fully_connected _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287348432'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff469e4d0>
fileobj = <MagicMock name='socket().fileno()' id='140737287348432'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287348432'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff469e4d0>
fileobj = <MagicMock name='socket().fileno()' id='140737287348432'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________________ ERROR at setup of test_plaintext_connection __________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290310096'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff47713d0>
fileobj = <MagicMock name='socket().fileno()' id='140737290310096'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290310096'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_plaintext_connection>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff47713d0>
fileobj = <MagicMock name='socket().fileno()' id='140737290310096'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________ ERROR at teardown of test_plaintext_connection ________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290310096'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e5f9d0>
fileobj = <MagicMock name='socket().fileno()' id='140737290310096'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290310096'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e5f9d0>
fileobj = <MagicMock name='socket().fileno()' id='140737290310096'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____________ ERROR at setup of test_start_connection_socket_error _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286376528'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f82a90>
fileobj = <MagicMock name='socket().fileno()' id='140737286376528'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286376528'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_start_connection_socket_error>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f82a90>
fileobj = <MagicMock name='socket().fileno()' id='140737286376528'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________ ERROR at teardown of test_start_connection_socket_error ____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286376528'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3ead5d0>
fileobj = <MagicMock name='socket().fileno()' id='140737286376528'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286376528'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3ead5d0>
fileobj = <MagicMock name='socket().fileno()' id='140737286376528'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at setup of test_start_connection_times_out _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737297406544'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff46554d0>
fileobj = <MagicMock name='socket().fileno()' id='140737297406544'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737297406544'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_start_connection_times_out>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff46554d0>
fileobj = <MagicMock name='socket().fileno()' id='140737297406544'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____________ ERROR at teardown of test_start_connection_times_out _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737297406544'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43809d0>
fileobj = <MagicMock name='socket().fileno()' id='140737297406544'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737297406544'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43809d0>
fileobj = <MagicMock name='socket().fileno()' id='140737297406544'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________ ERROR at setup of test_start_connection_os_error _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295263440'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff422ca90>
fileobj = <MagicMock name='socket().fileno()' id='140737295263440'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295263440'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_start_connection_os_error>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff422ca90>
fileobj = <MagicMock name='socket().fileno()' id='140737295263440'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____________ ERROR at teardown of test_start_connection_os_error ______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737295263440'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff464fed0>
fileobj = <MagicMock name='socket().fileno()' id='140737295263440'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737295263440'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff464fed0>
fileobj = <MagicMock name='socket().fileno()' id='140737295263440'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____________ ERROR at setup of test_start_connection_is_cancelled _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737294840720'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43239d0>
fileobj = <MagicMock name='socket().fileno()' id='140737294840720'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737294840720'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_start_connection_is_cancelled>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43239d0>
fileobj = <MagicMock name='socket().fileno()' id='140737294840720'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________ ERROR at teardown of test_start_connection_is_cancelled ____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737294840720'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f9ea90>
fileobj = <MagicMock name='socket().fileno()' id='140737294840720'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737294840720'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f9ea90>
fileobj = <MagicMock name='socket().fileno()' id='140737294840720'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at setup of test_finish_connection_is_cancelled _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287153488'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f77a10>
fileobj = <MagicMock name='socket().fileno()' id='140737287153488'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287153488'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_finish_connection_is_cancelled>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f77a10>
fileobj = <MagicMock name='socket().fileno()' id='140737287153488'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
___________ ERROR at teardown of test_finish_connection_is_cancelled ___________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287153488'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3ea46d0>
fileobj = <MagicMock name='socket().fileno()' id='140737287153488'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287153488'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3ea46d0>
fileobj = <MagicMock name='socket().fileno()' id='140737287153488'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at setup of test_finish_connection_times_out ______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291728400'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff409a790>
fileobj = <MagicMock name='socket().fileno()' id='140737291728400'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291728400'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_finish_connection_times_out>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff409a790>
fileobj = <MagicMock name='socket().fileno()' id='140737291728400'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at teardown of test_finish_connection_times_out _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291728400'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4187e90>
fileobj = <MagicMock name='socket().fileno()' id='140737291728400'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291728400'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4187e90>
fileobj = <MagicMock name='socket().fileno()' id='140737291728400'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at setup of test_plaintext_connection_fails_handshake[exception_map0] __
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285547856'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43939d0>
fileobj = <MagicMock name='socket().fileno()' id='140737285547856'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285547856'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_plaintext_connection_fails_handshake[exception_map0]>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43939d0>
fileobj = <MagicMock name='socket().fileno()' id='140737285547856'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at teardown of test_plaintext_connection_fails_handshake[exception_map0] _
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285547856'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4136250>
fileobj = <MagicMock name='socket().fileno()' id='140737285547856'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285547856'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4136250>
fileobj = <MagicMock name='socket().fileno()' id='140737285547856'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at setup of test_plaintext_connection_fails_handshake[exception_map1] __
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285319440'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4022450>
fileobj = <MagicMock name='socket().fileno()' id='140737285319440'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285319440'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_plaintext_connection_fails_handshake[exception_map1]>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4022450>
fileobj = <MagicMock name='socket().fileno()' id='140737285319440'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at teardown of test_plaintext_connection_fails_handshake[exception_map1] _
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285319440'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43a5010>
fileobj = <MagicMock name='socket().fileno()' id='140737285319440'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285319440'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43a5010>
fileobj = <MagicMock name='socket().fileno()' id='140737285319440'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at setup of test_plaintext_connection_fails_handshake[exception_map2] __
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737294843728'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff466b4d0>
fileobj = <MagicMock name='socket().fileno()' id='140737294843728'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737294843728'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_plaintext_connection_fails_handshake[exception_map2]>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff466b4d0>
fileobj = <MagicMock name='socket().fileno()' id='140737294843728'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_ ERROR at teardown of test_plaintext_connection_fails_handshake[exception_map2] _
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737294843728'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff459c310>
fileobj = <MagicMock name='socket().fileno()' id='140737294843728'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737294843728'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff459c310>
fileobj = <MagicMock name='socket().fileno()' id='140737294843728'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________ ERROR at setup of test_connect_wrong_password _________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737296756304'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e677d0>
fileobj = <MagicMock name='socket().fileno()' id='140737296756304'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737296756304'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_connect_wrong_password>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3e677d0>
fileobj = <MagicMock name='socket().fileno()' id='140737296756304'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________ ERROR at teardown of test_connect_wrong_password _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737296756304'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff41eb750>
fileobj = <MagicMock name='socket().fileno()' id='140737296756304'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737296756304'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff41eb750>
fileobj = <MagicMock name='socket().fileno()' id='140737296756304'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________ ERROR at setup of test_connect_correct_password ________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285824464'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4167150>
fileobj = <MagicMock name='socket().fileno()' id='140737285824464'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285824464'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_connect_correct_password>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4167150>
fileobj = <MagicMock name='socket().fileno()' id='140737285824464'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at teardown of test_connect_correct_password ______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285824464'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff413af50>
fileobj = <MagicMock name='socket().fileno()' id='140737285824464'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285824464'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff413af50>
fileobj = <MagicMock name='socket().fileno()' id='140737285824464'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________________ ERROR at setup of test_connect_wrong_version _________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286067024'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4392bd0>
fileobj = <MagicMock name='socket().fileno()' id='140737286067024'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286067024'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_connect_wrong_version>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4392bd0>
fileobj = <MagicMock name='socket().fileno()' id='140737286067024'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________ ERROR at teardown of test_connect_wrong_version ________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286067024'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff403fb10>
fileobj = <MagicMock name='socket().fileno()' id='140737286067024'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286067024'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff403fb10>
fileobj = <MagicMock name='socket().fileno()' id='140737286067024'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________________ ERROR at setup of test_connect_wrong_name ___________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290604368'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff40b1b90>
fileobj = <MagicMock name='socket().fileno()' id='140737290604368'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290604368'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_connect_wrong_name>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff40b1b90>
fileobj = <MagicMock name='socket().fileno()' id='140737290604368'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________________ ERROR at teardown of test_connect_wrong_name _________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737290604368'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4348910>
fileobj = <MagicMock name='socket().fileno()' id='140737290604368'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737290604368'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4348910>
fileobj = <MagicMock name='socket().fileno()' id='140737290604368'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________ ERROR at setup of test_force_disconnect_fails _________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285328080'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4301710>
fileobj = <MagicMock name='socket().fileno()' id='140737285328080'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285328080'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_force_disconnect_fails>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4301710>
fileobj = <MagicMock name='socket().fileno()' id='140737285328080'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______________ ERROR at teardown of test_force_disconnect_fails _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285328080'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45cb750>
fileobj = <MagicMock name='socket().fileno()' id='140737285328080'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285328080'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45cb750>
fileobj = <MagicMock name='socket().fileno()' id='140737285328080'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at setup of test_connect_resolver_times_out _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737296141584'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4164cd0>
fileobj = <MagicMock name='socket().fileno()' id='140737296141584'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737296141584'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_connect_resolver_times_out>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4164cd0>
fileobj = <MagicMock name='socket().fileno()' id='140737296141584'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____________ ERROR at teardown of test_connect_resolver_times_out _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737296141584'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff41c1a50>
fileobj = <MagicMock name='socket().fileno()' id='140737296141584'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737296141584'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff41c1a50>
fileobj = <MagicMock name='socket().fileno()' id='140737296141584'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
__________ ERROR at setup of test_ping_disconnects_after_no_responses __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289136400'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff49ab850>
fileobj = <MagicMock name='socket().fileno()' id='140737289136400'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289136400'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_ping_disconnects_after_no_responses>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff49ab850>
fileobj = <MagicMock name='socket().fileno()' id='140737289136400'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at teardown of test_ping_disconnects_after_no_responses _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289136400'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff463ba90>
fileobj = <MagicMock name='socket().fileno()' id='140737289136400'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289136400'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff463ba90>
fileobj = <MagicMock name='socket().fileno()' id='140737289136400'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_____ ERROR at setup of test_ping_does_not_disconnect_if_we_get_responses ______
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291653520'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f165d0>
fileobj = <MagicMock name='socket().fileno()' id='140737291653520'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291653520'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_ping_does_not_disconnect_if_we_get_responses>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f165d0>
fileobj = <MagicMock name='socket().fileno()' id='140737291653520'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____ ERROR at teardown of test_ping_does_not_disconnect_if_we_get_responses ____
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737291653520'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f78790>
fileobj = <MagicMock name='socket().fileno()' id='140737291653520'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737291653520'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3f78790>
fileobj = <MagicMock name='socket().fileno()' id='140737291653520'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________________ ERROR at setup of test_respond_to_ping_request ________________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289697360'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43aeb50>
fileobj = <MagicMock name='socket().fileno()' id='140737289697360'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289697360'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_respond_to_ping_request>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43aeb50>
fileobj = <MagicMock name='socket().fileno()' id='140737289697360'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at teardown of test_respond_to_ping_request _______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737289697360'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff477ae90>
fileobj = <MagicMock name='socket().fileno()' id='140737289697360'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737289697360'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff477ae90>
fileobj = <MagicMock name='socket().fileno()' id='140737289697360'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at setup of test_unknown_protobuf_message_type_logged __________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285508368'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48b3150>
fileobj = <MagicMock name='socket().fileno()' id='140737285508368'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285508368'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_unknown_protobuf_message_type_logged>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff48b3150>
fileobj = <MagicMock name='socket().fileno()' id='140737285508368'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
________ ERROR at teardown of test_unknown_protobuf_message_type_logged ________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737285508368'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4772f90>
fileobj = <MagicMock name='socket().fileno()' id='140737285508368'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737285508368'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4772f90>
fileobj = <MagicMock name='socket().fileno()' id='140737285508368'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_________ ERROR at setup of test_bad_protobuf_message_drops_connection _________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287622608'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43d7a10>
fileobj = <MagicMock name='socket().fileno()' id='140737287622608'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287622608'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_bad_protobuf_message_drops_connection>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff43d7a10>
fileobj = <MagicMock name='socket().fileno()' id='140737287622608'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
_______ ERROR at teardown of test_bad_protobuf_message_drops_connection ________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737287622608'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45e8890>
fileobj = <MagicMock name='socket().fileno()' id='140737287622608'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737287622608'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff45e8890>
fileobj = <MagicMock name='socket().fileno()' id='140737287622608'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
______________ ERROR at setup of test_connection_cannot_be_reused ______________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286545552'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3eb0750>
fileobj = <MagicMock name='socket().fileno()' id='140737286545552'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286545552'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
fixturedef = <FixtureDef argname='event_loop' scope='function' baseid=''>
request = <SubRequest 'event_loop' for <Coroutine test_connection_cannot_be_reused>>
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(
fixturedef: FixtureDef, request: SubRequest
) -> Optional[object]:
"""Adjust the event loop policy when an event loop is produced."""
if fixturedef.argname == "event_loop":
# The use of a fixture finalizer is preferred over the
# pytest_fixture_post_finalizer hook. The fixture finalizer is invoked once
# for each fixture, whereas the hook may be invoked multiple times for
# any specific fixture.
# see https://github.com/pytest-dev/pytest/issues/5848
_add_finalizers(
fixturedef,
_close_event_loop,
_restore_event_loop_policy(asyncio.get_event_loop_policy()),
_provide_clean_event_loop,
)
outcome = yield
> loop = outcome.get_result()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:736:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:950: in event_loop
loop = asyncio.get_event_loop_policy().new_event_loop()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff3eb0750>
fileobj = <MagicMock name='socket().fileno()' id='140737286545552'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
____________ ERROR at teardown of test_connection_cannot_be_reused _____________
self = <_UnixSelectorEventLoop running=False closed=False debug=False>
fd = <MagicMock name='socket().fileno()' id='140737286545552'>
callback = <bound method BaseSelectorEventLoop._read_from_self of <_UnixSelectorEventLoop running=False closed=False debug=False>>
args = (), handle = <Handle BaseSelectorEventLoop._read_from_self()>
def _add_reader(self, fd, callback, *args):
self._check_closed()
handle = events.Handle(callback, args, self, None)
try:
> key = self._selector.get_key(fd)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:265:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4493f50>
fileobj = <MagicMock name='socket().fileno()' id='140737286545552'>
def get_key(self, fileobj):
"""Return the key associated to a registered file object.
Returns:
SelectorKey for this file object
"""
mapping = self.get_map()
if mapping is None:
raise RuntimeError('Selector is closed')
try:
return mapping[fileobj]
except KeyError:
> raise KeyError("{!r} is not registered".format(fileobj)) from None
E KeyError: "<MagicMock name='socket().fileno()' id='140737286545552'> is not registered"
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:192: KeyError
During handling of the above exception, another exception occurred:
def _provide_clean_event_loop() -> None:
# At this point, the event loop for the current thread is closed.
# When a user calls asyncio.get_event_loop(), they will get a closed loop.
# In order to avoid this side effect from pytest-asyncio, we need to replace
# the current loop with a fresh one.
# Note that we cannot set the loop to None, because get_event_loop only creates
# a new loop, when set_event_loop has not been called.
policy = asyncio.get_event_loop_policy()
> new_loop = policy.new_event_loop()
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/events.py:695: in new_event_loop
return self._loop_factory()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py:64: in __init__
super().__init__(selector)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:56: in __init__
self._make_self_pipe()
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:111: in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/selector_events.py:267: in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.EpollSelector object at 0x7ffff4493f50>
fileobj = <MagicMock name='socket().fileno()' id='140737286545552'>, events = 1
data = (<Handle BaseSelectorEventLoop._read_from_self()>, None)
def register(self, fileobj, events, data=None):
key = super().register(fileobj, events, data)
poller_events = 0
if events & EVENT_READ:
poller_events |= self._EVENT_READ
if events & EVENT_WRITE:
poller_events |= self._EVENT_WRITE
try:
> self._selector.register(key.fd, poller_events)
E PermissionError: [Errno 1] Operation not permitted
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/selectors.py:359: PermissionError
=================================== FAILURES ===================================
___________________ test_init_plaintext_with_wrong_preamble ____________________
conn = <tests.conftest.PatchableAPIConnection object at 0x7ffff476c550>
@pytest.mark.asyncio
async def test_init_plaintext_with_wrong_preamble(conn: APIConnection):
loop = asyncio.get_event_loop()
protocol = get_mock_protocol(conn)
with patch.object(loop, "create_connection") as create_connection:
create_connection.return_value = (MagicMock(), protocol)
conn._socket = MagicMock()
> await conn._connect_init_frame_helper()
tests/test__frame_helper.py:602:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
aioesphomeapi/connection.py:377: in _connect_init_frame_helper
_, fh = await self._loop.create_connection( # type: ignore[type-var]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_UnixSelectorEventLoop running=False closed=True debug=False>
protocol_factory = <function APIConnection._connect_init_frame_helper.<locals>.<lambda> at 0x7ffff4812840>
host = None, port = None
async def create_connection(
self, protocol_factory, host=None, port=None,
*, ssl=None, family=0,
proto=0, flags=0, sock=None,
local_addr=None, server_hostname=None,
ssl_handshake_timeout=None,
ssl_shutdown_timeout=None,
happy_eyeballs_delay=None, interleave=None):
"""Connect to a TCP server.
Create a streaming transport connection to a given internet host and
port: socket family AF_INET or socket.AF_INET6 depending on host (or
family if specified), socket type SOCK_STREAM. protocol_factory must be
a callable returning a protocol instance.
This method is a coroutine which will try to establish the connection
in the background. When successful, the coroutine returns a
(transport, protocol) pair.
"""
if server_hostname is not None and not ssl:
raise ValueError('server_hostname is only meaningful with ssl')
if server_hostname is None and ssl:
# Use host as default for server_hostname. It is an error
# if host is empty or not set, e.g. when an
# already-connected socket was passed or when only a port
# is given. To avoid this error, you can pass
# server_hostname='' -- this will bypass the hostname
# check. (This also means that if host is a numeric
# IP/IPv6 address, we will attempt to verify that exact
# address; this will probably fail, but it is possible to
# create a certificate for a specific IP address, so we
# don't judge it here.)
if not host:
raise ValueError('You must set server_hostname '
'when using ssl without a host')
server_hostname = host
if ssl_handshake_timeout is not None and not ssl:
raise ValueError(
'ssl_handshake_timeout is only meaningful with ssl')
if ssl_shutdown_timeout is not None and not ssl:
raise ValueError(
'ssl_shutdown_timeout is only meaningful with ssl')
if sock is not None:
_check_ssl_socket(sock)
if happy_eyeballs_delay is not None and interleave is None:
# If using happy eyeballs, default to interleave addresses by family
interleave = 1
if host is not None or port is not None:
if sock is not None:
raise ValueError(
'host/port and sock can not be specified at the same time')
infos = await self._ensure_resolved(
(host, port), family=family,
type=socket.SOCK_STREAM, proto=proto, flags=flags, loop=self)
if not infos:
raise OSError('getaddrinfo() returned empty list')
if local_addr is not None:
laddr_infos = await self._ensure_resolved(
local_addr, family=family,
type=socket.SOCK_STREAM, proto=proto,
flags=flags, loop=self)
if not laddr_infos:
raise OSError('getaddrinfo() returned empty list')
else:
laddr_infos = None
if interleave:
infos = _interleave_addrinfos(infos, interleave)
exceptions = []
if happy_eyeballs_delay is None:
# not using happy eyeballs
for addrinfo in infos:
try:
sock = await self._connect_sock(
exceptions, addrinfo, laddr_infos)
break
except OSError:
continue
else: # using happy eyeballs
sock, _, _ = await staggered.staggered_race(
(functools.partial(self._connect_sock,
exceptions, addrinfo, laddr_infos)
for addrinfo in infos),
happy_eyeballs_delay, loop=self)
if sock is None:
exceptions = [exc for sub in exceptions for exc in sub]
try:
if len(exceptions) == 1:
raise exceptions[0]
else:
# If they all have the same str(), raise one.
model = str(exceptions[0])
if all(str(exc) == model for exc in exceptions):
raise exceptions[0]
# Raise a combined exception so the user can see all
# the various error messages.
raise OSError('Multiple exceptions: {}'.format(
', '.join(str(exc) for exc in exceptions)))
finally:
exceptions = None
else:
if sock is None:
raise ValueError(
'host and port was not specified and no sock specified')
if sock.type != socket.SOCK_STREAM:
# We allow AF_INET, AF_INET6, AF_UNIX as long as they
# are SOCK_STREAM.
# We support passing AF_UNIX sockets even though we have
# a dedicated API for that: create_unix_connection.
# Disallowing AF_UNIX in this method, breaks backwards
# compatibility.
> raise ValueError(
f'A Stream Socket was expected, got {sock!r}')
E ValueError: A Stream Socket was expected, got <MagicMock id='140737296145424'>
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py:1109: ValueError
____________________ test_init_noise_with_wrong_byte_marker ____________________
noise_conn = <tests.conftest.PatchableAPIConnection object at 0x7ffff476c250>
@pytest.mark.asyncio
async def test_init_noise_with_wrong_byte_marker(noise_conn: APIConnection) -> None:
loop = asyncio.get_event_loop()
transport = MagicMock()
protocol: APINoiseFrameHelper | None = None
async def _create_connection(create, sock, *args, **kwargs):
nonlocal protocol
protocol = create()
protocol.connection_made(transport)
return transport, protocol
with patch.object(loop, "create_connection", side_effect=_create_connection):
task = asyncio.create_task(noise_conn._connect_init_frame_helper())
await asyncio.sleep(0)
> assert protocol is not None
E assert None is not None
tests/test__frame_helper.py:631: AssertionError
______________ test_init_noise_attempted_when_esp_uses_plaintext _______________
noise_conn = <tests.conftest.PatchableAPIConnection object at 0x7ffff476d050>
@pytest.mark.asyncio
async def test_init_noise_attempted_when_esp_uses_plaintext(
noise_conn: APIConnection,
) -> None:
loop = asyncio.get_event_loop()
transport = MagicMock()
protocol: APINoiseFrameHelper | None = None
async def _create_connection(create, sock, *args, **kwargs):
nonlocal protocol
protocol = create()
protocol.connection_made(transport)
return transport, protocol
with patch.object(loop, "create_connection", side_effect=_create_connection):
task = asyncio.create_task(noise_conn._connect_init_frame_helper())
await asyncio.sleep(0)
> assert isinstance(noise_conn._frame_helper, APINoiseFrameHelper)
E assert False
E + where False = isinstance(None, APINoiseFrameHelper)
E + where None = <tests.conftest.PatchableAPIConnection object at 0x7ffff476d050>._frame_helper
tests/test__frame_helper.py:701: AssertionError
_____________________ test_requires_encryption_propagates ______________________
conn = <tests.conftest.PatchableAPIConnection object at 0x7ffff476cd50>
@pytest.mark.asyncio
async def test_requires_encryption_propagates(conn: APIConnection):
loop = asyncio.get_event_loop()
protocol = get_mock_protocol(conn)
with patch.object(loop, "create_connection") as create_connection:
create_connection.return_value = (MagicMock(), protocol)
conn._socket = MagicMock()
> await conn._connect_init_frame_helper()
tests/test_connection.py:162:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
aioesphomeapi/connection.py:377: in _connect_init_frame_helper
_, fh = await self._loop.create_connection( # type: ignore[type-var]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_UnixSelectorEventLoop running=False closed=True debug=False>
protocol_factory = <function APIConnection._connect_init_frame_helper.<locals>.<lambda> at 0x7ffff4374ae0>
host = None, port = None
async def create_connection(
self, protocol_factory, host=None, port=None,
*, ssl=None, family=0,
proto=0, flags=0, sock=None,
local_addr=None, server_hostname=None,
ssl_handshake_timeout=None,
ssl_shutdown_timeout=None,
happy_eyeballs_delay=None, interleave=None):
"""Connect to a TCP server.
Create a streaming transport connection to a given internet host and
port: socket family AF_INET or socket.AF_INET6 depending on host (or
family if specified), socket type SOCK_STREAM. protocol_factory must be
a callable returning a protocol instance.
This method is a coroutine which will try to establish the connection
in the background. When successful, the coroutine returns a
(transport, protocol) pair.
"""
if server_hostname is not None and not ssl:
raise ValueError('server_hostname is only meaningful with ssl')
if server_hostname is None and ssl:
# Use host as default for server_hostname. It is an error
# if host is empty or not set, e.g. when an
# already-connected socket was passed or when only a port
# is given. To avoid this error, you can pass
# server_hostname='' -- this will bypass the hostname
# check. (This also means that if host is a numeric
# IP/IPv6 address, we will attempt to verify that exact
# address; this will probably fail, but it is possible to
# create a certificate for a specific IP address, so we
# don't judge it here.)
if not host:
raise ValueError('You must set server_hostname '
'when using ssl without a host')
server_hostname = host
if ssl_handshake_timeout is not None and not ssl:
raise ValueError(
'ssl_handshake_timeout is only meaningful with ssl')
if ssl_shutdown_timeout is not None and not ssl:
raise ValueError(
'ssl_shutdown_timeout is only meaningful with ssl')
if sock is not None:
_check_ssl_socket(sock)
if happy_eyeballs_delay is not None and interleave is None:
# If using happy eyeballs, default to interleave addresses by family
interleave = 1
if host is not None or port is not None:
if sock is not None:
raise ValueError(
'host/port and sock can not be specified at the same time')
infos = await self._ensure_resolved(
(host, port), family=family,
type=socket.SOCK_STREAM, proto=proto, flags=flags, loop=self)
if not infos:
raise OSError('getaddrinfo() returned empty list')
if local_addr is not None:
laddr_infos = await self._ensure_resolved(
local_addr, family=family,
type=socket.SOCK_STREAM, proto=proto,
flags=flags, loop=self)
if not laddr_infos:
raise OSError('getaddrinfo() returned empty list')
else:
laddr_infos = None
if interleave:
infos = _interleave_addrinfos(infos, interleave)
exceptions = []
if happy_eyeballs_delay is None:
# not using happy eyeballs
for addrinfo in infos:
try:
sock = await self._connect_sock(
exceptions, addrinfo, laddr_infos)
break
except OSError:
continue
else: # using happy eyeballs
sock, _, _ = await staggered.staggered_race(
(functools.partial(self._connect_sock,
exceptions, addrinfo, laddr_infos)
for addrinfo in infos),
happy_eyeballs_delay, loop=self)
if sock is None:
exceptions = [exc for sub in exceptions for exc in sub]
try:
if len(exceptions) == 1:
raise exceptions[0]
else:
# If they all have the same str(), raise one.
model = str(exceptions[0])
if all(str(exc) == model for exc in exceptions):
raise exceptions[0]
# Raise a combined exception so the user can see all
# the various error messages.
raise OSError('Multiple exceptions: {}'.format(
', '.join(str(exc) for exc in exceptions)))
finally:
exceptions = None
else:
if sock is None:
raise ValueError(
'host and port was not specified and no sock specified')
if sock.type != socket.SOCK_STREAM:
# We allow AF_INET, AF_INET6, AF_UNIX as long as they
# are SOCK_STREAM.
# We support passing AF_UNIX sockets even though we have
# a dedicated API for that: create_unix_connection.
# Disallowing AF_UNIX in this method, breaks backwards
# compatibility.
> raise ValueError(
f'A Stream Socket was expected, got {sock!r}')
E ValueError: A Stream Socket was expected, got <MagicMock id='140737294884560'>
/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py:1109: ValueError
=============================== warnings summary ===============================
../../nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:231
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:231: PytestDeprecationWarning: api_client is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
warnings.warn(
../../nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:231
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:231: PytestDeprecationWarning: plaintext_connect_task_no_login is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
warnings.warn(
../../nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:231
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:231: PytestDeprecationWarning: plaintext_connect_task_no_login_with_expected_name is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
warnings.warn(
../../nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:231
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:231: PytestDeprecationWarning: plaintext_connect_task_with_login is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
warnings.warn(
tests/test_client.py:215
tests/test_client.py:215: PytestDeprecationWarning: test_request_while_handshaking is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_connection.py:552
tests/test_connection.py:552: PytestDeprecationWarning: test_connect_resolver_times_out is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_connection.py:572
tests/test_connection.py:572: PytestDeprecationWarning: test_disconnect_fails_to_send_response is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_connection.py:622
tests/test_connection.py:622: PytestDeprecationWarning: test_disconnect_success_case is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_host_resolver.py:105
tests/test_host_resolver.py:105: PytestDeprecationWarning: test_resolve_host_getaddrinfo is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_host_resolver.py:130
tests/test_host_resolver.py:130: PytestDeprecationWarning: test_resolve_host_getaddrinfo_oserror is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_log_runner.py:32
tests/test_log_runner.py:32: PytestDeprecationWarning: test_log_runner is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_log_runner.py:94
tests/test_log_runner.py:94: PytestDeprecationWarning: test_log_runner_reconnects_on_disconnect is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_log_runner.py:171
tests/test_log_runner.py:171: PytestDeprecationWarning: test_log_runner_reconnects_on_subscribe_failure is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_reconnect_logic.py:674
tests/test_reconnect_logic.py:674: PytestDeprecationWarning: test_handling_unexpected_disconnect is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test_reconnect_logic.py:747
tests/test_reconnect_logic.py:747: PytestDeprecationWarning: test_backoff_on_encryption_error is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
@pytest.mark.asyncio
tests/test__frame_helper.py::test_eof_received_closes_connection
tests/test_client.py::test_bluetooth_disconnect
tests/test_client.py::test_set_debug
tests/test_client.py::test_subscribe_voice_assistant
tests/test_connection.py::test_plaintext_connection
tests/test_connection.py::test_ping_disconnects_after_no_responses
/nix/store/cpbwm0810h2lv8pcjs8y0w79p8m18hcb-python3.11-pytest-asyncio-0.23.2/lib/python3.11/site-packages/pytest_asyncio/plugin.py:800: DeprecationWarning: pytest-asyncio detected an unclosed event loop when tearing down the event_loop
fixture: <_UnixSelectorEventLoop running=False closed=False debug=False>
pytest-asyncio will close the event loop for you, but future versions of the
library will no longer do so. In order to ensure compatibility with future
versions, please make sure that:
1. Any custom "event_loop" fixture properly closes the loop after yielding it
2. The scopes of your custom "event_loop" fixtures do not overlap
3. Your code does not modify the event loop in async fixtures or tests
warnings.warn(
tests/test_client.py::test_text_command[cmd1-req1]
tests/test_connection.py::test_connect_wrong_password
/nix/store/hbss5rrvfa3b7zvskamlsdwqsmnlx77q-python3.11-pytest-7.4.3/lib/python3.11/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 70, in close
for sig in list(self._signal_handlers):
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test__frame_helper.py::test_init_plaintext_with_wrong_preamble - ValueError: A Stream Socket was expected, got <MagicMock id='140737296145424'>
FAILED tests/test__frame_helper.py::test_init_noise_with_wrong_byte_marker - assert None is not None
FAILED tests/test__frame_helper.py::test_init_noise_attempted_when_esp_uses_plaintext - assert False
FAILED tests/test_connection.py::test_requires_encryption_propagates - ValueError: A Stream Socket was expected, got <MagicMock id='140737294884560'>
ERROR tests/test__frame_helper.py::test_eof_received_closes_connection - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test__frame_helper.py::test_eof_received_closes_connection - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test__frame_helper.py::test_connection_lost_closes_connection_and_logs - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test__frame_helper.py::test_connection_lost_closes_connection_and_logs - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_disconnect - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_disconnect - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_pair - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_pair - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_pair_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_pair_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_unpair_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_unpair_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_clear_cache_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_clear_cache_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_unpair - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_unpair - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_clear_cache - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_clear_cache - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_device_info - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_device_info - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_read - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_read - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_read_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_read_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_read_error - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_read_error - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_read_descriptor - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_read_descriptor - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write_without_response - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write_without_response - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write_descriptor - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write_descriptor - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write_descriptor_without_response - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_write_descriptor_without_response - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_get_services_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_get_services_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_get_services - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_get_services - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_get_services_errors - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_get_services_errors - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_start_notify_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_start_notify_connection_drops - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_start_notify - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_start_notify - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_start_notify_fails - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_gatt_start_notify_fails - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_bluetooth_le_advertisements - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_bluetooth_le_advertisements - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_bluetooth_le_raw_advertisements - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_bluetooth_le_raw_advertisements - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_bluetooth_connections_free - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_bluetooth_connections_free - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_home_assistant_states - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_home_assistant_states - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_set_debug - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_set_debug - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_force_disconnect - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_force_disconnect - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect[False-0-0] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect[False-0-0] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect[False-4-5] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect[False-4-5] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect[True-4-4] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect[True-4-4] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect_and_disconnect_times_out - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect_and_disconnect_times_out - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect_times_out_disconnect_ok - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect_times_out_disconnect_ok - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect_cancelled - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_bluetooth_device_connect_cancelled - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_voice_assistant - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_voice_assistant - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_voice_assistant_failure - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_voice_assistant_failure - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_voice_assistant_cancels_long_running_handle_start - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_subscribe_voice_assistant_cancels_long_running_handle_start - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_api_version_after_connection_closed - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_client.py::test_api_version_after_connection_closed - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_timeout_sending_message - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_timeout_sending_message - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_disconnect_when_not_fully_connected - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_disconnect_when_not_fully_connected - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_plaintext_connection - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_plaintext_connection - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_start_connection_socket_error - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_start_connection_socket_error - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_start_connection_times_out - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_start_connection_times_out - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_start_connection_os_error - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_start_connection_os_error - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_start_connection_is_cancelled - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_start_connection_is_cancelled - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_finish_connection_is_cancelled - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_finish_connection_is_cancelled - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_finish_connection_times_out - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_finish_connection_times_out - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_plaintext_connection_fails_handshake[exception_map0] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_plaintext_connection_fails_handshake[exception_map0] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_plaintext_connection_fails_handshake[exception_map1] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_plaintext_connection_fails_handshake[exception_map1] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_plaintext_connection_fails_handshake[exception_map2] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_plaintext_connection_fails_handshake[exception_map2] - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_wrong_password - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_wrong_password - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_correct_password - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_correct_password - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_wrong_version - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_wrong_version - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_wrong_name - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_wrong_name - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_force_disconnect_fails - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_force_disconnect_fails - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_resolver_times_out - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connect_resolver_times_out - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_ping_disconnects_after_no_responses - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_ping_disconnects_after_no_responses - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_ping_does_not_disconnect_if_we_get_responses - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_ping_does_not_disconnect_if_we_get_responses - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_respond_to_ping_request - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_respond_to_ping_request - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_unknown_protobuf_message_type_logged - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_unknown_protobuf_message_type_logged - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_bad_protobuf_message_drops_connection - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_bad_protobuf_message_drops_connection - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connection_cannot_be_reused - PermissionError: [Errno 1] Operation not permitted
ERROR tests/test_connection.py::test_connection_cannot_be_reused - PermissionError: [Errno 1] Operation not permitted
=========== 4 failed, 269 passed, 23 warnings, 132 errors in 57.97s ============
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 73, in close
if self._signal_handlers:
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
Exception ignored in: <function BaseEventLoop.__del__ at 0x7ffff6705a80>
Traceback (most recent call last):
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/base_events.py", line 694, in __del__
self.close()
File "/nix/store/ic915dggv77r497sgnpbsliv0qf8hr6f-python3-3.11.7/lib/python3.11/asyncio/unix_events.py", line 73, in close
if self._signal_handlers:
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_UnixSelectorEventLoop' object has no attribute '_signal_handlers'
/nix/store/v5irq7wvkr7kih0hhnch5nnv2dcq8c4f-stdenv-linux/setup: line 1557: 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