==> Building on minun ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 1,066 100% 0.00kB/s 0:00:00 1,066 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-zeroconf-0.63.0-1.log 204 100% 199.22kB/s 0:00:00 204 100% 199.22kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 929 bytes received 69 bytes 665.33 bytes/sec total size is 1,258 speedup is 1.26 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root21 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root21]...done ==> Making package: python-zeroconf 0.63.0-1 (Thu Jun 22 08:23:43 2023) ==> Retrieving sources...  -> Downloading python-zeroconf-0.63.0.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 151k 0 151k 0 0 206k 0 --:--:-- --:--:-- --:--:-- 206k ==> Validating source files with sha256sums... python-zeroconf-0.63.0.tar.gz ... Passed ==> Making package: python-zeroconf 0.63.0-1 (Thu Jun 22 08:23:52 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (7) New Version Net Change core/libnsl 2.0.0-3 0.06 MiB extra/python-typing_extensions 4.6.3-1 0.36 MiB core/python 3.11.3-1 104.68 MiB extra/python-async-timeout 4.0.2-3 0.03 MiB extra/python-ifaddr 0.2.0-2 0.07 MiB extra/python-netifaces 0.11.0-4 0.03 MiB extra/python-six 1.16.0-8 0.12 MiB Total Installed Size: 105.35 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-netifaces... installing python-six... installing python-ifaddr... installing python-typing_extensions... installing python-async-timeout... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (30) New Version Net Change Download Size extra/python-attrs 22.2.0-3 0.55 MiB extra/python-autocommand 2.2.2-4 0.08 MiB extra/python-coverage 6.5.0-5 1.68 MiB extra/python-fastjsonschema 2.17.1-1 0.29 MiB extra/python-inflect 6.0.4-2 0.38 MiB extra/python-iniconfig 2.0.0-4 0.04 MiB extra/python-jaraco.context 4.3.0-3 0.04 MiB extra/python-jaraco.functools 3.7.0-1 0.07 MiB extra/python-jaraco.text 3.11.1-3 0.09 MiB extra/python-jsonschema 4.17.3-3 1.33 MiB extra/python-lark-parser 1.1.5-4 1.29 MiB extra/python-more-itertools 9.1.1-4 0.61 MiB extra/python-ordered-set 4.1.0-4 0.07 MiB extra/python-packaging 23.1-1 0.47 MiB extra/python-platformdirs 3.5.1-1 0.20 MiB extra/python-pluggy 1.0.0-4 0.13 MiB extra/python-pydantic 1.10.7-4 6.36 MiB extra/python-pyproject-hooks 1.0.0-5 0.09 MiB extra/python-pyrsistent 0.19.3-3 0.63 MiB extra/python-tomli 2.0.1-3 0.11 MiB extra/python-trove-classifiers 2023.5.24-1 0.11 MiB extra/python-validate-pyproject 0.13-1 0.29 MiB extra/cython 0.29.35-2 9.37 MiB 2.30 MiB extra/python-build 0.10.0-4 0.68 MiB extra/python-installer 0.7.0-3 0.82 MiB extra/python-poetry-core 1.6.1-1 5.17 MiB extra/python-pytest 7.3.2-1 3.98 MiB extra/python-pytest-cov 4.1.0-1 0.16 MiB 0.04 MiB extra/python-setuptools 1:67.7.0-1 4.68 MiB extra/python-wheel 0.40.0-3 0.28 MiB Total Download Size: 2.34 MiB Total Installed Size: 40.05 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... cython-0.29.35-2-riscv64 downloading... python-pytest-cov-4.1.0-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing python-pydantic... Optional dependencies for python-pydantic python-dotenv: for .env file support python-email-validator: for email validation installing python-inflect... installing python-jaraco.text... installing python-ordered-set... installing python-packaging... installing python-platformdirs... installing python-tomli... installing python-fastjsonschema... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-attrs... installing python-pyrsistent... installing python-jsonschema... Optional dependencies for python-jsonschema python-isoduration: for duration format python-fqdn: for hostname format python-idna: for idn-hostname format python-jsonpointer: for json-pointer & relative-json-pointer format python-rfc3339-validator: for date-time format python-rfc3987: for iri, iri-reference, uri & uri-reference format python-uri-template: for uri-template format python-webcolors: for color format installing python-lark-parser... Optional dependencies for python-lark-parser python-atomicwrites: for atomic_cache python-regex: for regex support python-js2py: for nearley support installing python-poetry-core... installing cython... installing python-iniconfig... installing python-pluggy... installing python-pytest... installing python-coverage... Optional dependencies for python-coverage python-tomli: for pyproject.toml support [installed] installing python-pytest-cov... [?25h==> Retrieving sources...  -> Found python-zeroconf-0.63.0.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-zeroconf-0.63.0.tar.gz with bsdtar ==> Starting build()... * Getting build dependencies for wheel... * Building wheel... Compiling src/zeroconf/_cache.py because it changed. Compiling src/zeroconf/_dns.py because it changed. Compiling src/zeroconf/_protocol/incoming.py because it changed. Compiling src/zeroconf/_protocol/outgoing.py because it changed. [1/4] Cythonizing src/zeroconf/_cache.py [2/4] Cythonizing src/zeroconf/_dns.py [3/4] Cythonizing src/zeroconf/_protocol/incoming.py [4/4] Cythonizing src/zeroconf/_protocol/outgoing.py running build running build_py creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311 creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_cache.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_core.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_dns.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_exceptions.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_handlers.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_history.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_logger.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_updates.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/asyncio.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/const.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol copying src/zeroconf/_protocol/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol copying src/zeroconf/_protocol/incoming.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol copying src/zeroconf/_protocol/outgoing.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_services copying src/zeroconf/_services/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_services copying src/zeroconf/_services/browser.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_services copying src/zeroconf/_services/info.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_services copying src/zeroconf/_services/registry.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_services copying src/zeroconf/_services/types.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_services creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_utils copying src/zeroconf/_utils/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_utils copying src/zeroconf/_utils/asyncio.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_utils copying src/zeroconf/_utils/name.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_utils copying src/zeroconf/_utils/net.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_utils copying src/zeroconf/_utils/time.py -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_utils copying src/zeroconf/_cache.pxd -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_dns.pxd -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/py.typed -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_cache.c -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_dns.c -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf copying src/zeroconf/_protocol/incoming.pxd -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol copying src/zeroconf/_protocol/outgoing.pxd -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol copying src/zeroconf/_protocol/incoming.c -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol copying src/zeroconf/_protocol/outgoing.c -> /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol running build_ext building 'zeroconf._cache' extension creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311 creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.11 -c src/zeroconf/_cache.c -o /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_cache.o gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_cache.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_cache.cpython-311-riscv64-linux-gnu.so building 'zeroconf._dns' extension gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.11 -c src/zeroconf/_dns.c -o /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_dns.o gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_dns.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_dns.cpython-311-riscv64-linux-gnu.so building 'zeroconf._protocol.incoming' extension creating /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_protocol gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.11 -c src/zeroconf/_protocol/incoming.c -o /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_protocol/incoming.o gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_protocol/incoming.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol/incoming.cpython-311-riscv64-linux-gnu.so building 'zeroconf._protocol.outgoing' extension gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.11 -c src/zeroconf/_protocol/outgoing.c -o /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_protocol/outgoing.o gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.63.0/build/temp.linux-riscv64-cpython-311/src/zeroconf/_protocol/outgoing.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.63.0/build/lib.linux-riscv64-cpython-311/zeroconf/_protocol/outgoing.cpython-311-riscv64-linux-gnu.so Successfully built zeroconf-0.63.0-cp311-cp311-linux_riscv64.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.3.2, pluggy-1.0.0 -- /usr/bin/python cachedir: .pytest_cache rootdir: /build/python-zeroconf/src/python-zeroconf-0.63.0 configfile: pyproject.toml plugins: cov-4.1.0 collecting ... collected 277 items / 1 deselected / 276 selected tests/test_asyncio.py::test_async_basic_usage SKIPPED (async def fun...) [ 0%] tests/test_asyncio.py::test_async_close_twice SKIPPED (async def fun...) [ 0%] tests/test_asyncio.py::test_async_with_sync_passed_in SKIPPED (async...) [ 1%] tests/test_asyncio.py::test_async_with_sync_passed_in_closed_in_async SKIPPED [ 1%] tests/test_asyncio.py::test_sync_within_event_loop_executor SKIPPED [ 1%] tests/test_asyncio.py::test_async_service_registration SKIPPED (asyn...) [ 2%] tests/test_asyncio.py::test_async_service_registration_with_server_missing SKIPPED [ 2%] tests/test_asyncio.py::test_async_service_registration_same_server_different_ports SKIPPED [ 2%] tests/test_asyncio.py::test_async_service_registration_same_server_same_ports SKIPPED [ 3%] tests/test_asyncio.py::test_async_service_registration_name_conflict SKIPPED [ 3%] tests/test_asyncio.py::test_async_service_registration_name_does_not_match_type SKIPPED [ 3%] tests/test_asyncio.py::test_async_tasks SKIPPED (async def function ...) [ 4%] tests/test_asyncio.py::test_async_wait_unblocks_on_update SKIPPED (a...) [ 4%] tests/test_asyncio.py::test_service_info_async_request SKIPPED (asyn...) [ 5%] tests/test_asyncio.py::test_async_service_browser SKIPPED (async def...) [ 5%] tests/test_asyncio.py::test_async_context_manager SKIPPED (async def...) [ 5%] tests/test_asyncio.py::test_async_unregister_all_services SKIPPED (a...) [ 6%] tests/test_asyncio.py::test_async_zeroconf_service_types SKIPPED (as...) [ 6%] tests/test_asyncio.py::test_guard_against_running_serviceinfo_request_event_loop SKIPPED [ 6%] tests/test_asyncio.py::test_service_browser_instantiation_generates_add_events_from_cache SKIPPED [ 7%] tests/test_asyncio.py::test_integration SKIPPED (async def function ...) [ 7%] tests/test_asyncio.py::test_info_asking_default_is_asking_qm_questions_after_the_first_qu SKIPPED [ 7%] tests/test_asyncio.py::test_service_browser_ignores_unrelated_updates SKIPPED [ 8%] tests/test_asyncio.py::test_async_request_timeout SKIPPED (async def...) [ 8%] tests/test_asyncio.py::test_async_request_non_running_instance SKIPPED [ 9%] tests/test_asyncio.py::test_legacy_unicast_response SKIPPED (async d...) [ 9%] tests/test_asyncio.py::test_update_with_uppercase_names SKIPPED (asy...) [ 9%] tests/test_asyncio.py::test_service_browser_does_not_try_to_send_if_not_ready SKIPPED [ 10%] tests/test_cache.py::TestDNSCache::test_adding_same_record_to_cache_different_ttls_with_get PASSED [ 10%] tests/test_cache.py::TestDNSCache::test_adding_same_record_to_cache_different_ttls_with_get_all PASSED [ 10%] tests/test_cache.py::TestDNSCache::test_cache_empty_does_not_leak_memory_by_leaving_empty_list PASSED [ 11%] tests/test_cache.py::TestDNSCache::test_cache_empty_multiple_calls PASSED [ 11%] tests/test_cache.py::TestDNSCache::test_order PASSED [ 11%] tests/test_cache.py::TestDNSAsyncCacheAPI::test_async_all_by_details PASSED [ 12%] tests/test_cache.py::TestDNSAsyncCacheAPI::test_async_entries_with_name PASSED [ 12%] tests/test_cache.py::TestDNSAsyncCacheAPI::test_async_entries_with_server PASSED [ 13%] tests/test_cache.py::TestDNSAsyncCacheAPI::test_async_get_unique PASSED [ 13%] tests/test_cache.py::TestDNSCacheAPI::test_current_entry_with_name_and_alias PASSED [ 13%] tests/test_cache.py::TestDNSCacheAPI::test_entries_with_name PASSED [ 14%] tests/test_cache.py::TestDNSCacheAPI::test_entries_with_server PASSED [ 14%] tests/test_cache.py::TestDNSCacheAPI::test_get PASSED [ 14%] tests/test_cache.py::TestDNSCacheAPI::test_get_all_by_details PASSED [ 15%] tests/test_cache.py::TestDNSCacheAPI::test_get_by_details PASSED [ 15%] tests/test_cache.py::TestDNSCacheAPI::test_name PASSED [ 15%] tests/test_core.py::test_reaper SKIPPED (async def function and no a...) [ 16%] tests/test_core.py::test_reaper_aborts_when_done SKIPPED (async def ...) [ 16%] tests/test_core.py::Framework::test_close_multiple_times PASSED [ 17%] tests/test_core.py::Framework::test_handle_response FAILED [ 17%] tests/test_core.py::Framework::test_launch_and_close FAILED [ 17%] tests/test_core.py::Framework::test_launch_and_close_apple_p2p_not_mac PASSED [ 18%] tests/test_core.py::Framework::test_launch_and_close_apple_p2p_on_mac SKIPPED [ 18%] tests/test_core.py::Framework::test_launch_and_close_context_manager FAILED [ 18%] tests/test_core.py::Framework::test_launch_and_close_unicast PASSED [ 19%] tests/test_core.py::Framework::test_launch_and_close_v4_v6 FAILED [ 19%] tests/test_core.py::Framework::test_launch_and_close_v6_only FAILED [ 19%] tests/test_core.py::test_generate_service_query_set_qu_bit FAILED [ 20%] tests/test_core.py::test_invalid_packets_ignored_and_does_not_cause_loop_exception FAILED [ 20%] tests/test_core.py::test_goodbye_all_services FAILED [ 21%] tests/test_core.py::test_register_service_with_custom_ttl FAILED [ 21%] tests/test_core.py::test_logging_packets FAILED [ 21%] tests/test_core.py::test_get_service_info_failure_path FAILED [ 22%] tests/test_core.py::test_sending_unicast FAILED [ 22%] tests/test_core.py::test_tc_bit_defers FAILED [ 22%] tests/test_core.py::test_tc_bit_defers_last_response_missing FAILED [ 23%] tests/test_core.py::test_open_close_twice_from_async SKIPPED (async ...) [ 23%] tests/test_core.py::test_multiple_sync_instances_stared_from_async_close SKIPPED [ 23%] tests/test_core.py::test_guard_against_oversized_packets FAILED [ 24%] tests/test_core.py::test_guard_against_duplicate_packets FAILED [ 24%] tests/test_core.py::test_shutdown_while_register_in_process FAILED [ 25%] tests/test_core.py::test_event_loop_blocked SKIPPED (async def funct...) [ 25%] tests/test_dns.py::TestDunder::test_dns_address_repr PASSED [ 25%] tests/test_dns.py::TestDunder::test_dns_hinfo_repr_eq PASSED [ 26%] tests/test_dns.py::TestDunder::test_dns_outgoing_repr PASSED [ 26%] tests/test_dns.py::TestDunder::test_dns_pointer_repr PASSED [ 26%] tests/test_dns.py::TestDunder::test_dns_question_repr PASSED [ 27%] tests/test_dns.py::TestDunder::test_dns_record_abc PASSED [ 27%] tests/test_dns.py::TestDunder::test_dns_record_is_expired PASSED [ 27%] tests/test_dns.py::TestDunder::test_dns_record_is_recent PASSED [ 28%] tests/test_dns.py::TestDunder::test_dns_record_is_stale PASSED [ 28%] tests/test_dns.py::TestDunder::test_dns_record_reset_ttl PASSED [ 28%] tests/test_dns.py::TestDunder::test_dns_service_repr PASSED [ 29%] tests/test_dns.py::TestDunder::test_dns_text_repr PASSED [ 29%] tests/test_dns.py::TestDunder::test_service_info_dunder PASSED [ 30%] tests/test_dns.py::TestDunder::test_service_info_text_properties_not_given PASSED [ 30%] tests/test_dns.py::test_dns_question_hashablity PASSED [ 30%] tests/test_dns.py::test_dns_record_hashablity_does_not_consider_ttl PASSED [ 31%] tests/test_dns.py::test_dns_record_hashablity_does_not_consider_unique PASSED [ 31%] tests/test_dns.py::test_dns_address_record_hashablity PASSED [ 31%] tests/test_dns.py::test_dns_hinfo_record_hashablity PASSED [ 32%] tests/test_dns.py::test_dns_pointer_record_hashablity PASSED [ 32%] tests/test_dns.py::test_dns_pointer_comparison_is_case_insensitive PASSED [ 32%] tests/test_dns.py::test_dns_text_record_hashablity PASSED [ 33%] tests/test_dns.py::test_dns_service_record_hashablity PASSED [ 33%] tests/test_dns.py::test_dns_service_server_key PASSED [ 34%] tests/test_dns.py::test_dns_service_server_comparison_is_case_insensitive PASSED [ 34%] tests/test_dns.py::test_dns_nsec_record_hashablity PASSED [ 34%] tests/test_dns.py::test_rrset_does_not_consider_ttl PASSED [ 35%] tests/test_exceptions.py::Exceptions::test_bad_local_names_for_get_service_info ERROR [ 35%] tests/test_exceptions.py::Exceptions::test_bad_service_info_name ERROR [ 35%] tests/test_exceptions.py::Exceptions::test_bad_service_names ERROR [ 36%] tests/test_exceptions.py::Exceptions::test_bad_sub_types ERROR [ 36%] tests/test_exceptions.py::Exceptions::test_bad_types ERROR [ 36%] tests/test_exceptions.py::Exceptions::test_good_instance_names ERROR [ 37%] tests/test_exceptions.py::Exceptions::test_good_instance_names_without_protocol ERROR [ 37%] tests/test_exceptions.py::Exceptions::test_good_service_names ERROR [ 38%] tests/test_exceptions.py::Exceptions::test_invalid_addresses ERROR [ 38%] tests/test_handlers.py::TestRegistrar::test_name_conflicts FAILED [ 38%] tests/test_handlers.py::TestRegistrar::test_register_and_lookup_type_by_uppercase_name FAILED [ 39%] tests/test_handlers.py::TestRegistrar::test_ttl FAILED [ 39%] tests/test_handlers.py::test_ptr_optimization FAILED [ 39%] tests/test_handlers.py::test_any_query_for_ptr FAILED [ 40%] tests/test_handlers.py::test_aaaa_query FAILED [ 40%] tests/test_handlers.py::test_aaaa_query_upper_case FAILED [ 40%] tests/test_handlers.py::test_a_and_aaaa_record_fate_sharing FAILED [ 41%] tests/test_handlers.py::test_unicast_response FAILED [ 41%] tests/test_handlers.py::test_probe_answered_immediately SKIPPED (asy...) [ 42%] tests/test_handlers.py::test_probe_answered_immediately_with_uppercase_name SKIPPED [ 42%] tests/test_handlers.py::test_qu_response FAILED [ 42%] tests/test_handlers.py::test_known_answer_supression FAILED [ 43%] tests/test_handlers.py::test_multi_packet_known_answer_supression FAILED [ 43%] tests/test_handlers.py::test_known_answer_supression_service_type_enumeration_query FAILED [ 43%] tests/test_handlers.py::test_upper_case_enumeration_query FAILED [ 44%] tests/test_handlers.py::test_qu_response_only_sends_additionals_if_sends_answer SKIPPED [ 44%] tests/test_handlers.py::test_cache_flush_bit SKIPPED (async def func...) [ 44%] tests/test_handlers.py::test_record_update_manager_add_listener_callsback_existing_records SKIPPED [ 45%] tests/test_handlers.py::test_questions_query_handler_populates_the_question_history_from_qm_questions SKIPPED [ 45%] tests/test_handlers.py::test_questions_query_handler_does_not_put_qu_questions_in_history SKIPPED [ 46%] tests/test_handlers.py::test_guard_against_low_ptr_ttl SKIPPED (asyn...) [ 46%] tests/test_handlers.py::test_duplicate_goodbye_answers_in_packet SKIPPED [ 46%] tests/test_handlers.py::test_response_aggregation_timings SKIPPED (a...) [ 47%] tests/test_handlers.py::test_response_aggregation_timings_multiple SKIPPED [ 47%] tests/test_handlers.py::test_response_aggregation_random_delay SKIPPED [ 47%] tests/test_handlers.py::test_future_answers_are_removed_on_send SKIPPED [ 48%] tests/test_handlers.py::test_add_listener_warns_when_not_using_record_update_listener SKIPPED [ 48%] tests/test_history.py::test_question_suppression PASSED [ 48%] tests/test_history.py::test_question_expire PASSED [ 49%] tests/test_init.py::Names::test_exceedingly_long_name PASSED [ 49%] tests/test_init.py::Names::test_exceedingly_long_name_part PASSED [ 50%] tests/test_init.py::Names::test_extra_exceedingly_long_name PASSED [ 50%] tests/test_init.py::Names::test_large_packet_exception_log_handling FAILED [ 50%] tests/test_init.py::Names::test_long_name PASSED [ 51%] tests/test_init.py::Names::test_same_name PASSED [ 51%] tests/test_init.py::Names::test_verify_name_change_with_lots_of_names FAILED [ 51%] tests/test_logger.py::test_loading_logger PASSED [ 52%] tests/test_logger.py::test_log_warning_once PASSED [ 52%] tests/test_logger.py::test_log_exception_warning PASSED [ 52%] tests/test_logger.py::test_llog_exception_debug PASSED [ 53%] tests/test_logger.py::test_log_exception_once PASSED [ 53%] tests/test_protocol.py::PacketGeneration::test_adding_empty_answer PASSED [ 53%] tests/test_protocol.py::PacketGeneration::test_adding_expired_answer PASSED [ 54%] tests/test_protocol.py::PacketGeneration::test_dns_hinfo PASSED [ 54%] tests/test_protocol.py::PacketGeneration::test_many_questions PASSED [ 55%] tests/test_protocol.py::PacketGeneration::test_many_questions_with_many_known_answers PASSED [ 55%] tests/test_protocol.py::PacketGeneration::test_massive_probe_packet_split PASSED [ 55%] tests/test_protocol.py::PacketGeneration::test_match_question PASSED [ 56%] tests/test_protocol.py::PacketGeneration::test_only_one_answer_can_by_large PASSED [ 56%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_flags PASSED [ 56%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_nsec PASSED [ 57%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_question PASSED [ 57%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_response PASSED [ 57%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_simple PASSED [ 58%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_simple_unicast PASSED [ 58%] tests/test_protocol.py::PacketGeneration::test_questions_do_not_end_up_every_packet PASSED [ 59%] tests/test_protocol.py::PacketGeneration::test_suppress_answer PASSED [ 59%] tests/test_protocol.py::PacketForm::test_numbers PASSED [ 59%] tests/test_protocol.py::PacketForm::test_numbers_questions PASSED [ 60%] tests/test_protocol.py::PacketForm::test_query_header_bits PASSED [ 60%] tests/test_protocol.py::PacketForm::test_response_header_bits PASSED [ 60%] tests/test_protocol.py::PacketForm::test_setting_id PASSED [ 61%] tests/test_protocol.py::PacketForm::test_transaction_id PASSED [ 61%] tests/test_protocol.py::TestDnsIncoming::test_incoming_circular_reference PASSED [ 61%] tests/test_protocol.py::TestDnsIncoming::test_incoming_exception_handling PASSED [ 62%] tests/test_protocol.py::TestDnsIncoming::test_incoming_ipv6 PASSED [ 62%] tests/test_protocol.py::TestDnsIncoming::test_incoming_unknown_type PASSED [ 63%] tests/test_protocol.py::test_dns_compression_rollback_for_corruption PASSED [ 63%] tests/test_protocol.py::test_tc_bit_in_query_packet PASSED [ 63%] tests/test_protocol.py::test_tc_bit_not_set_in_answer_packet PASSED [ 64%] tests/test_protocol.py::test_qm_packet_parser PASSED [ 64%] tests/test_protocol.py::test_qu_packet_parser PASSED [ 64%] tests/test_protocol.py::test_parse_packet_with_nsec_record PASSED [ 65%] tests/test_protocol.py::test_records_same_packet_share_fate PASSED [ 65%] tests/test_protocol.py::test_dns_compression_invalid_skips_bad_name_compress_in_question PASSED [ 65%] tests/test_protocol.py::test_dns_compression_all_invalid PASSED [ 66%] tests/test_protocol.py::test_invalid_next_name_ignored PASSED [ 66%] tests/test_protocol.py::test_dns_compression_invalid_skips_record PASSED [ 67%] tests/test_protocol.py::test_dns_compression_points_forward PASSED [ 67%] tests/test_protocol.py::test_dns_compression_points_to_itself PASSED [ 67%] tests/test_protocol.py::test_dns_compression_points_beyond_packet PASSED [ 68%] tests/test_protocol.py::test_dns_compression_generic_failure PASSED [ 68%] tests/test_protocol.py::test_label_length_attack PASSED [ 68%] tests/test_protocol.py::test_label_compression_attack PASSED [ 69%] tests/test_protocol.py::test_dns_compression_loop_attack PASSED [ 69%] tests/test_protocol.py::test_txt_after_invalid_nsec_name_still_usable PASSED [ 69%] tests/test_services.py::ListenerTest::test_integration_with_listener_class FAILED [ 70%] tests/test_services.py::test_servicelisteners_raise_not_implemented FAILED [ 70%] tests/test_services.py::test_signal_registration_interface PASSED [ 71%] tests/test_updates.py::test_legacy_record_update_listener FAILED [ 71%] tests/services/test_browser.py::test_service_browser_cancel_multiple_times FAILED [ 71%] tests/services/test_browser.py::test_service_browser_cancel_multiple_times_after_close FAILED [ 72%] tests/services/test_browser.py::test_service_browser_started_after_zeroconf_closed FAILED [ 72%] tests/services/test_browser.py::test_multiple_instances_running_close FAILED [ 72%] tests/services/test_browser.py::TestServiceBrowser::test_update_record FAILED [ 73%] tests/services/test_browser.py::TestServiceBrowserMultipleTypes::test_update_record FAILED [ 73%] tests/services/test_browser.py::test_backoff FAILED [ 73%] tests/services/test_browser.py::test_first_query_delay FAILED [ 74%] tests/services/test_browser.py::test_asking_default_is_asking_qm_questions_after_the_first_qu FAILED [ 74%] tests/services/test_browser.py::test_asking_qm_questions FAILED [ 75%] tests/services/test_browser.py::test_asking_qu_questions FAILED [ 75%] tests/services/test_browser.py::test_legacy_record_update_listener FAILED [ 75%] tests/services/test_browser.py::test_service_browser_is_aware_of_port_changes FAILED [ 76%] tests/services/test_browser.py::test_service_browser_listeners_update_service FAILED [ 76%] tests/services/test_browser.py::test_service_browser_listeners_no_update_service FAILED [ 76%] tests/services/test_browser.py::test_servicebrowser_uses_non_strict_names FAILED [ 77%] tests/services/test_browser.py::test_group_ptr_queries_with_known_answers PASSED [ 77%] tests/services/test_browser.py::test_generate_service_query_suppress_duplicate_questions SKIPPED [ 77%] tests/services/test_browser.py::test_query_scheduler SKIPPED (async ...) [ 78%] tests/services/test_browser.py::test_service_browser_matching FAILED [ 78%] tests/services/test_browser.py::test_service_browser_expire_callbacks FAILED [ 78%] tests/services/test_info.py::TestServiceInfo::test_get_info_partial FAILED [ 79%] tests/services/test_info.py::TestServiceInfo::test_get_info_single FAILED [ 79%] tests/services/test_info.py::TestServiceInfo::test_get_name PASSED [ 80%] tests/services/test_info.py::TestServiceInfo::test_service_info_duplicate_properties_txt_records FAILED [ 80%] tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_expired_records FAILED [ 80%] tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_non_matching_updates FAILED [ 81%] tests/services/test_info.py::test_multiple_addresses PASSED [ 81%] tests/services/test_info.py::test_multiple_a_addresses_newest_address_first SKIPPED [ 81%] tests/services/test_info.py::test_invalid_a_addresses SKIPPED (async...) [ 82%] tests/services/test_info.py::test_filter_address_by_type_from_service_info PASSED [ 82%] tests/services/test_info.py::test_changing_name_updates_serviceinfo_key PASSED [ 82%] tests/services/test_info.py::test_serviceinfo_address_updates PASSED [ 83%] tests/services/test_info.py::test_serviceinfo_accepts_bytes_or_string_dict PASSED [ 83%] tests/services/test_info.py::test_asking_qu_questions FAILED [ 84%] tests/services/test_info.py::test_asking_qm_questions FAILED [ 84%] tests/services/test_info.py::test_request_timeout FAILED [ 84%] tests/services/test_info.py::test_we_try_four_times_with_random_delay SKIPPED [ 85%] tests/services/test_info.py::test_release_wait_when_new_recorded_added SKIPPED [ 85%] tests/services/test_info.py::test_port_changes_are_seen SKIPPED (asy...) [ 85%] tests/services/test_info.py::test_ipv4_changes_are_seen SKIPPED (asy...) [ 86%] tests/services/test_info.py::test_ipv6_changes_are_seen SKIPPED (asy...) [ 86%] tests/services/test_info.py::test_bad_ip_addresses_ignored_in_cache SKIPPED [ 86%] tests/services/test_info.py::test_service_name_change_as_seen_has_ip_in_cache SKIPPED [ 87%] tests/services/test_info.py::test_service_name_change_as_seen_ip_not_in_cache SKIPPED [ 87%] tests/services/test_registry.py::TestServiceRegistry::test_lookups PASSED [ 88%] tests/services/test_registry.py::TestServiceRegistry::test_lookups_upper_case_by_lower_case PASSED [ 88%] tests/services/test_registry.py::TestServiceRegistry::test_only_register_once PASSED [ 88%] tests/services/test_registry.py::TestServiceRegistry::test_register_same_server PASSED [ 89%] tests/services/test_registry.py::TestServiceRegistry::test_unregister_multiple_times PASSED [ 89%] tests/services/test_types.py::ServiceTypesQuery::test_integration_with_listener FAILED [ 89%] tests/services/test_types.py::ServiceTypesQuery::test_integration_with_listener_v6_records FAILED [ 90%] tests/services/test_types.py::ServiceTypesQuery::test_integration_with_subtype_and_listener FAILED [ 90%] tests/utils/test_asyncio.py::test_async_get_all_tasks SKIPPED (async...) [ 90%] tests/utils/test_asyncio.py::test_get_running_loop_from_async SKIPPED [ 91%] tests/utils/test_asyncio.py::test_get_running_loop_no_loop PASSED [ 91%] tests/utils/test_asyncio.py::test_wait_event_or_timeout_times_out SKIPPED [ 92%] tests/utils/test_asyncio.py::test_shutdown_loop PASSED [ 92%] tests/utils/test_asyncio.py::test_cumulative_timeouts_less_than_close_plus_buffer PASSED [ 92%] tests/utils/test_asyncio.py::test_run_coro_with_timeout SKIPPED (asy...) [ 93%] tests/utils/test_name.py::test_service_type_name_overlong_type PASSED [ 93%] tests/utils/test_name.py::test_service_type_name_overlong_full_name PASSED [ 93%] tests/utils/test_name.py::test_possible_types PASSED [ 94%] tests/utils/test_net.py::test_ip6_to_address_and_index PASSED [ 94%] tests/utils/test_net.py::test_interface_index_to_ip6_address PASSED [ 94%] tests/utils/test_net.py::test_ip6_addresses_to_indexes PASSED [ 95%] tests/utils/test_net.py::test_normalize_interface_choice_errors PASSED [ 95%] tests/utils/test_net.py::test_add_multicast_member_socket_errors[98-False] PASSED [ 96%] tests/utils/test_net.py::test_add_multicast_member_socket_errors[99-False] PASSED [ 96%] tests/utils/test_net.py::test_add_multicast_member_socket_errors[22-False] PASSED [ 96%] tests/utils/test_net.py::test_add_multicast_member_socket_errors[0-True] PASSED [ 97%] tests/utils/test_net.py::test_autodetect_ip_version PASSED [ 97%] tests/utils/test_net.py::test_disable_ipv6_only_or_raise PASSED [ 97%] tests/utils/test_net.py::test_set_so_reuseport_if_available_is_present PASSED [ 98%] tests/utils/test_net.py::test_set_so_reuseport_if_available_not_present SKIPPED [ 98%] tests/utils/test_net.py::test_set_mdns_port_socket_options_for_ip_version PASSED [ 98%] tests/utils/test_net.py::test_add_multicast_member PASSED [ 99%] tests/utils/test_net.py::test_bind_raises_skips_address PASSED [ 99%] tests/utils/test_net.py::test_new_respond_socket_new_socket_returns_none PASSED [100%] ==================================== ERRORS ==================================== ____ ERROR at setup of Exceptions.test_bad_local_names_for_get_service_info ____ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log setup ------------------------------ DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ___________ ERROR at setup of Exceptions.test_bad_service_info_name ____________ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError _____________ ERROR at setup of Exceptions.test_bad_service_names ______________ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError _______________ ERROR at setup of Exceptions.test_bad_sub_types ________________ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError _________________ ERROR at setup of Exceptions.test_bad_types __________________ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ____________ ERROR at setup of Exceptions.test_good_instance_names _____________ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ____ ERROR at setup of Exceptions.test_good_instance_names_without_protocol ____ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError _____________ ERROR at setup of Exceptions.test_good_service_names _____________ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError _____________ ERROR at setup of Exceptions.test_invalid_addresses ______________ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_exceptions.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError =================================== FAILURES =================================== ________________________ Framework.test_handle_response ________________________ self = def test_handle_response(self): def mock_incoming_msg(service_state_change: r.ServiceStateChange) -> r.DNSIncoming: ttl = 120 generated = r.DNSOutgoing(const._FLAGS_QR_RESPONSE) if service_state_change == r.ServiceStateChange.Updated: generated.add_answer_at_time( r.DNSText( service_name, const._TYPE_TXT, const._CLASS_IN | const._CLASS_UNIQUE, ttl, service_text, ), 0, ) return r.DNSIncoming(generated.packets()[0]) if service_state_change == r.ServiceStateChange.Removed: ttl = 0 generated.add_answer_at_time( r.DNSPointer(service_type, const._TYPE_PTR, const._CLASS_IN, ttl, service_name), 0 ) generated.add_answer_at_time( r.DNSService( service_name, const._TYPE_SRV, const._CLASS_IN | const._CLASS_UNIQUE, ttl, 0, 0, 80, service_server, ), 0, ) generated.add_answer_at_time( r.DNSText( service_name, const._TYPE_TXT, const._CLASS_IN | const._CLASS_UNIQUE, ttl, service_text ), 0, ) generated.add_answer_at_time( r.DNSAddress( service_server, const._TYPE_A, const._CLASS_IN | const._CLASS_UNIQUE, ttl, socket.inet_aton(service_address), ), 0, ) return r.DNSIncoming(generated.packets()[0]) def mock_split_incoming_msg(service_state_change: r.ServiceStateChange) -> r.DNSIncoming: """Mock an incoming message for the case where the packet is split.""" ttl = 120 generated = r.DNSOutgoing(const._FLAGS_QR_RESPONSE) generated.add_answer_at_time( r.DNSAddress( service_server, const._TYPE_A, const._CLASS_IN | const._CLASS_UNIQUE, ttl, socket.inet_aton(service_address), ), 0, ) generated.add_answer_at_time( r.DNSService( service_name, const._TYPE_SRV, const._CLASS_IN | const._CLASS_UNIQUE, ttl, 0, 0, 80, service_server, ), 0, ) return r.DNSIncoming(generated.packets()[0]) service_name = 'name._type._tcp.local.' service_type = '_type._tcp.local.' service_server = 'ash-2.local.' service_text = b'path=/~paulsm/' service_address = '10.0.1.2' > zeroconf = r.Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:248: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _______________________ Framework.test_launch_and_close ________________________ self = def test_launch_and_close(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.All) tests/test_core.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '172.18.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '172.18.0.1' (socket 12) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('172.18.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 172.18.0.1 _______________ Framework.test_launch_and_close_context_manager ________________ self = def test_launch_and_close_context_manager(self): > with r.Zeroconf(interfaces=r.InterfaceChoice.All) as rv: tests/test_core.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '172.18.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '172.18.0.1' (socket 14) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('172.18.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 172.18.0.1 ____________________ Framework.test_launch_and_close_v4_v6 _____________________ self = @unittest.skipIf(not has_working_ipv6(), 'Requires IPv6') @unittest.skipIf(os.environ.get('SKIP_IPV6'), 'IPv6 tests disabled') def test_launch_and_close_v4_v6(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.All, ip_version=r.IPVersion.All) tests/test_core.py:134: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = (('fe80::42:a7ff:fe1a:8940', 0, 7), 7), apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) > respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:341: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.All, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding (('fe80::42:a7ff:fe1a:8940', 0, 7), 7) (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V6Only, apple_p2p False and bind_addr ('fe80::42:a7ff:fe1a:8940', 0, 7) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface (('fe80::42:a7ff:fe1a:8940', 0, 7), 7) ___________________ Framework.test_launch_and_close_v6_only ____________________ self = @unittest.skipIf(not has_working_ipv6(), 'Requires IPv6') @unittest.skipIf(os.environ.get('SKIP_IPV6'), 'IPv6 tests disabled') def test_launch_and_close_v6_only(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.All, ip_version=r.IPVersion.V6Only) tests/test_core.py:142: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = (('fe80::42:a7ff:fe1a:8940', 0, 7), 7), apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) > respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:341: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V6Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding (('fe80::42:a7ff:fe1a:8940', 0, 7), 7) (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V6Only, apple_p2p False and bind_addr ('fe80::42:a7ff:fe1a:8940', 0, 7) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface (('fe80::42:a7ff:fe1a:8940', 0, 7), 7) ____________________ test_generate_service_query_set_qu_bit ____________________ def test_generate_service_query_set_qu_bit(): """Test generate_service_query sets the QU bit.""" > zeroconf_registrar = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:297: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ________ test_invalid_packets_ignored_and_does_not_cause_loop_exception ________ def test_invalid_packets_ignored_and_does_not_cause_loop_exception(): """Ensure an invalid packet cannot cause the loop to collapse.""" > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:311: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 __________________________ test_goodbye_all_services ___________________________ def test_goodbye_all_services(): """Verify generating the goodbye query does not change with time.""" > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:349: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 18) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________ test_register_service_with_custom_ttl _____________________ def test_register_service_with_custom_ttl(): """Test a registering a service with a custom ttl.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:380: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 20) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _____________________________ test_logging_packets _____________________________ caplog = <_pytest.logging.LogCaptureFixture object at 0x4004f2ad90> def test_logging_packets(caplog): """Test packets are only logged with debug logging.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:407: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________________ test_get_service_info_failure_path ______________________ def test_get_service_info_failure_path(): """Verify get_service_info return None when the underlying call returns False.""" > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:441: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _____________________________ test_sending_unicast _____________________________ def test_sending_unicast(): """Test sending unicast response.""" > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________________________ test_tc_bit_defers ______________________________ def test_tc_bit_defers(): > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:480: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ___________________ test_tc_bit_defers_last_response_missing ___________________ def test_tc_bit_defers_last_response_missing(): > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:559: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 19) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _____________________ test_guard_against_oversized_packets _____________________ def test_guard_against_oversized_packets(): """Ensure we do not process oversized packets. These packets can quickly overwhelm the system. """ > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:699: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _____________________ test_guard_against_duplicate_packets _____________________ def test_guard_against_duplicate_packets(): """Ensure we do not process duplicate packets. These packets can quickly overwhelm the system. """ > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:771: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ___________________ test_shutdown_while_register_in_process ____________________ def test_shutdown_while_register_in_process(): """Test we can shutdown while registering a service in another thread.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_core.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________________ TestRegistrar.test_name_conflicts _______________________ self = def test_name_conflicts(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ________ TestRegistrar.test_register_and_lookup_type_by_uppercase_name _________ self = def test_register_and_lookup_type_by_uppercase_name(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:194: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________________ TestRegistrar.test_ttl ____________________________ self = def test_ttl(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________________ test_ptr_optimization _____________________________ def test_ptr_optimization(): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:227: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________________ test_any_query_for_ptr ____________________________ @unittest.skipIf(not has_working_ipv6(), 'Requires IPv6') @unittest.skipIf(os.environ.get('SKIP_IPV6'), 'IPv6 tests disabled') def test_any_query_for_ptr(): """Test that queries for ANY will return PTR records and the response is aggregated.""" > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:293: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _______________________________ test_aaaa_query ________________________________ @unittest.skipIf(not has_working_ipv6(), 'Requires IPv6') @unittest.skipIf(os.environ.get('SKIP_IPV6'), 'IPv6 tests disabled') def test_aaaa_query(): """Test that queries for AAAA records work and should respond right away.""" > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 __________________________ test_aaaa_query_upper_case __________________________ @unittest.skipIf(not has_working_ipv6(), 'Requires IPv6') @unittest.skipIf(os.environ.get('SKIP_IPV6'), 'IPv6 tests disabled') def test_aaaa_query_upper_case(): """Test that queries for AAAA records work and should respond right away with an upper case name.""" > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:347: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _____________________ test_a_and_aaaa_record_fate_sharing ______________________ @unittest.skipIf(not has_working_ipv6(), 'Requires IPv6') @unittest.skipIf(os.environ.get('SKIP_IPV6'), 'IPv6 tests disabled') def test_a_and_aaaa_record_fate_sharing(): """Test that queries for AAAA always return A records in the additionals and should respond right away.""" > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:373: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 19) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________________ test_unicast_response _____________________________ def test_unicast_response(): """Ensure we send a unicast response when the source port is not the MDNS port.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:421: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _______________________________ test_qu_response _______________________________ def test_qu_response(): """Handle multicast incoming with the QU bit set.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:555: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _________________________ test_known_answer_supression _________________________ def test_known_answer_supression(): > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:666: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 __________________ test_multi_packet_known_answer_supression ___________________ def test_multi_packet_known_answer_supression(): > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _________ test_known_answer_supression_service_type_enumeration_query __________ def test_known_answer_supression_service_type_enumeration_query(): > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:843: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________________ test_upper_case_enumeration_query _______________________ def test_upper_case_enumeration_query(): > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_handlers.py:914: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ________________ Names.test_large_packet_exception_log_handling ________________ self = def test_large_packet_exception_log_handling(self): """Verify we downgrade debug after warning.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_init.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _______________ Names.test_verify_name_change_with_lots_of_names _______________ self = def test_verify_name_change_with_lots_of_names(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_init.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________ ListenerTest.test_integration_with_listener_class _______________ self = def test_integration_with_listener_class(self): sub_service_added = Event() service_added = Event() service_removed = Event() sub_service_updated = Event() duplicate_service_added = Event() subtype_name = "_printer" type_ = "_http._tcp.local." subtype = subtype_name + "._sub." + type_ name = "UPPERxxxyyyæøå" registration_name = f"{name}.{subtype}" class MyListener(r.ServiceListener): def add_service(self, zeroconf, type, name): zeroconf.get_service_info(type, name) service_added.set() def remove_service(self, zeroconf, type, name): service_removed.set() def update_service(self, zeroconf, type, name): pass class DuplicateListener(r.ServiceListener): def add_service(self, zeroconf, type, name): duplicate_service_added.set() def remove_service(self, zeroconf, type, name): pass def update_service(self, zeroconf, type, name): pass class MySubListener(r.ServiceListener): def add_service(self, zeroconf, type, name): sub_service_added.set() pass def remove_service(self, zeroconf, type, name): pass def update_service(self, zeroconf, type, name): sub_service_updated.set() listener = MyListener() > zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) tests/test_services.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _________________ test_servicelisteners_raise_not_implemented __________________ def test_servicelisteners_raise_not_implemented(): """Verify service listeners raise when one of the methods is not implemented.""" class MyPartialListener(r.ServiceListener): """A listener that does not implement anything.""" > zc = r.Zeroconf(interfaces=['127.0.0.1']) tests/test_services.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 19) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________________ test_legacy_record_update_listener ______________________ def test_legacy_record_update_listener(): """Test a RecordUpdateListener that does not implement update_records.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/test_updates.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 21) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 __________________ test_service_browser_cancel_multiple_times __________________ def test_service_browser_cancel_multiple_times(): """Test we can cancel a ServiceBrowser multiple times before close.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 23) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________ test_service_browser_cancel_multiple_times_after_close ____________ def test_service_browser_cancel_multiple_times_after_close(): """Test we can cancel a ServiceBrowser multiple times after close.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________ test_service_browser_started_after_zeroconf_closed ______________ def test_service_browser_started_after_zeroconf_closed(): """Test starting a ServiceBrowser after close raises RuntimeError.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________ test_multiple_instances_running_close _____________________ def test_multiple_instances_running_close(): """Test we can shutdown multiple instances.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:116: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________ TestServiceBrowser.test_update_record _____________________ self = def test_update_record(self): enable_ipv6 = has_working_ipv6() and not os.environ.get('SKIP_IPV6') service_name = 'name._type._tcp.local.' service_type = '_type._tcp.local.' service_server = 'ash-1.local.' service_text = b'path=/~matt1/' service_address = '10.0.1.2' service_v6_address = "2001:db8::1" service_v6_second_address = "6001:db8::1" service_added_count = 0 service_removed_count = 0 service_updated_count = 0 service_add_event = Event() service_removed_event = Event() service_updated_event = Event() class MyServiceListener(r.ServiceListener): def add_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_added_count service_added_count += 1 service_add_event.set() def remove_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_removed_count service_removed_count += 1 service_removed_event.set() def update_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_updated_count service_updated_count += 1 service_info = zc.get_service_info(type_, name) assert socket.inet_aton(service_address) in service_info.addresses if enable_ipv6: assert socket.inet_pton( socket.AF_INET6, service_v6_address ) in service_info.addresses_by_version(r.IPVersion.V6Only) assert socket.inet_pton( socket.AF_INET6, service_v6_second_address ) in service_info.addresses_by_version(r.IPVersion.V6Only) assert service_info.text == service_text assert service_info.server.lower() == service_server.lower() service_updated_event.set() def mock_incoming_msg(service_state_change: r.ServiceStateChange) -> r.DNSIncoming: generated = r.DNSOutgoing(const._FLAGS_QR_RESPONSE) assert generated.is_response() is True if service_state_change == r.ServiceStateChange.Removed: ttl = 0 else: ttl = 120 generated.add_answer_at_time( r.DNSText( service_name, const._TYPE_TXT, const._CLASS_IN | const._CLASS_UNIQUE, ttl, service_text ), 0, ) generated.add_answer_at_time( r.DNSService( service_name, const._TYPE_SRV, const._CLASS_IN | const._CLASS_UNIQUE, ttl, 0, 0, 80, service_server, ), 0, ) # Send the IPv6 address first since we previously # had a bug where the IPv4 would be missing if the # IPv6 was seen first if enable_ipv6: generated.add_answer_at_time( r.DNSAddress( service_server, const._TYPE_AAAA, const._CLASS_IN | const._CLASS_UNIQUE, ttl, socket.inet_pton(socket.AF_INET6, service_v6_address), ), 0, ) generated.add_answer_at_time( r.DNSAddress( service_server, const._TYPE_AAAA, const._CLASS_IN | const._CLASS_UNIQUE, ttl, socket.inet_pton(socket.AF_INET6, service_v6_second_address), ), 0, ) generated.add_answer_at_time( r.DNSAddress( service_server, const._TYPE_A, const._CLASS_IN | const._CLASS_UNIQUE, ttl, socket.inet_aton(service_address), ), 0, ) generated.add_answer_at_time( r.DNSPointer(service_type, const._TYPE_PTR, const._CLASS_IN, ttl, service_name), 0 ) return r.DNSIncoming(generated.packets()[0]) > zeroconf = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:254: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________ TestServiceBrowserMultipleTypes.test_update_record ______________ self = def test_update_record(self): service_names = ['name2._type2._tcp.local.', 'name._type._tcp.local.', 'name._type._udp.local'] service_types = ['_type2._tcp.local.', '_type._tcp.local.', '_type._udp.local.'] service_added_count = 0 service_removed_count = 0 service_add_event = Event() service_removed_event = Event() class MyServiceListener(r.ServiceListener): def add_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_added_count service_added_count += 1 if service_added_count == 3: service_add_event.set() def remove_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_removed_count service_removed_count += 1 if service_removed_count == 3: service_removed_event.set() def mock_incoming_msg( service_state_change: r.ServiceStateChange, service_type: str, service_name: str, ttl: int ) -> r.DNSIncoming: generated = r.DNSOutgoing(const._FLAGS_QR_RESPONSE) generated.add_answer_at_time( r.DNSPointer(service_type, const._TYPE_PTR, const._CLASS_IN, ttl, service_name), 0 ) return r.DNSIncoming(generated.packets()[0]) > zeroconf = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:365: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 19) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _________________________________ test_backoff _________________________________ def test_backoff(): got_query = Event() type_ = "_http._tcp.local." > zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:447: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________________ test_first_query_delay ____________________________ def test_first_query_delay(): """Verify the first query is delayed. https://datatracker.ietf.org/doc/html/rfc6762#section-5.2 """ type_ = "_http._tcp.local." > zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ________ test_asking_default_is_asking_qm_questions_after_the_first_qu _________ def test_asking_default_is_asking_qm_questions_after_the_first_qu(): """Verify the service browser's first question is QU and subsequent ones are QM questions.""" type_ = "_quservice._tcp.local." > zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:558: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ___________________________ test_asking_qm_questions ___________________________ def test_asking_qm_questions(): """Verify explictly asking QM questions.""" type_ = "_quservice._tcp.local." > zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ___________________________ test_asking_qu_questions ___________________________ def test_asking_qu_questions(): """Verify the service browser can ask QU questions.""" type_ = "_quservice._tcp.local." > zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:629: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______________________ test_legacy_record_update_listener ______________________ def test_legacy_record_update_listener(): """Test a RecordUpdateListener that does not implement update_records.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:664: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ________________ test_service_browser_is_aware_of_port_changes _________________ def test_service_browser_is_aware_of_port_changes(): """Test that the ServiceBrowser is aware of port changes.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ________________ test_service_browser_listeners_update_service _________________ def test_service_browser_listeners_update_service(): """Test that the ServiceBrowser ServiceListener that implements update_service.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:785: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 19) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _______________ test_service_browser_listeners_no_update_service _______________ def test_service_browser_listeners_no_update_service(): """Test that the ServiceBrowser ServiceListener that does not implement update_service.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:847: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 21) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 __________________ test_servicebrowser_uses_non_strict_names ___________________ def test_servicebrowser_uses_non_strict_names(): """Verify we can look for technically invalid names as we cannot change what others do.""" # dummy service callback def on_service_state_change(zeroconf, service_type, state_change, name): pass > zc = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ________________________ test_service_browser_matching _________________________ def test_service_browser_matching(): """Test that the ServiceBrowser matching does not match partial names.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:1043: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________ test_service_browser_expire_callbacks _____________________ @patch.object(_handlers, '_DNS_PTR_MIN_TTL', 1) @patch.object(_core, "_CACHE_CLEANUP_INTERVAL", 0.01) def test_service_browser_expire_callbacks(): """Test that the ServiceBrowser matching does not match partial names.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_browser.py:1127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ____________________ TestServiceInfo.test_get_info_partial _____________________ self = @unittest.skipIf(not has_working_ipv6(), 'Requires IPv6') @unittest.skipIf(os.environ.get('SKIP_IPV6'), 'IPv6 tests disabled') def test_get_info_partial(self): > zc = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_info.py:200: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _____________________ TestServiceInfo.test_get_info_single _____________________ self = def test_get_info_single(self): > zc = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_info.py:347: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ______ TestServiceInfo.test_service_info_duplicate_properties_txt_records ______ self = def test_service_info_duplicate_properties_txt_records(self): """Verify the first property is always used when there are duplicates in a txt record.""" > zc = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_info.py:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 __________ TestServiceInfo.test_service_info_rejects_expired_records ___________ self = def test_service_info_rejects_expired_records(self): """Verify records that are expired are rejected.""" > zc = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_info.py:159: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ________ TestServiceInfo.test_service_info_rejects_non_matching_updates ________ self = def test_service_info_rejects_non_matching_updates(self): """Verify records with the wrong name are rejected.""" > zc = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_info.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 19) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ___________________________ test_asking_qu_questions ___________________________ def test_asking_qu_questions(): """Verify explictly asking QU questions.""" type_ = "_quservice._tcp.local." > zeroconf = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_info.py:735: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 ___________________________ test_asking_qm_questions ___________________________ def test_asking_qm_questions(): """Verify explictly asking QM questions.""" type_ = "_quservice._tcp.local." > zeroconf = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_info.py:759: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _____________________________ test_request_timeout _____________________________ def test_request_timeout(): """Test that the timeout does not throw an exception and finishes close to the actual timeout.""" > zeroconf = r.Zeroconf(interfaces=['127.0.0.1']) tests/services/test_info.py:782: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _______________ ServiceTypesQuery.test_integration_with_listener _______________ self = def test_integration_with_listener(self): type_ = "_test-listen-type._tcp.local." name = "xxxyyy" registration_name = f"{name}.{type_}" > zeroconf_registrar = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_types.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _________ ServiceTypesQuery.test_integration_with_listener_v6_records __________ self = @unittest.skipIf(not has_working_ipv6(), 'Requires IPv6') @unittest.skipIf(os.environ.get('SKIP_IPV6'), 'IPv6 tests disabled') def test_integration_with_listener_v6_records(self): type_ = "_test-listenv6rec-type._tcp.local." name = "xxxyyy" registration_name = f"{name}.{type_}" addr = "2606:2800:220:1:248:1893:25c8:1946" # example.com > zeroconf_registrar = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_types.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 21) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 _________ ServiceTypesQuery.test_integration_with_subtype_and_listener _________ self = def test_integration_with_subtype_and_listener(self): subtype_ = "_subtype._sub" type_ = "_listen._tcp.local." name = "xxxyyy" # Note: discovery returns only DNS-SD type not subtype discovery_type = f"{subtype_}.{type_}" registration_name = f"{name}.{type_}" > zeroconf_registrar = Zeroconf(interfaces=['127.0.0.1']) tests/services/test_types.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:486: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:374: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug('Configuring socket %s with multicast interface %s', respond_socket, interface) if is_v6: iface_bin = struct.pack('@I', cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)) ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:343: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:271 Adding '127.0.0.1' (socket 23) to multicast group DEBUG zeroconf:net.py:222 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:257 Created socket DEBUG zeroconf:net.py:338 Configuring socket with multicast interface 127.0.0.1 =============================== warnings summary =============================== tests/test_asyncio.py:78 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:78: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:85 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:85: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:93 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:93: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:102 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:102: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:112 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:112: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:124 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:124: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:184 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:184: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:250 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:250: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:317 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:317: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:384 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:384: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:432 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:432: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:458 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:458: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:524 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:524: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:560 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:560: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:662 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:662: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:722 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:722: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:746 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:746: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:805 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:805: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:839 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:839: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:850 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:850: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:899 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:899: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1018 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:1018: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1065 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:1065: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1156 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:1156: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1170 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:1170: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1179 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:1179: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1213 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:1213: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1252 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_asyncio.py:1252: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_core.py:52 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_core.py:52: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_core.py:87 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_core.py:87: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_core.py:649 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_core.py:649: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_core.py:669 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_core.py:669: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_core.py:816 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_core.py:816: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:468 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:468: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:510 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:510: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:954 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:954: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1100 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1100: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1184 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1184: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1231 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1231: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1258 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1258: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1285 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1285: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1336 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1336: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1368 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1368: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1469 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1469: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1542 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1542: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1611 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1611: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1658 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/test_handlers.py:1658: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:941 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_browser.py:941: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:992 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_browser.py:992: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:573 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:573: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:593 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:593: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:792 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:792: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:815 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:815: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:880 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:880: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:963 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:963: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1045 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:1045: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1135 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:1135: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1189 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:1189: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1271 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/services/test_info.py:1271: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/utils/test_asyncio.py:22 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/utils/test_asyncio.py:22: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/utils/test_asyncio.py:38 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/utils/test_asyncio.py:38: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/utils/test_asyncio.py:49 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/utils/test_asyncio.py:49: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/utils/test_asyncio.py:122 /build/python-zeroconf/src/python-zeroconf-0.63.0/tests/utils/test_asyncio.py:122: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py: 28 warnings tests/test_core.py: 5 warnings tests/test_handlers.py: 14 warnings tests/services/test_browser.py: 2 warnings tests/services/test_info.py: 10 warnings tests/utils/test_asyncio.py: 4 warnings /usr/lib/python3.11/site-packages/_pytest/python.py:183: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped. You need to install a suitable plugin for your async framework, for example: - anyio - pytest-asyncio - pytest-tornasync - pytest-trio - pytest-twisted warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid))) tests/utils/test_name.py::test_service_type_name_overlong_full_name /usr/lib/python3.11/asyncio/base_events.py:692: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False> _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self) Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. tests/utils/test_net.py::test_disable_ipv6_only_or_raise /usr/lib/python3.11/site-packages/_pytest/python.py:194: ResourceWarning: unclosed result = testfunction(**testargs) Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. tests/utils/test_net.py::test_set_mdns_port_socket_options_for_ip_version /usr/lib/python3.11/unittest/mock.py:2169: ResourceWarning: unclosed def __init__(self, name, parent): Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.11.3-final-0 ----------- Name Stmts Miss Cover Missing ------------------------------------------------------------------ src/zeroconf/_cache.py 89 8 91% 105, 121-123, 134, 146, 197, 223 src/zeroconf/_core.py 440 207 53% 207-214, 240-241, 270-274, 279-343, 355-368, 374-375, 386-391, 399-400, 421-445, 510, 516-518, 542-547, 551, 555-556, 575-578, 584-585, 589-591, 596, 616-617, 638-648, 659-660, 668-669, 679-682, 691-693, 697-708, 718-726, 735-736, 742-750, 759-763, 776-779, 798-824, 835-836, 843-844, 855, 862, 867, 885-904, 915-916, 927-940, 970, 990-992, 995, 1003-1004 src/zeroconf/_dns.py 241 5 98% 116, 142, 185, 527, 542 src/zeroconf/_handlers.py 293 221 25% 99, 104-106, 113-119, 124-133, 141-149, 153-160, 164-165, 169-180, 184, 190, 208-209, 216-217, 222-231, 250-255, 261-269, 280-299, 307-336, 346-363, 383-384, 394-397, 406-476, 485-490, 501-514, 523-534, 541-545, 562-577, 581-583, 587-609 src/zeroconf/_protocol/incoming.py 194 4 98% 168-169, 180, 183 src/zeroconf/_protocol/outgoing.py 216 12 94% 96, 176-180, 188-193, 382 src/zeroconf/_services/__init__.py 32 7 78% 39, 42, 45, 50, 53-54, 58 src/zeroconf/_services/browser.py 231 154 33% 154-171, 176-189, 205-209, 213-214, 226-228, 233-234, 238-241, 245-258, 292-320, 328-331, 335, 339, 351-360, 366-393, 404-405, 424-425, 434-438, 442-451, 455-457, 461-463, 467-474, 478-482, 486-490, 494-496, 517-529, 536-539, 543-547, 556-558 src/zeroconf/_services/info.py 296 155 48% 81-84, 150, 209-210, 232-234, 325-348, 358-369, 373, 379, 391-392, 399-401, 408-411, 418-473, 499, 510, 535-537, 544-546, 553-570, 575, 587-590, 598-630, 636-644 src/zeroconf/_services/registry.py 43 2 95% 54-55 src/zeroconf/_services/types.py 24 10 58% 40, 44, 70-83 src/zeroconf/_updates.py 12 3 75% 51, 71-72 src/zeroconf/_utils/asyncio.py 42 8 81% 46-48, 60, 70-71, 89-90 src/zeroconf/_utils/name.py 63 21 67% 88-98, 103, 106, 109, 118, 121, 126, 135-140, 143-145, 148, 153, 156 src/zeroconf/_utils/net.py 209 7 97% 144, 185, 244, 270, 346, 376, 402 src/zeroconf/asyncio.py 73 39 47% 78-79, 83, 92-94, 118-133, 169-175, 194, 205, 213, 223, 228-233, 241-244, 250-251, 255-257, 261, 266, 274-275 src/zeroconf/const.py 77 2 97% 160-162 ------------------------------------------------------------------ TOTAL 2680 865 68% 7 files skipped due to complete coverage. =========================== short test summary info ============================ FAILED tests/test_core.py::Framework::test_handle_response - OSError: [Errno ... FAILED tests/test_core.py::Framework::test_launch_and_close - OSError: [Errno... FAILED tests/test_core.py::Framework::test_launch_and_close_context_manager FAILED tests/test_core.py::Framework::test_launch_and_close_v4_v6 - OSError: ... FAILED tests/test_core.py::Framework::test_launch_and_close_v6_only - OSError... FAILED tests/test_core.py::test_generate_service_query_set_qu_bit - OSError: ... FAILED tests/test_core.py::test_invalid_packets_ignored_and_does_not_cause_loop_exception FAILED tests/test_core.py::test_goodbye_all_services - OSError: [Errno 92] Pr... FAILED tests/test_core.py::test_register_service_with_custom_ttl - OSError: [... FAILED tests/test_core.py::test_logging_packets - OSError: [Errno 92] Protoco... FAILED tests/test_core.py::test_get_service_info_failure_path - OSError: [Err... FAILED tests/test_core.py::test_sending_unicast - OSError: [Errno 92] Protoco... FAILED tests/test_core.py::test_tc_bit_defers - OSError: [Errno 92] Protocol ... FAILED tests/test_core.py::test_tc_bit_defers_last_response_missing - OSError... FAILED tests/test_core.py::test_guard_against_oversized_packets - OSError: [E... FAILED tests/test_core.py::test_guard_against_duplicate_packets - OSError: [E... FAILED tests/test_core.py::test_shutdown_while_register_in_process - OSError:... FAILED tests/test_handlers.py::TestRegistrar::test_name_conflicts - OSError: ... FAILED tests/test_handlers.py::TestRegistrar::test_register_and_lookup_type_by_uppercase_name FAILED tests/test_handlers.py::TestRegistrar::test_ttl - OSError: [Errno 92] ... FAILED tests/test_handlers.py::test_ptr_optimization - OSError: [Errno 92] Pr... FAILED tests/test_handlers.py::test_any_query_for_ptr - OSError: [Errno 92] P... FAILED tests/test_handlers.py::test_aaaa_query - OSError: [Errno 92] Protocol... FAILED tests/test_handlers.py::test_aaaa_query_upper_case - OSError: [Errno 9... FAILED tests/test_handlers.py::test_a_and_aaaa_record_fate_sharing - OSError:... FAILED tests/test_handlers.py::test_unicast_response - OSError: [Errno 92] Pr... FAILED tests/test_handlers.py::test_qu_response - OSError: [Errno 92] Protoco... FAILED tests/test_handlers.py::test_known_answer_supression - OSError: [Errno... FAILED tests/test_handlers.py::test_multi_packet_known_answer_supression - OS... FAILED tests/test_handlers.py::test_known_answer_supression_service_type_enumeration_query FAILED tests/test_handlers.py::test_upper_case_enumeration_query - OSError: [... FAILED tests/test_init.py::Names::test_large_packet_exception_log_handling - ... FAILED tests/test_init.py::Names::test_verify_name_change_with_lots_of_names FAILED tests/test_services.py::ListenerTest::test_integration_with_listener_class FAILED tests/test_services.py::test_servicelisteners_raise_not_implemented - ... FAILED tests/test_updates.py::test_legacy_record_update_listener - OSError: [... FAILED tests/services/test_browser.py::test_service_browser_cancel_multiple_times FAILED tests/services/test_browser.py::test_service_browser_cancel_multiple_times_after_close FAILED tests/services/test_browser.py::test_service_browser_started_after_zeroconf_closed FAILED tests/services/test_browser.py::test_multiple_instances_running_close FAILED tests/services/test_browser.py::TestServiceBrowser::test_update_record FAILED tests/services/test_browser.py::TestServiceBrowserMultipleTypes::test_update_record FAILED tests/services/test_browser.py::test_backoff - OSError: [Errno 92] Pro... FAILED tests/services/test_browser.py::test_first_query_delay - OSError: [Err... FAILED tests/services/test_browser.py::test_asking_default_is_asking_qm_questions_after_the_first_qu FAILED tests/services/test_browser.py::test_asking_qm_questions - OSError: [E... FAILED tests/services/test_browser.py::test_asking_qu_questions - OSError: [E... FAILED tests/services/test_browser.py::test_legacy_record_update_listener - O... FAILED tests/services/test_browser.py::test_service_browser_is_aware_of_port_changes FAILED tests/services/test_browser.py::test_service_browser_listeners_update_service FAILED tests/services/test_browser.py::test_service_browser_listeners_no_update_service FAILED tests/services/test_browser.py::test_servicebrowser_uses_non_strict_names FAILED tests/services/test_browser.py::test_service_browser_matching - OSErro... FAILED tests/services/test_browser.py::test_service_browser_expire_callbacks FAILED tests/services/test_info.py::TestServiceInfo::test_get_info_partial - ... FAILED tests/services/test_info.py::TestServiceInfo::test_get_info_single - O... FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_duplicate_properties_txt_records FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_expired_records FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_non_matching_updates FAILED tests/services/test_info.py::test_asking_qu_questions - OSError: [Errn... FAILED tests/services/test_info.py::test_asking_qm_questions - OSError: [Errn... FAILED tests/services/test_info.py::test_request_timeout - OSError: [Errno 92... FAILED tests/services/test_types.py::ServiceTypesQuery::test_integration_with_listener FAILED tests/services/test_types.py::ServiceTypesQuery::test_integration_with_listener_v6_records FAILED tests/services/test_types.py::ServiceTypesQuery::test_integration_with_subtype_and_listener ERROR tests/test_exceptions.py::Exceptions::test_bad_local_names_for_get_service_info ERROR tests/test_exceptions.py::Exceptions::test_bad_service_info_name - OSEr... ERROR tests/test_exceptions.py::Exceptions::test_bad_service_names - OSError:... ERROR tests/test_exceptions.py::Exceptions::test_bad_sub_types - OSError: [Er... ERROR tests/test_exceptions.py::Exceptions::test_bad_types - OSError: [Errno ... ERROR tests/test_exceptions.py::Exceptions::test_good_instance_names - OSErro... ERROR tests/test_exceptions.py::Exceptions::test_good_instance_names_without_protocol ERROR tests/test_exceptions.py::Exceptions::test_good_service_names - OSError... ERROR tests/test_exceptions.py::Exceptions::test_invalid_addresses - OSError:... = 65 failed, 137 passed, 65 skipped, 1 deselected, 129 warnings, 9 errors in 39.71s = ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root21/build receiving incremental file list python-zeroconf-0.63.0-1-riscv64-build.log python-zeroconf-0.63.0-1-riscv64-check.log sent 62 bytes received 17,890 bytes 11,968.00 bytes/sec total size is 272,483 speedup is 15.18