D: [iurt_root_command] chroot Building target platforms: aarch64 Building for target aarch64 Installing /home/iurt/rpmbuild/SRPMS/@2237939:python-zeroconf-0.144.1-4.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.ehFGfe Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.CHoc0Q + umask 022 + cd /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build + rm -rf zeroconf-0.144.1 + /usr/lib/rpm/rpmuncompress -x /home/iurt/rpmbuild/SOURCES/zeroconf-0.144.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd zeroconf-0.144.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -Ei 's/--cov(-|=)[^ "]+//g' pyproject.toml + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.gxOBnl + umask 022 + cd /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build + cd zeroconf-0.144.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + true + for f in pyproject.toml setup.py setup.cfg + '[' -f pyproject.toml ']' + sed -i -E -e '/^requires/s/(['\''"]\s*flit_core\s*>=\s*[0-9]+(\.[0-9]+)+)\s*,\s*<\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\4/' pyproject.toml + sed -i -E -e '/python_requires/s/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/' pyproject.toml + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9a-z]+)*)\s*,\s*(<|!=|<=)\s*[0-9]+(\.[0-9a-z]+)*(-?dev[0-9]*)?(\.\*)*(\s*['\''"]?)/\1\7/g' pyproject.toml + sed -i -E -e 's/(['\''"]\w+\s*)!=(\s*([0-9])+(\.[0-9]+)*\s*['\''"])/\1>\2/g' pyproject.toml + sed -i -E -e 's/(['\''"]\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\5/g' pyproject.toml + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/g' pyproject.toml + sed -i -E -e 's/(['\''"]\s*)\^(\s*[0-9]+(\.[0-9]+)*\s*['\''"])/\1>=\2/g' pyproject.toml + sed -i -e 's/~=/>=/g' pyproject.toml + sed -i -E -e 's/(['\''"]\s*\S*\s*)==(\s*[0-9]+(\.[0-9]+)*)\.\*(\s*['\''"])/\1>=\2\4/g' pyproject.toml + sed -i -E -e 's/(['\''"]?\w*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)[0-9]+(\.[0-9]+)*\s*(['\''"]?)/\1\5/g' pyproject.toml + for f in pyproject.toml setup.py setup.cfg + '[' -f setup.py ']' + sed -i -E -e '/^requires/s/(['\''"]\s*flit_core\s*>=\s*[0-9]+(\.[0-9]+)+)\s*,\s*<\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\4/' setup.py + sed -i -E -e '/python_requires/s/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/' setup.py + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9a-z]+)*)\s*,\s*(<|!=|<=)\s*[0-9]+(\.[0-9a-z]+)*(-?dev[0-9]*)?(\.\*)*(\s*['\''"]?)/\1\7/g' setup.py + sed -i -E -e 's/(['\''"]\w+\s*)!=(\s*([0-9])+(\.[0-9]+)*\s*['\''"])/\1>\2/g' setup.py + sed -i -E -e 's/(['\''"]\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\5/g' setup.py + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/g' setup.py + sed -i -E -e 's/(['\''"]\s*)\^(\s*[0-9]+(\.[0-9]+)*\s*['\''"])/\1>=\2/g' setup.py + sed -i -e 's/~=/>=/g' setup.py + sed -i -E -e 's/(['\''"]\s*\S*\s*)==(\s*[0-9]+(\.[0-9]+)*)\.\*(\s*['\''"])/\1>=\2\4/g' setup.py + sed -i -E -e 's/(['\''"]?\w*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)[0-9]+(\.[0-9]+)*\s*(['\''"]?)/\1\5/g' setup.py + for f in pyproject.toml setup.py setup.cfg + '[' -f setup.cfg ']' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/.pyproject-builddir + echo -n + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + CXX=g++ + TMPDIR=/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/.pyproject-builddir + RPM_TOXENV=py313 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/pyproject-wheeldir --output /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/python-zeroconf-0.144.1-4.mga10.aarch64-pyproject-buildrequires Handling setuptools>=65.4.1 from build-system.requires Requirement satisfied: setuptools>=65.4.1 (installed: setuptools 79.0.1) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.43.0) Handling Cython>=3.0.8 from build-system.requires Requirement satisfied: Cython>=3.0.8 (installed: Cython 3.0.12) Handling poetry-core>=1.5.2 from build-system.requires Requirement satisfied: poetry-core>=1.5.2 (installed: poetry-core 2.1.3) Handling ifaddr (>=0.1.7) from hook generated metadata: Requires-Dist (zeroconf) Requirement satisfied: ifaddr (>=0.1.7) (installed: ifaddr 0.2.0) + cat /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/python-zeroconf-0.144.1-4.mga10.aarch64-pyproject-buildrequires + rm -rfv zeroconf-0.144.1.dist-info/ removed 'zeroconf-0.144.1.dist-info/METADATA' removed 'zeroconf-0.144.1.dist-info/WHEEL' removed 'zeroconf-0.144.1.dist-info/COPYING' removed directory 'zeroconf-0.144.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.BFXEsW + umask 022 + cd /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd zeroconf-0.144.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export REQUIRE_CYTHON=1 + REQUIRE_CYTHON=1 + mkdir -p /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/.pyproject-builddir + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + CXX=g++ + TMPDIR=/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/pyproject-wheeldir Processing /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: zeroconf Building wheel for zeroconf (pyproject.toml): started Running command Building wheel for zeroconf (pyproject.toml) A setup.py file already exists. Using it. warning: src/zeroconf/_cache.py:56:23: Unknown type declaration '_DNSRecordCacheType' in annotation, ignoring warning: src/zeroconf/_cache.py:56:49: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_cache.py:56:63: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_cache.py:79:33: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_cache.py:122:36: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_cache.py:141:32: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_cache.py:188:38: Unknown type declaration '_UniqueRecordsType' in annotation, ignoring warning: src/zeroconf/_cache.py:200:41: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_cache.py:200:54: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:200:68: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:246:47: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:246:61: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:267:51: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:267:65: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:306:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_cache.py:320:61: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_cache.py:320:74: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:74:49: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:74:63: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:119:43: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:119:57: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:180:50: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:180:64: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:180:75: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:180:92: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:193:33: Unknown type declaration 'DNSIncoming' in annotation, ignoring warning: src/zeroconf/_dns.py:207:43: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:213:37: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:218:30: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:222:28: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:226:29: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:230:40: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:267:15: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:268:16: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:269:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:272:17: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:330:32: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:330:46: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:330:57: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:330:93: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:377:32: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:377:46: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:377:57: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:377:86: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:432:32: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:432:46: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:432:57: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:432:87: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:485:15: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:486:16: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:487:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:488:18: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:489:16: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:490:14: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:492:17: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:552:15: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:553:16: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:554:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:557:17: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:636:33: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_handlers/answers.py:89:13: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/answers.py:98:13: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/answers.py:101:9: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_handlers/answers.py:113:56: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/multicast_outgoing_queue.py:69:29: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_handlers/multicast_outgoing_queue.py:69:46: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/multicast_outgoing_queue.py:91:50: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:119:48: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:130:51: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:135:51: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:216:20: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:238:20: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:257:20: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:259:15: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:286:23: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:439:14: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:440:14: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:441:19: Unknown type declaration '_WrappedTransport' in annotation, ignoring warning: src/zeroconf/_handlers/record_manager.py:53:33: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_history.py:41:63: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_history.py:45:53: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_history.py:67:32: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_listener.py:87:38: Unknown type declaration '_bytes' in annotation, ignoring warning: src/zeroconf/_listener.py:108:18: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_listener.py:109:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_listener.py:110:14: Unknown type declaration '_bytes' in annotation, ignoring warning: src/zeroconf/_listener.py:189:14: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_listener.py:190:14: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_listener.py:191:19: Unknown type declaration '_WrappedTransport' in annotation, ignoring warning: src/zeroconf/_listener.py:220:48: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_listener.py:228:14: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_listener.py:229:14: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_listener.py:230:19: Unknown type declaration '_WrappedTransport' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:267:35: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:310:22: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:310:35: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:310:49: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:310:60: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:310:74: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:389:32: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:421:44: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:156:64: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:204:33: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:209:32: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:213:44: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:217:36: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:217:49: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:221:33: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:236:34: Unknown type declaration 'bytes_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:243:28: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:261:31: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:304:41: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:310:40: Unknown type declaration 'DNSQuestion_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:327:33: Unknown type declaration 'DNSRecord_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:327:50: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:331:36: Unknown type declaration 'DNSRecord_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:331:53: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:353:63: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:353:81: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:376:61: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:384:56: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:392:79: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:402:26: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:403:23: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:404:26: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:405:27: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_record_update.py:37:30: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_services/browser.py:195:39: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:220:16: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:221:15: Unknown type declaration 'bool_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:222:33: Unknown type declaration '_QuestionWithKnownAnswers' in annotation, ignoring warning: src/zeroconf/_services/browser.py:259:8: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/browser.py:260:16: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:393:28: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:394:29: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:435:20: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:436:31: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:536:47: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:651:22: Unknown type declaration 'ServiceStateChange' in annotation, ignoring warning: src/zeroconf/_services/browser.py:652:15: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:653:14: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:668:39: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/browser.py:668:54: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:310:44: Unknown type declaration 'IPVersion' in annotation, ignoring warning: src/zeroconf/_services/info.py:329:23: Unknown type declaration 'IPVersion' in annotation, ignoring warning: src/zeroconf/_services/info.py:342:29: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:448:18: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/info.py:448:33: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:448:47: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:461:49: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/info.py:461:64: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:471:49: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/info.py:471:64: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:481:39: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/info.py:481:54: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:493:45: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/info.py:493:79: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:589:17: Unknown type declaration 'IPVersion' in annotation, ignoring warning: src/zeroconf/_services/info.py:720:58: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/info.py:720:75: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:750:35: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/info.py:750:50: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:895:13: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:896:14: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_services/info.py:897:15: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:898:16: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:919:18: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_services/info.py:919:33: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:919:56: Unknown type declaration 'DNSQuestionType' in annotation, ignoring warning: src/zeroconf/_services/registry.py:82:65: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_updates.py:54:39: Unknown type declaration 'Zeroconf' in annotation, ignoring warning: src/zeroconf/_updates.py:54:54: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_utils/ipaddress.py:132:13: Unknown type declaration 'bytes_' in annotation, ignoring warning: src/zeroconf/_utils/ipaddress.py:132:28: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_utils/time.py:41:30: Unknown type declaration '_float' in annotation, ignoring Compiling src/zeroconf/_dns.py because it changed. Compiling src/zeroconf/_cache.py because it changed. Compiling src/zeroconf/_history.py because it changed. Compiling src/zeroconf/_record_update.py because it changed. Compiling src/zeroconf/_listener.py because it changed. Compiling src/zeroconf/_protocol/incoming.py because it changed. Compiling src/zeroconf/_protocol/outgoing.py because it changed. Compiling src/zeroconf/_handlers/answers.py because it changed. Compiling src/zeroconf/_handlers/record_manager.py because it changed. Compiling src/zeroconf/_handlers/multicast_outgoing_queue.py because it changed. Compiling src/zeroconf/_handlers/query_handler.py because it changed. Compiling src/zeroconf/_services/__init__.py because it changed. Compiling src/zeroconf/_services/browser.py because it changed. Compiling src/zeroconf/_services/info.py because it changed. Compiling src/zeroconf/_services/registry.py because it changed. Compiling src/zeroconf/_updates.py because it changed. Compiling src/zeroconf/_utils/ipaddress.py because it changed. Compiling src/zeroconf/_utils/time.py because it changed. [ 1/18] Cythonizing src/zeroconf/_cache.py [ 2/18] Cythonizing src/zeroconf/_dns.py [ 3/18] Cythonizing src/zeroconf/_handlers/answers.py [ 4/18] Cythonizing src/zeroconf/_handlers/multicast_outgoing_queue.py [ 5/18] Cythonizing src/zeroconf/_handlers/query_handler.py [ 6/18] Cythonizing src/zeroconf/_handlers/record_manager.py [ 7/18] Cythonizing src/zeroconf/_history.py [ 8/18] Cythonizing src/zeroconf/_listener.py [ 9/18] Cythonizing src/zeroconf/_protocol/incoming.py [10/18] Cythonizing src/zeroconf/_protocol/outgoing.py [11/18] Cythonizing src/zeroconf/_record_update.py [12/18] Cythonizing src/zeroconf/_services/__init__.py [13/18] Cythonizing src/zeroconf/_services/browser.py [14/18] Cythonizing src/zeroconf/_services/info.py [15/18] Cythonizing src/zeroconf/_services/registry.py [16/18] Cythonizing src/zeroconf/_updates.py [17/18] Cythonizing src/zeroconf/_utils/ipaddress.py [18/18] Cythonizing src/zeroconf/_utils/time.py running build running build_py creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_cache.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_exceptions.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_updates.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_core.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_engine.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/__init__.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_listener.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/const.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_dns.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_record_update.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/asyncio.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_logger.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_history.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_transport.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/__init__.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/answers.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/query_handler.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/record_manager.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/multicast_outgoing_queue.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_protocol copying src/zeroconf/_protocol/__init__.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_protocol copying src/zeroconf/_protocol/incoming.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_protocol copying src/zeroconf/_protocol/outgoing.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_protocol creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_services/types.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_services/__init__.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_services/browser.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_services/registry.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_services/info.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/ipaddress.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/name.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/__init__.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/net.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/asyncio.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/time.py -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils copying src/zeroconf/py.typed -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_history.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_cache.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_listener.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_dns.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_record_update.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_updates.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf copying src/zeroconf/_handlers/record_manager.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/answers.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/query_handler.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/multicast_outgoing_queue.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers copying src/zeroconf/_protocol/outgoing.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_protocol copying src/zeroconf/_protocol/incoming.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_protocol copying src/zeroconf/_services/registry.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_services/info.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_services/__init__.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_services/browser.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services copying src/zeroconf/_utils/ipaddress.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/time.pxd -> /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils running build_ext building 'zeroconf._dns' extension creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_dns.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_dns.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_dns.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_dns.cpython-313-aarch64-linux-gnu.so building 'zeroconf._cache' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_cache.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_cache.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_cache.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_cache.cpython-313-aarch64-linux-gnu.so building 'zeroconf._history' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_history.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_history.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_history.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_history.cpython-313-aarch64-linux-gnu.so building 'zeroconf._record_update' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_record_update.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_record_update.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_record_update.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_record_update.cpython-313-aarch64-linux-gnu.so building 'zeroconf._listener' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_listener.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_listener.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_listener.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_listener.cpython-313-aarch64-linux-gnu.so building 'zeroconf._protocol.incoming' extension creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_protocol gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_protocol/incoming.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_protocol/incoming.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_protocol/incoming.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_protocol/incoming.cpython-313-aarch64-linux-gnu.so building 'zeroconf._protocol.outgoing' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_protocol/outgoing.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_protocol/outgoing.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_protocol/outgoing.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_protocol/outgoing.cpython-313-aarch64-linux-gnu.so building 'zeroconf._handlers.answers' extension creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_handlers/answers.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers/answers.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers/answers.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers/answers.cpython-313-aarch64-linux-gnu.so building 'zeroconf._handlers.record_manager' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_handlers/record_manager.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers/record_manager.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers/record_manager.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers/record_manager.cpython-313-aarch64-linux-gnu.so building 'zeroconf._handlers.multicast_outgoing_queue' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_handlers/multicast_outgoing_queue.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers/multicast_outgoing_queue.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers/multicast_outgoing_queue.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers/multicast_outgoing_queue.cpython-313-aarch64-linux-gnu.so building 'zeroconf._handlers.query_handler' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_handlers/query_handler.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers/query_handler.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_handlers/query_handler.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_handlers/query_handler.cpython-313-aarch64-linux-gnu.so building 'zeroconf._services.__init__' extension creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_services/__init__.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services/__init__.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services/__init__.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services/__init__.cpython-313-aarch64-linux-gnu.so building 'zeroconf._services.browser' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_services/browser.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services/browser.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services/browser.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services/browser.cpython-313-aarch64-linux-gnu.so building 'zeroconf._services.info' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_services/info.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services/info.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services/info.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services/info.cpython-313-aarch64-linux-gnu.so building 'zeroconf._services.registry' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_services/registry.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services/registry.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_services/registry.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_services/registry.cpython-313-aarch64-linux-gnu.so building 'zeroconf._updates' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_updates.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_updates.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_updates.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_updates.cpython-313-aarch64-linux-gnu.so building 'zeroconf._utils.ipaddress' extension creating /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_utils gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_utils/ipaddress.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_utils/ipaddress.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_utils/ipaddress.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils/ipaddress.cpython-313-aarch64-linux-gnu.so building 'zeroconf._utils.time' extension gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.13 -c src/zeroconf/_utils/time.c -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_utils/time.o gcc -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/temp.linux-aarch64-cpython-313/src/zeroconf/_utils/time.o -L/usr/lib64 -lpython3.13 -o /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/build/lib.linux-aarch64-cpython-313/zeroconf/_utils/time.cpython-313-aarch64-linux-gnu.so Building wheel for zeroconf (pyproject.toml): finished with status 'done' Created wheel for zeroconf: filename=zeroconf-0.144.1-cp313-cp313-manylinux_2_41_aarch64.whl size=10252717 sha256=0a970beb6bda1bbe915315d3fa55c148361eba53d0e37a875e9eb94059396977 Stored in directory: /home/iurt/.cache/pip/wheels/fc/00/fa/5d16f368ef0634d22bb5169a23d2ee2a873d15eeede2243996 Successfully built zeroconf + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.PVeipl + umask 022 + cd /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT ++ dirname /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT + mkdir -p /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build + mkdir /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd zeroconf-0.144.1 + '[' 1 -eq 1 ']' ++ ls /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/pyproject-wheeldir/zeroconf-0.144.1-cp313-cp313-manylinux_2_41_aarch64.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=zeroconf==0.144.1 + '[' -z zeroconf==0.144.1 ']' + TMPDIR=/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/.pyproject-builddir + /usr/bin/python3 -m pip install --root /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/pyproject-wheeldir zeroconf==0.144.1 Using pip 25.1.1 from /usr/lib/python3.13/site-packages/pip (python 3.13) Looking in links: /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/pyproject-wheeldir Processing ./pyproject-wheeldir/zeroconf-0.144.1-cp313-cp313-manylinux_2_41_aarch64.whl Installing collected packages: zeroconf Successfully installed zeroconf-0.144.1 + '[' -d /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/bin ']' + rm -f /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/python-zeroconf-0.144.1-4.mga10.aarch64-pyproject-ghost-distinfo + site_dirs=() + '[' -d /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib/python3.13/site-packages ']' + '[' /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages '!=' /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib/python3.13/site-packages ']' + '[' -d /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages ']' + site_dirs+=("/usr/lib64/python3.13/site-packages") + for site_dir in ${site_dirs[@]} + for distinfo in /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost /usr/lib64/python3.13/site-packages/zeroconf-0.144.1.dist-info' + sed -i s/pip/rpm/ /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/zeroconf-0.144.1.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT --record /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/zeroconf-0.144.1.dist-info/RECORD --output /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/python-zeroconf-0.144.1-4.mga10.aarch64-pyproject-record + rm -fv /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/zeroconf-0.144.1.dist-info/RECORD removed '/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/zeroconf-0.144.1.dist-info/RECORD' + rm -fv /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/zeroconf-0.144.1.dist-info/REQUESTED removed '/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/zeroconf-0.144.1.dist-info/REQUESTED' ++ wc -l /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/python-zeroconf-0.144.1-4.mga10.aarch64-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_FILES_ESCAPE=4.19 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/python-zeroconf-0.144.1-4.mga10.aarch64-pyproject-files --output-modules /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/python-zeroconf-0.144.1-4.mga10.aarch64-pyproject-modules --buildroot /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT --sitelib /usr/lib/python3.13/site-packages --sitearch /usr/lib64/python3.13/site-packages --python-version 3.13 --pyproject-record /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/python-zeroconf-0.144.1-4.mga10.aarch64-pyproject-record --prefix /usr zeroconf + /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 0.144.1-4.mga10 --unique-debug-suffix -0.144.1-4.mga10.aarch64 --unique-debug-src-base python-zeroconf-0.144.1-4.mga10.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1 find-debuginfo: starting Extracting debug info from 18 files DWARF-compressing 18 files sepdebugcrcfix: Updated 18 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/python-zeroconf-0.144.1-4.mga10.aarch64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 Bytecompiling .py files below /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13 using python3.13 Not clamping source mtimes, $SOURCE_DATE_EPOCH not set Bytecompiling .py files below /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib/debug/usr/lib64/python3.13 using python3.13 Not clamping source mtimes, $SOURCE_DATE_EPOCH not set + /usr/lib/rpm/redhat/brp-python-hardlink Reading /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/SPECPARTS/rpm-debuginfo.specpart Executing(%check): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.v5QUm6 + umask 022 + cd /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd zeroconf-0.144.1 + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + PATH=/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/bin:/usr/local/bin:/usr/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/home/iurt/.local/bin:/home/iurt/bin + PYTHONPATH=/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib64/python3.13/site-packages:/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/BUILDROOT/usr/lib/python3.13/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=16 + /usr/bin/pytest -v -k 'not integration and not test_ptr_optimization and not v6 and not test_sending_unicast' /usr/lib/python3.13/site-packages/pytest_asyncio/plugin.py:217: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) ============================= test session starts ============================== platform linux -- Python 3.13.5, pytest-8.3.5, pluggy-1.5.0 -- /usr/bin/python3 codspeed: 3.2.0 (disabled, mode: walltime, timer_resolution: 1.0ns) cachedir: .pytest_cache rootdir: /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1 configfile: pyproject.toml plugins: codspeed-3.2.0, asyncio-0.26.0, timeout-2.3.1 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function collecting ... collected 327 items / 14 deselected / 313 selected tests/benchmarks/test_cache.py::test_add_expire_1000_records PASSED [ 0%] tests/benchmarks/test_cache.py::test_expire_no_records_to_expire PASSED [ 0%] tests/benchmarks/test_incoming.py::test_parse_incoming_message PASSED [ 0%] tests/benchmarks/test_outgoing.py::test_parse_outgoing_message PASSED [ 1%] tests/benchmarks/test_send.py::test_sending_packets FAILED [ 1%] tests/benchmarks/test_txt_properties.py::test_txt_properties PASSED [ 1%] tests/services/test_browser.py::test_service_browser_cancel_multiple_times FAILED [ 2%] tests/services/test_browser.py::test_service_browser_cancel_context_manager FAILED [ 2%] tests/services/test_browser.py::test_service_browser_cancel_multiple_times_after_close FAILED [ 2%] tests/services/test_browser.py::test_service_browser_started_after_zeroconf_closed FAILED [ 3%] tests/services/test_browser.py::test_multiple_instances_running_close FAILED [ 3%] tests/services/test_browser.py::TestServiceBrowser::test_update_record FAILED [ 3%] tests/services/test_browser.py::TestServiceBrowserMultipleTypes::test_update_record FAILED [ 4%] tests/services/test_browser.py::test_first_query_delay FAILED [ 4%] tests/services/test_browser.py::test_asking_default_is_asking_qm_questions_after_the_first_qu FAILED [ 4%] tests/services/test_browser.py::test_ttl_refresh_cancelled_rescue_query FAILED [ 5%] tests/services/test_browser.py::test_asking_qm_questions FAILED [ 5%] tests/services/test_browser.py::test_asking_qu_questions FAILED [ 5%] tests/services/test_browser.py::test_legacy_record_update_listener FAILED [ 6%] tests/services/test_browser.py::test_service_browser_is_aware_of_port_changes FAILED [ 6%] tests/services/test_browser.py::test_service_browser_listeners_update_service FAILED [ 6%] tests/services/test_browser.py::test_service_browser_listeners_no_update_service FAILED [ 7%] tests/services/test_browser.py::test_service_browser_uses_non_strict_names FAILED [ 7%] tests/services/test_browser.py::test_group_ptr_queries_with_known_answers PASSED [ 7%] tests/services/test_browser.py::test_generate_service_query_suppress_duplicate_questions FAILED [ 7%] tests/services/test_browser.py::test_query_scheduler FAILED [ 8%] tests/services/test_browser.py::test_query_scheduler_rescue_records FAILED [ 8%] tests/services/test_browser.py::test_service_browser_matching FAILED [ 8%] tests/services/test_browser.py::test_service_browser_expire_callbacks FAILED [ 9%] tests/services/test_browser.py::test_scheduled_ptr_query_dunder_methods PASSED [ 9%] tests/services/test_browser.py::test_close_zeroconf_without_browser_before_start_up_queries FAILED [ 9%] tests/services/test_browser.py::test_close_zeroconf_without_browser_after_start_up_queries FAILED [ 10%] tests/services/test_info.py::TestServiceInfo::test_get_info_partial SKIPPED [ 10%] tests/services/test_info.py::TestServiceInfo::test_get_info_single FAILED [ 10%] tests/services/test_info.py::TestServiceInfo::test_get_info_suppressed_by_question_history SKIPPED [ 11%] tests/services/test_info.py::TestServiceInfo::test_get_name PASSED [ 11%] tests/services/test_info.py::TestServiceInfo::test_service_info_duplicate_properties_txt_records FAILED [ 11%] tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_expired_records FAILED [ 12%] tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_non_matching_updates FAILED [ 12%] tests/services/test_info.py::test_multiple_addresses PASSED [ 12%] tests/services/test_info.py::test_scoped_addresses_from_cache FAILED [ 13%] tests/services/test_info.py::test_multiple_a_addresses_newest_address_first FAILED [ 13%] tests/services/test_info.py::test_invalid_a_addresses FAILED [ 13%] tests/services/test_info.py::test_filter_address_by_type_from_service_info SKIPPED [ 14%] tests/services/test_info.py::test_changing_name_updates_serviceinfo_key PASSED [ 14%] tests/services/test_info.py::test_serviceinfo_address_updates PASSED [ 14%] tests/services/test_info.py::test_serviceinfo_accepts_bytes_or_string_dict PASSED [ 15%] tests/services/test_info.py::test_asking_qu_questions FAILED [ 15%] tests/services/test_info.py::test_asking_qm_questions FAILED [ 15%] tests/services/test_info.py::test_request_timeout FAILED [ 15%] tests/services/test_info.py::test_we_try_four_times_with_random_delay FAILED [ 16%] tests/services/test_info.py::test_release_wait_when_new_recorded_added FAILED [ 16%] tests/services/test_info.py::test_port_changes_are_seen FAILED [ 16%] tests/services/test_info.py::test_port_changes_are_seen_with_directed_request FAILED [ 17%] tests/services/test_info.py::test_ipv4_changes_are_seen FAILED [ 17%] tests/services/test_info.py::test_bad_ip_addresses_ignored_in_cache FAILED [ 17%] tests/services/test_info.py::test_service_name_change_as_seen_has_ip_in_cache FAILED [ 18%] tests/services/test_info.py::test_service_name_change_as_seen_ip_not_in_cache FAILED [ 18%] tests/services/test_info.py::test_release_wait_when_new_recorded_added_concurrency FAILED [ 18%] tests/services/test_info.py::test_service_info_nsec_records PASSED [ 19%] tests/services/test_info.py::test_address_resolver FAILED [ 19%] tests/services/test_info.py::test_address_resolver_ipv4 FAILED [ 19%] tests/services/test_registry.py::TestServiceRegistry::test_lookups PASSED [ 20%] tests/services/test_registry.py::TestServiceRegistry::test_lookups_upper_case_by_lower_case PASSED [ 20%] tests/services/test_registry.py::TestServiceRegistry::test_only_register_once PASSED [ 20%] tests/services/test_registry.py::TestServiceRegistry::test_register_same_server PASSED [ 21%] tests/services/test_registry.py::TestServiceRegistry::test_unregister_multiple_times PASSED [ 21%] tests/test_asyncio.py::test_async_basic_usage FAILED [ 21%] tests/test_asyncio.py::test_async_close_twice FAILED [ 22%] tests/test_asyncio.py::test_async_with_sync_passed_in FAILED [ 22%] tests/test_asyncio.py::test_async_with_sync_passed_in_closed_in_async FAILED [ 22%] tests/test_asyncio.py::test_sync_within_event_loop_executor FAILED [ 23%] tests/test_asyncio.py::test_async_service_registration FAILED [ 23%] tests/test_asyncio.py::test_async_service_registration_with_server_missing FAILED [ 23%] tests/test_asyncio.py::test_async_service_registration_same_server_different_ports FAILED [ 23%] tests/test_asyncio.py::test_async_service_registration_same_server_same_ports FAILED [ 24%] tests/test_asyncio.py::test_async_service_registration_name_conflict FAILED [ 24%] tests/test_asyncio.py::test_async_service_registration_name_does_not_match_type FAILED [ 24%] tests/test_asyncio.py::test_async_service_registration_name_strict_check FAILED [ 25%] tests/test_asyncio.py::test_async_tasks FAILED [ 25%] tests/test_asyncio.py::test_async_wait_unblocks_on_update FAILED [ 25%] tests/test_asyncio.py::test_service_info_async_request SKIPPED (Requires IPv6) [ 26%] tests/test_asyncio.py::test_async_service_browser FAILED [ 26%] tests/test_asyncio.py::test_async_context_manager FAILED [ 26%] tests/test_asyncio.py::test_service_browser_cancel_async_context_manager FAILED [ 27%] tests/test_asyncio.py::test_async_unregister_all_services FAILED [ 27%] tests/test_asyncio.py::test_async_zeroconf_service_types FAILED [ 27%] tests/test_asyncio.py::test_guard_against_running_serviceinfo_request_event_loop FAILED [ 28%] tests/test_asyncio.py::test_service_browser_instantiation_generates_add_events_from_cache FAILED [ 28%] tests/test_asyncio.py::test_info_asking_default_is_asking_qm_questions_after_the_first_qu FAILED [ 28%] tests/test_asyncio.py::test_service_browser_ignores_unrelated_updates FAILED [ 29%] tests/test_asyncio.py::test_async_request_timeout FAILED [ 29%] tests/test_asyncio.py::test_async_request_non_running_instance FAILED [ 29%] tests/test_asyncio.py::test_legacy_unicast_response FAILED [ 30%] tests/test_asyncio.py::test_update_with_uppercase_names FAILED [ 30%] tests/test_cache.py::TestDNSCache::test_adding_same_record_to_cache_different_ttls_with_get PASSED [ 30%] tests/test_cache.py::TestDNSCache::test_adding_same_record_to_cache_different_ttls_with_get_all PASSED [ 30%] tests/test_cache.py::TestDNSCache::test_cache_empty_does_not_leak_memory_by_leaving_empty_list PASSED [ 31%] tests/test_cache.py::TestDNSCache::test_cache_empty_multiple_calls PASSED [ 31%] tests/test_cache.py::TestDNSCache::test_order PASSED [ 31%] tests/test_cache.py::TestDNSAsyncCacheAPI::test_async_all_by_details PASSED [ 32%] tests/test_cache.py::TestDNSAsyncCacheAPI::test_async_entries_with_name PASSED [ 32%] tests/test_cache.py::TestDNSAsyncCacheAPI::test_async_entries_with_server PASSED [ 32%] tests/test_cache.py::TestDNSAsyncCacheAPI::test_async_get_unique PASSED [ 33%] tests/test_cache.py::TestDNSCacheAPI::test_current_entry_with_name_and_alias PASSED [ 33%] tests/test_cache.py::TestDNSCacheAPI::test_entries_with_name PASSED [ 33%] tests/test_cache.py::TestDNSCacheAPI::test_entries_with_server PASSED [ 34%] tests/test_cache.py::TestDNSCacheAPI::test_get PASSED [ 34%] tests/test_cache.py::TestDNSCacheAPI::test_get_all_by_details PASSED [ 34%] tests/test_cache.py::TestDNSCacheAPI::test_get_by_details PASSED [ 35%] tests/test_cache.py::TestDNSCacheAPI::test_name PASSED [ 35%] tests/test_cache.py::test_async_entries_with_name_returns_newest_record PASSED [ 35%] tests/test_cache.py::test_async_entries_with_server_returns_newest_record PASSED [ 36%] tests/test_cache.py::test_async_get_returns_newest_record PASSED [ 36%] tests/test_cache.py::test_async_get_returns_newest_nsec_record PASSED [ 36%] tests/test_cache.py::test_get_by_details_returns_newest_record PASSED [ 37%] tests/test_cache.py::test_get_all_by_details_returns_newest_record PASSED [ 37%] tests/test_cache.py::test_async_get_all_by_details_returns_newest_record PASSED [ 37%] tests/test_cache.py::test_async_get_unique_returns_newest_record PASSED [ 38%] tests/test_cache.py::test_cache_heap_cleanup PASSED [ 38%] tests/test_cache.py::test_cache_heap_multi_name_cleanup PASSED [ 38%] tests/test_cache.py::test_cache_heap_pops_order PASSED [ 38%] tests/test_circular_imports.py::test_circular_imports[zeroconf] PASSED [ 39%] tests/test_circular_imports.py::test_circular_imports[zeroconf.asyncio] PASSED [ 39%] tests/test_circular_imports.py::test_circular_imports[zeroconf._protocol.incoming] PASSED [ 39%] tests/test_circular_imports.py::test_circular_imports[zeroconf._protocol.outgoing] PASSED [ 40%] tests/test_circular_imports.py::test_circular_imports[zeroconf.const] PASSED [ 40%] tests/test_circular_imports.py::test_circular_imports[zeroconf._logger] PASSED [ 40%] tests/test_circular_imports.py::test_circular_imports[zeroconf._transport] PASSED [ 41%] tests/test_circular_imports.py::test_circular_imports[zeroconf._record_update] PASSED [ 41%] tests/test_circular_imports.py::test_circular_imports[zeroconf._services.browser] PASSED [ 41%] tests/test_circular_imports.py::test_circular_imports[zeroconf._services.info] PASSED [ 42%] tests/test_core.py::Framework::test_async_updates_from_response FAILED [ 42%] tests/test_core.py::Framework::test_close_multiple_times FAILED [ 42%] tests/test_core.py::Framework::test_launch_and_close FAILED [ 43%] tests/test_core.py::Framework::test_launch_and_close_apple_p2p_not_mac PASSED [ 43%] tests/test_core.py::Framework::test_launch_and_close_apple_p2p_on_mac SKIPPED [ 43%] tests/test_core.py::Framework::test_launch_and_close_context_manager FAILED [ 44%] tests/test_core.py::Framework::test_launch_and_close_unicast FAILED [ 44%] tests/test_core.py::test_generate_service_query_set_qu_bit FAILED [ 44%] tests/test_core.py::test_invalid_packets_ignored_and_does_not_cause_loop_exception FAILED [ 45%] tests/test_core.py::test_goodbye_all_services FAILED [ 45%] tests/test_core.py::test_register_service_with_custom_ttl FAILED [ 45%] tests/test_core.py::test_logging_packets FAILED [ 46%] tests/test_core.py::test_get_service_info_failure_path FAILED [ 46%] tests/test_core.py::test_tc_bit_defers FAILED [ 46%] tests/test_core.py::test_tc_bit_defers_last_response_missing FAILED [ 46%] tests/test_core.py::test_open_close_twice_from_async FAILED [ 47%] tests/test_core.py::test_multiple_sync_instances_stared_from_async_close FAILED [ 47%] tests/test_core.py::test_shutdown_while_register_in_process FAILED [ 47%] tests/test_core.py::test_event_loop_blocked FAILED [ 48%] tests/test_dns.py::TestDunder::test_dns_address_repr SKIPPED (Requires IPv6) [ 48%] tests/test_dns.py::TestDunder::test_dns_hinfo_repr_eq PASSED [ 48%] tests/test_dns.py::TestDunder::test_dns_outgoing_repr PASSED [ 49%] tests/test_dns.py::TestDunder::test_dns_pointer_repr PASSED [ 49%] tests/test_dns.py::TestDunder::test_dns_question_repr PASSED [ 49%] tests/test_dns.py::TestDunder::test_dns_record_abc PASSED [ 50%] tests/test_dns.py::TestDunder::test_dns_record_is_expired PASSED [ 50%] tests/test_dns.py::TestDunder::test_dns_record_is_recent PASSED [ 50%] tests/test_dns.py::TestDunder::test_dns_record_is_stale PASSED [ 51%] tests/test_dns.py::TestDunder::test_dns_service_repr PASSED [ 51%] tests/test_dns.py::TestDunder::test_dns_text_repr PASSED [ 51%] tests/test_dns.py::TestDunder::test_service_info_dunder PASSED [ 52%] tests/test_dns.py::TestDunder::test_service_info_text_properties_not_given PASSED [ 52%] tests/test_dns.py::test_dns_question_hashablity PASSED [ 52%] tests/test_dns.py::test_dns_record_hashablity_does_not_consider_ttl PASSED [ 53%] tests/test_dns.py::test_dns_record_hashablity_does_not_consider_created PASSED [ 53%] tests/test_dns.py::test_dns_record_hashablity_does_not_consider_unique PASSED [ 53%] tests/test_dns.py::test_dns_address_record_hashablity PASSED [ 53%] tests/test_dns.py::test_dns_hinfo_record_hashablity PASSED [ 54%] tests/test_dns.py::test_dns_pointer_record_hashablity PASSED [ 54%] tests/test_dns.py::test_dns_pointer_comparison_is_case_insensitive PASSED [ 54%] tests/test_dns.py::test_dns_text_record_hashablity PASSED [ 55%] tests/test_dns.py::test_dns_service_record_hashablity PASSED [ 55%] tests/test_dns.py::test_dns_service_server_key PASSED [ 55%] tests/test_dns.py::test_dns_service_server_comparison_is_case_insensitive PASSED [ 56%] tests/test_dns.py::test_dns_nsec_record_hashablity PASSED [ 56%] tests/test_dns.py::test_rrset_does_not_consider_ttl PASSED [ 56%] tests/test_engine.py::test_reaper FAILED [ 57%] tests/test_engine.py::test_reaper_aborts_when_done FAILED [ 57%] tests/test_exceptions.py::Exceptions::test_bad_local_names_for_get_service_info ERROR [ 57%] tests/test_exceptions.py::Exceptions::test_bad_service_info_name ERROR [ 58%] tests/test_exceptions.py::Exceptions::test_bad_service_names ERROR [ 58%] tests/test_exceptions.py::Exceptions::test_bad_sub_types ERROR [ 58%] tests/test_exceptions.py::Exceptions::test_bad_types ERROR [ 59%] tests/test_exceptions.py::Exceptions::test_good_instance_names ERROR [ 59%] tests/test_exceptions.py::Exceptions::test_good_instance_names_without_protocol ERROR [ 59%] tests/test_exceptions.py::Exceptions::test_good_service_names ERROR [ 60%] tests/test_exceptions.py::Exceptions::test_invalid_addresses ERROR [ 60%] tests/test_handlers.py::TestRegistrar::test_name_conflicts FAILED [ 60%] tests/test_handlers.py::TestRegistrar::test_register_and_lookup_type_by_uppercase_name FAILED [ 61%] tests/test_handlers.py::TestRegistrar::test_ttl FAILED [ 61%] tests/test_handlers.py::test_any_query_for_ptr SKIPPED (Requires IPv6) [ 61%] tests/test_handlers.py::test_aaaa_query SKIPPED (Requires IPv6) [ 61%] tests/test_handlers.py::test_aaaa_query_upper_case SKIPPED (Requires IPv6) [ 62%] tests/test_handlers.py::test_a_and_aaaa_record_fate_sharing SKIPPED [ 62%] tests/test_handlers.py::test_unicast_response FAILED [ 62%] tests/test_handlers.py::test_probe_answered_immediately FAILED [ 63%] tests/test_handlers.py::test_probe_answered_immediately_with_uppercase_name FAILED [ 63%] tests/test_handlers.py::test_qu_response FAILED [ 63%] tests/test_handlers.py::test_known_answer_supression FAILED [ 64%] tests/test_handlers.py::test_multi_packet_known_answer_supression FAILED [ 64%] tests/test_handlers.py::test_known_answer_supression_service_type_enumeration_query FAILED [ 64%] tests/test_handlers.py::test_upper_case_enumeration_query FAILED [ 65%] tests/test_handlers.py::test_enumeration_query_with_no_registered_services FAILED [ 65%] tests/test_handlers.py::test_qu_response_only_sends_additionals_if_sends_answer FAILED [ 65%] tests/test_handlers.py::test_cache_flush_bit FAILED [ 66%] tests/test_handlers.py::test_record_update_manager_add_listener_callsback_existing_records FAILED [ 66%] tests/test_handlers.py::test_questions_query_handler_populates_the_question_history_from_qm_questions FAILED [ 66%] tests/test_handlers.py::test_questions_query_handler_does_not_put_qu_questions_in_history FAILED [ 67%] tests/test_handlers.py::test_guard_against_low_ptr_ttl FAILED [ 67%] tests/test_handlers.py::test_duplicate_goodbye_answers_in_packet FAILED [ 67%] tests/test_handlers.py::test_response_aggregation_timings FAILED [ 68%] tests/test_handlers.py::test_response_aggregation_timings_multiple FAILED [ 68%] tests/test_handlers.py::test_response_aggregation_random_delay PASSED [ 68%] tests/test_handlers.py::test_future_answers_are_removed_on_send PASSED [ 69%] tests/test_handlers.py::test_add_listener_warns_when_not_using_record_update_listener FAILED [ 69%] tests/test_handlers.py::test_async_updates_iteration_safe FAILED [ 69%] tests/test_handlers.py::test_async_updates_complete_iteration_safe FAILED [ 69%] tests/test_history.py::test_question_suppression PASSED [ 70%] tests/test_history.py::test_question_expire PASSED [ 70%] tests/test_init.py::Names::test_exceedingly_long_name PASSED [ 70%] tests/test_init.py::Names::test_exceedingly_long_name_part PASSED [ 71%] tests/test_init.py::Names::test_extra_exceedingly_long_name PASSED [ 71%] tests/test_init.py::Names::test_large_packet_exception_log_handling FAILED [ 71%] tests/test_init.py::Names::test_long_name PASSED [ 72%] tests/test_init.py::Names::test_same_name PASSED [ 72%] tests/test_init.py::Names::test_verify_name_change_with_lots_of_names FAILED [ 72%] tests/test_listener.py::test_guard_against_oversized_packets FAILED [ 73%] tests/test_listener.py::test_guard_against_duplicate_packets FAILED [ 73%] tests/test_logger.py::test_loading_logger PASSED [ 73%] tests/test_logger.py::test_log_warning_once PASSED [ 74%] tests/test_logger.py::test_log_exception_warning PASSED [ 74%] tests/test_logger.py::test_llog_exception_debug PASSED [ 74%] tests/test_logger.py::test_log_exception_once PASSED [ 75%] tests/test_protocol.py::PacketGeneration::test_adding_empty_answer PASSED [ 75%] tests/test_protocol.py::PacketGeneration::test_adding_expired_answer PASSED [ 75%] tests/test_protocol.py::PacketGeneration::test_dns_hinfo PASSED [ 76%] tests/test_protocol.py::PacketGeneration::test_many_questions PASSED [ 76%] tests/test_protocol.py::PacketGeneration::test_many_questions_with_many_known_answers PASSED [ 76%] tests/test_protocol.py::PacketGeneration::test_massive_probe_packet_split PASSED [ 76%] tests/test_protocol.py::PacketGeneration::test_match_question PASSED [ 77%] tests/test_protocol.py::PacketGeneration::test_only_one_answer_can_by_large PASSED [ 77%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_flags PASSED [ 77%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_nsec PASSED [ 78%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_question PASSED [ 78%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_response PASSED [ 78%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_simple PASSED [ 79%] tests/test_protocol.py::PacketGeneration::test_parse_own_packet_simple_unicast PASSED [ 79%] tests/test_protocol.py::PacketGeneration::test_questions_do_not_end_up_every_packet PASSED [ 79%] tests/test_protocol.py::PacketGeneration::test_suppress_answer PASSED [ 80%] tests/test_protocol.py::PacketForm::test_numbers PASSED [ 80%] tests/test_protocol.py::PacketForm::test_numbers_questions PASSED [ 80%] tests/test_protocol.py::PacketForm::test_query_header_bits PASSED [ 81%] tests/test_protocol.py::PacketForm::test_response_header_bits PASSED [ 81%] tests/test_protocol.py::PacketForm::test_setting_id PASSED [ 81%] tests/test_protocol.py::PacketForm::test_transaction_id PASSED [ 82%] tests/test_protocol.py::TestDnsIncoming::test_incoming_circular_reference PASSED [ 82%] tests/test_protocol.py::TestDnsIncoming::test_incoming_exception_handling PASSED [ 82%] tests/test_protocol.py::TestDnsIncoming::test_incoming_unknown_type PASSED [ 83%] tests/test_protocol.py::test_dns_compression_rollback_for_corruption PASSED [ 83%] tests/test_protocol.py::test_tc_bit_in_query_packet PASSED [ 83%] tests/test_protocol.py::test_tc_bit_not_set_in_answer_packet PASSED [ 84%] tests/test_protocol.py::test_qm_packet_parser PASSED [ 84%] tests/test_protocol.py::test_qu_packet_parser PASSED [ 84%] tests/test_protocol.py::test_parse_packet_with_nsec_record PASSED [ 84%] tests/test_protocol.py::test_records_same_packet_share_fate PASSED [ 85%] tests/test_protocol.py::test_dns_compression_invalid_skips_bad_name_compress_in_question PASSED [ 85%] tests/test_protocol.py::test_dns_compression_all_invalid PASSED [ 85%] tests/test_protocol.py::test_invalid_next_name_ignored PASSED [ 86%] tests/test_protocol.py::test_dns_compression_invalid_skips_record PASSED [ 86%] tests/test_protocol.py::test_dns_compression_points_forward PASSED [ 86%] tests/test_protocol.py::test_dns_compression_points_to_itself PASSED [ 87%] tests/test_protocol.py::test_dns_compression_points_beyond_packet PASSED [ 87%] tests/test_protocol.py::test_dns_compression_generic_failure PASSED [ 87%] tests/test_protocol.py::test_label_length_attack PASSED [ 88%] tests/test_protocol.py::test_label_compression_attack PASSED [ 88%] tests/test_protocol.py::test_dns_compression_loop_attack PASSED [ 88%] tests/test_protocol.py::test_txt_after_invalid_nsec_name_still_usable PASSED [ 89%] tests/test_protocol.py::test_parse_matter_packet PASSED [ 89%] tests/test_services.py::test_servicelisteners_raise_not_implemented FAILED [ 89%] tests/test_services.py::test_signal_registration_interface PASSED [ 90%] tests/test_updates.py::test_legacy_record_update_listener FAILED [ 90%] tests/test_updates.py::test_record_update_compat PASSED [ 90%] tests/utils/test_asyncio.py::test_async_get_all_tasks PASSED [ 91%] tests/utils/test_asyncio.py::test_get_running_loop_from_async PASSED [ 91%] tests/utils/test_asyncio.py::test_get_running_loop_no_loop PASSED [ 91%] tests/utils/test_asyncio.py::test_wait_future_or_timeout_times_out PASSED [ 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 PASSED [ 92%] tests/utils/test_ipaddress.py::test_cached_ip_addresses_wrapper PASSED [ 93%] tests/utils/test_ipaddress.py::test_get_ip_address_object_from_record PASSED [ 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 [ 94%] tests/utils/test_name.py::test_service_type_name_non_strict_compliant_names[CustomerInformationService-F4D4885E9EEB-_ibisip_http._tcp.local.] PASSED [ 94%] tests/utils/test_name.py::test_service_type_name_non_strict_compliant_names[DeviceManagementService_F4D4885E9EEB-_ibisip_http._tcp.local.] PASSED [ 94%] tests/utils/test_name.py::test_possible_types PASSED [ 95%] tests/utils/test_net.py::test_ip6_to_address_and_index PASSED [ 95%] tests/utils/test_net.py::test_interface_index_to_ip6_address PASSED [ 95%] tests/utils/test_net.py::test_ip6_addresses_to_indexes PASSED [ 96%] tests/utils/test_net.py::test_normalize_interface_choice_errors PASSED [ 96%] 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 [ 97%] tests/utils/test_net.py::test_add_multicast_member_socket_errors[22-False] PASSED [ 97%] 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 [ 98%] 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 [ 99%] 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log setup ------------------------------ DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 20) to multicast group ___________ 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: 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:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError =================================== FAILURES =================================== _____________________________ test_sending_packets _____________________________ benchmark = @pytest.mark.asyncio async def test_sending_packets(benchmark: BenchmarkFixture) -> None: """Benchmark sending packets.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/benchmarks/test_send.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError __________________ 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:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group _________________ test_service_browser_cancel_context_manager __________________ def test_service_browser_cancel_context_manager(): """Test we can cancel a ServiceBrowser with it being used as a context manager.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 16) to multicast group ____________ 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:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 17) to multicast group ______________ 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:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group ____________________ 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:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group ____________________ 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_record_update_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:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ______________ 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_record_update_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:420: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 16) to multicast group ____________________________ 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:526: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 17) to multicast group ________ test_asking_default_is_asking_qm_questions_after_the_first_qu _________ @pytest.mark.asyncio async def test_asking_default_is_asking_qm_questions_after_the_first_qu(): """Verify the service browser's first questions are QU and refresh queries are QM.""" service_added = asyncio.Event() service_removed = asyncio.Event() unexpected_ttl = asyncio.Event() got_query = asyncio.Event() type_ = "_http._tcp.local." registration_name = f"xxxyyy.{type_}" def on_service_state_change(zeroconf, service_type, state_change, name): if name == registration_name: if state_change is ServiceStateChange.Added: service_added.set() elif state_change is ServiceStateChange.Removed: service_removed.set() > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:577: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ___________________ test_ttl_refresh_cancelled_rescue_query ____________________ @pytest.mark.asyncio async def test_ttl_refresh_cancelled_rescue_query(): """Verify seeing a name again cancels the rescue query.""" service_added = asyncio.Event() service_removed = asyncio.Event() unexpected_ttl = asyncio.Event() got_query = asyncio.Event() type_ = "_http._tcp.local." registration_name = f"xxxyyy.{type_}" def on_service_state_change(zeroconf, service_type, state_change, name): if name == registration_name: if state_change is ServiceStateChange.Added: service_added.set() elif state_change is ServiceStateChange.Removed: service_removed.set() > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:679: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group ___________________________ test_asking_qm_questions ___________________________ @pytest.mark.asyncio async def test_asking_qm_questions(): """Verify explicitly asking QM questions.""" type_ = "_quservice._tcp.local." > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:775: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 13) to multicast group ___________________________ test_asking_qu_questions ___________________________ @pytest.mark.asyncio async def test_asking_qu_questions(): """Verify the service browser can ask QU questions.""" type_ = "_quservice._tcp.local." > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:814: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group ______________________ 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:854: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ________________ 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:916: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 16) to multicast group ________________ 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:980: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 19) to multicast group _______________ 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:1045: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 20) to multicast group __________________ test_service_browser_uses_non_strict_names __________________ def test_service_browser_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:1107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ___________ test_generate_service_query_suppress_duplicate_questions ___________ @pytest.mark.asyncio async def test_generate_service_query_suppress_duplicate_questions(): """Generate a service query for sending with zeroconf.send.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:1145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group _____________________________ test_query_scheduler _____________________________ @pytest.mark.asyncio async def test_query_scheduler(): delay = const._BROWSER_TIME types_ = {"_hap._tcp.local.", "_http._tcp.local."} > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:1199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group _____________________ test_query_scheduler_rescue_records ______________________ @pytest.mark.asyncio async def test_query_scheduler_rescue_records(): delay = const._BROWSER_TIME types_ = {"_hap._tcp.local.", "_http._tcp.local."} > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:1292: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 13) to multicast group ________________________ 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:1367: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 21) to multicast group ____________________ test_service_browser_expire_callbacks _____________________ @patch.object(_engine, "_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:1460: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group _________ test_close_zeroconf_without_browser_before_start_up_queries __________ @pytest.mark.asyncio async def test_close_zeroconf_without_browser_before_start_up_queries(): """Test that we stop sending startup queries if zeroconf is closed out from under the browser.""" service_added = asyncio.Event() type_ = "_http._tcp.local." registration_name = f"xxxyyy.{type_}" def on_service_state_change(zeroconf, service_type, state_change, name): if name == registration_name: if state_change is ServiceStateChange.Added: service_added.set() > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:1595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group __________ test_close_zeroconf_without_browser_after_start_up_queries __________ @pytest.mark.asyncio async def test_close_zeroconf_without_browser_after_start_up_queries(): """Test that we stop sending rescue queries if zeroconf is closed out from under the browser.""" service_added = asyncio.Event() type_ = "_http._tcp.local." registration_name = f"xxxyyy.{type_}" def on_service_state_change(zeroconf, service_type, state_change, name): if name == registration_name: if state_change is ServiceStateChange.Added: service_added.set() > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:1664: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group _____________________ 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:527: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 22) to multicast group ______ 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:629: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group __________ 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:203: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ________ 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:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group _______________________ test_scoped_addresses_from_cache _______________________ def test_scoped_addresses_from_cache(): type_ = "_http._tcp.local." registration_name = f"scoped.{type_}" > zeroconf = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:788: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ________________ test_multiple_a_addresses_newest_address_first ________________ @pytest.mark.asyncio async def test_multiple_a_addresses_newest_address_first(): """Test that info.addresses returns the newest seen address first.""" type_ = "_http._tcp.local." registration_name = f"multiarec.{type_}" desc = {"path": "/~paulsm/"} > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:837: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 13) to multicast group ___________________________ test_invalid_a_addresses ___________________________ caplog = <_pytest.logging.LogCaptureFixture object at 0xffffa3caacf0> @pytest.mark.asyncio async def test_invalid_a_addresses(caplog): type_ = "_http._tcp.local." registration_name = f"multiarec.{type_}" desc = {"path": "/~paulsm/"} > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:856: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ___________________________ test_asking_qu_questions ___________________________ def test_asking_qu_questions(): """Verify explicitly asking QU questions.""" type_ = "_quservice._tcp.local." > zeroconf = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1003: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 17) to multicast group ___________________________ test_asking_qm_questions ___________________________ def test_asking_qm_questions(): """Verify explicitly asking QM questions.""" type_ = "_quservice._tcp.local." > zeroconf = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1027: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group _____________________________ 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:1050: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 19) to multicast group ___________________ test_we_try_four_times_with_random_delay ___________________ @pytest.mark.asyncio async def test_we_try_four_times_with_random_delay(): """Verify we try four times even with the random delay.""" type_ = "_typethatisnothere._tcp.local." > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1064: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group __________________ test_release_wait_when_new_recorded_added ___________________ @pytest.mark.asyncio async def test_release_wait_when_new_recorded_added(): """Test that async_request returns as soon as new matching records are added to the cache.""" type_ = "_http._tcp.local." registration_name = f"multiarec.{type_}" desc = {"path": "/~paulsm/"} > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group __________________________ test_port_changes_are_seen __________________________ @pytest.mark.asyncio async def test_port_changes_are_seen(): """Test that port changes are seen by async_request.""" type_ = "_http._tcp.local." registration_name = f"multiarec.{type_}" desc = {"path": "/~paulsm/"} > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group _______________ test_port_changes_are_seen_with_directed_request _______________ @pytest.mark.asyncio async def test_port_changes_are_seen_with_directed_request(): """Test that port changes are seen by async_request with a directed request.""" type_ = "_http._tcp.local." registration_name = f"multiarec.{type_}" desc = {"path": "/~paulsm/"} > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 16) to multicast group __________________________ test_ipv4_changes_are_seen __________________________ @pytest.mark.asyncio async def test_ipv4_changes_are_seen(): """Test that ipv4 changes are seen by async_request.""" type_ = "_http._tcp.local." registration_name = f"multiaipv4rec.{type_}" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1319: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ____________________ test_bad_ip_addresses_ignored_in_cache ____________________ @pytest.mark.asyncio async def test_bad_ip_addresses_ignored_in_cache(): """Test that bad ip address in the cache are ignored async_request.""" type_ = "_http._tcp.local." registration_name = f"multiarec.{type_}" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1502: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group _______________ test_service_name_change_as_seen_has_ip_in_cache _______________ @pytest.mark.asyncio async def test_service_name_change_as_seen_has_ip_in_cache(): """Test that service name changes are seen by async_request when the ip is in the cache.""" type_ = "_http._tcp.local." registration_name = f"multiarec.{type_}" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1556: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group _______________ test_service_name_change_as_seen_ip_not_in_cache _______________ @pytest.mark.asyncio async def test_service_name_change_as_seen_ip_not_in_cache(): """Test that service name changes are seen by async_request when the ip is not in the cache.""" type_ = "_http._tcp.local." registration_name = f"multiarec.{type_}" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1638: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 17) to multicast group ____________ test_release_wait_when_new_recorded_added_concurrency _____________ @pytest.mark.asyncio @patch.object(info, "_LISTENER_TIME", 10000000) async def test_release_wait_when_new_recorded_added_concurrency(): """Test that concurrent async_request returns as soon as new matching records are added to the cache.""" type_ = "_http._tcp.local." registration_name = f"multiareccon.{type_}" desc = {"path": "/~paulsm/"} > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1722: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ____________________________ test_address_resolver _____________________________ @pytest.mark.asyncio async def test_address_resolver(): """Test that the address resolver works.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1805: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group __________________________ test_address_resolver_ipv4 __________________________ @pytest.mark.asyncio async def test_address_resolver_ipv4(): """Test that the IPv4 address resolver works.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1829: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ____________________________ test_async_basic_usage ____________________________ @pytest.mark.asyncio async def test_async_basic_usage() -> None: """Test we can create and close the instance.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group ____________________________ test_async_close_twice ____________________________ @pytest.mark.asyncio async def test_async_close_twice() -> None: """Test we can close twice.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ________________________ test_async_with_sync_passed_in ________________________ @pytest.mark.asyncio async def test_async_with_sync_passed_in() -> None: """Test we can create and close the instance when passing in a sync Zeroconf.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group ________________ test_async_with_sync_passed_in_closed_in_async ________________ @pytest.mark.asyncio async def test_async_with_sync_passed_in_closed_in_async() -> None: """Test caller closes the sync version in async.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group _____________________ test_sync_within_event_loop_executor _____________________ @pytest.mark.asyncio async def test_sync_within_event_loop_executor() -> None: """Test sync version still works from an executor within an event loop.""" def sync_code(): zc = Zeroconf(interfaces=["127.0.0.1"]) assert zc.get_service_info("_neverused._tcp.local.", "xneverused._neverused._tcp.local.", 10) is None zc.close() > await asyncio.get_event_loop().run_in_executor(None, sync_code) tests/test_asyncio.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.13/concurrent/futures/thread.py:59: in run result = self.fn(*self.args, **self.kwargs) tests/test_asyncio.py:121: in sync_code zc = Zeroconf(interfaces=["127.0.0.1"]) src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 20) to multicast group _______________________ test_async_service_registration ________________________ @pytest.mark.asyncio async def test_async_service_registration() -> None: """Test registering services broadcasts the registration by default.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:131: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group _____________ test_async_service_registration_with_server_missing ______________ @pytest.mark.asyncio async def test_async_service_registration_with_server_missing() -> None: """Test registering a service with the server not specified. For backwards compatibility, the server should be set to the name that was passed in. """ > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:202: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group _________ test_async_service_registration_same_server_different_ports __________ @pytest.mark.asyncio async def test_async_service_registration_same_server_different_ports() -> None: """Test registering services with the same server with different srv records.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ____________ test_async_service_registration_same_server_same_ports ____________ @pytest.mark.asyncio async def test_async_service_registration_same_server_same_ports() -> None: """Test registering services with the same server with the exact same srv record.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:332: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 21) to multicast group ________________ test_async_service_registration_name_conflict _________________ @pytest.mark.asyncio async def test_async_service_registration_name_conflict() -> None: """Test registering services throws on name conflict.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ___________ test_async_service_registration_name_does_not_match_type ___________ @pytest.mark.asyncio async def test_async_service_registration_name_does_not_match_type() -> None: """Test registering services throws when the name does not match the type.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:447: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group ______________ test_async_service_registration_name_strict_check _______________ @pytest.mark.asyncio async def test_async_service_registration_name_strict_check() -> None: """Test registering services throws when the name does not comply.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:473: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group _______________________________ test_async_tasks _______________________________ @pytest.mark.asyncio async def test_async_tasks() -> None: """Test awaiting broadcast tasks""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:509: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 22) to multicast group ______________________ test_async_wait_unblocks_on_update ______________________ @pytest.mark.asyncio async def test_async_wait_unblocks_on_update() -> None: """Test async_wait will unblock on update.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:575: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group __________________________ test_async_service_browser __________________________ @pytest.mark.asyncio async def test_async_service_browser() -> None: """Test AsyncServiceBrowser.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:719: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group __________________________ test_async_context_manager __________________________ @pytest.mark.asyncio async def test_async_context_manager() -> None: """Test using an async context manager.""" type_ = "_test10-sr-type._tcp.local." name = "xxxyyy" registration_name = f"{name}.{type_}" > async with AsyncZeroconf(interfaces=["127.0.0.1"]) as aiozc: tests/test_asyncio.py:783: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ______________ test_service_browser_cancel_async_context_manager _______________ @pytest.mark.asyncio async def test_service_browser_cancel_async_context_manager(): """Test we can cancel an AsyncServiceBrowser with it being used as an async context manager.""" # instantiate a zeroconf instance > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:805: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 23) to multicast group ______________________ test_async_unregister_all_services ______________________ @pytest.mark.asyncio async def test_async_unregister_all_services() -> None: """Test unregistering all services.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:829: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ______________________ test_async_zeroconf_service_types _______________________ @pytest.mark.asyncio async def test_async_zeroconf_service_types(): type_ = "_test-srvc-type._tcp.local." name = "xxxyyy" registration_name = f"{name}.{type_}" > zeroconf_registrar = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:891: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group __________ test_guard_against_running_serviceinfo_request_event_loop ___________ @pytest.mark.asyncio async def test_guard_against_running_serviceinfo_request_event_loop() -> None: """Test that running ServiceInfo.request from the event loop throws.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:922: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ______ test_service_browser_instantiation_generates_add_events_from_cache ______ @pytest.mark.asyncio async def test_service_browser_instantiation_generates_add_events_from_cache(): """Test that the ServiceBrowser will generate Add events with the existing cache when starting.""" # instantiate a zeroconf instance > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:935: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 24) to multicast group ______ test_info_asking_default_is_asking_qm_questions_after_the_first_qu ______ @pytest.mark.asyncio async def test_info_asking_default_is_asking_qm_questions_after_the_first_qu(): """Verify the service info first question is QU and subsequent ones are QM questions.""" type_ = "_quservice._tcp.local." > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:1131: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ________________ test_service_browser_ignores_unrelated_updates ________________ @pytest.mark.asyncio async def test_service_browser_ignores_unrelated_updates(): """Test that the ServiceBrowser ignores unrelated updates.""" # instantiate a zeroconf instance > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:1186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group __________________________ test_async_request_timeout __________________________ @pytest.mark.asyncio async def test_async_request_timeout(): """Test that the timeout does not throw an exception and finishes close to the actual timeout.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:1281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ___________________ test_async_request_non_running_instance ____________________ @pytest.mark.asyncio async def test_async_request_non_running_instance(): """Test that the async_request throws when zeroconf is not running.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:1295: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 25) to multicast group _________________________ test_legacy_unicast_response _________________________ run_isolated = None @pytest.mark.asyncio async def test_legacy_unicast_response(run_isolated): """Verify legacy unicast responses include questions and correct id.""" type_ = "_mservice._tcp.local." > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:1305: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group _______________________ test_update_with_uppercase_names _______________________ run_isolated = None @pytest.mark.asyncio async def test_update_with_uppercase_names(run_isolated): """Test an ip update from a shelly which uses uppercase names.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_asyncio.py:1345: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group __________________ Framework.test_async_updates_from_response __________________ self = def test_async_updates_from_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:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 16) to multicast group _____________________ Framework.test_close_multiple_times ______________________ self = def test_close_multiple_times(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.Default) tests/test_core.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:392: in create_sockets add_multicast_member(cast(socket.socket, listen_socket), i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '0.0.0.0' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '0.0.0.0' (socket 17) to multicast group _______________________ Framework.test_launch_and_close ________________________ self = def test_launch_and_close(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.All) tests/test_core.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:386: in create_sockets normalized_interfaces = normalize_interface_choice(interfaces, ip_version) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ choice = , ip_version = def normalize_interface_choice( choice: InterfacesType, ip_version: IPVersion = IPVersion.V4Only ) -> list[str | tuple[tuple[str, int, int], int]]: """Convert the interfaces choice into internal representation. :param choice: `InterfaceChoice` or list of interface addresses or indexes (IPv6 only). :param ip_address: IP version to use (ignored if `choice` is a list). :returns: List of IP addresses (for IPv4) and indexes (for IPv6). """ result: list[str | tuple[tuple[str, int, int], int]] = [] if choice is InterfaceChoice.Default: if ip_version != IPVersion.V4Only: # IPv6 multicast uses interface 0 to mean the default result.append((("", 0, 0), 0)) if ip_version != IPVersion.V6Only: result.append("0.0.0.0") elif choice is InterfaceChoice.All: if ip_version != IPVersion.V4Only: result.extend(get_all_addresses_v6()) if ip_version != IPVersion.V6Only: result.extend(get_all_addresses()) if not result: > raise RuntimeError( f"No interfaces to listen on, check that any interfaces have IP version {ip_version}" E RuntimeError: No interfaces to listen on, check that any interfaces have IP version IPVersion.V4Only src/zeroconf/_utils/net.py:159: RuntimeError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket _______________ 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:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:386: in create_sockets normalized_interfaces = normalize_interface_choice(interfaces, ip_version) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ choice = , ip_version = def normalize_interface_choice( choice: InterfacesType, ip_version: IPVersion = IPVersion.V4Only ) -> list[str | tuple[tuple[str, int, int], int]]: """Convert the interfaces choice into internal representation. :param choice: `InterfaceChoice` or list of interface addresses or indexes (IPv6 only). :param ip_address: IP version to use (ignored if `choice` is a list). :returns: List of IP addresses (for IPv4) and indexes (for IPv6). """ result: list[str | tuple[tuple[str, int, int], int]] = [] if choice is InterfaceChoice.Default: if ip_version != IPVersion.V4Only: # IPv6 multicast uses interface 0 to mean the default result.append((("", 0, 0), 0)) if ip_version != IPVersion.V6Only: result.append("0.0.0.0") elif choice is InterfaceChoice.All: if ip_version != IPVersion.V4Only: result.extend(get_all_addresses_v6()) if ip_version != IPVersion.V6Only: result.extend(get_all_addresses()) if not result: > raise RuntimeError( f"No interfaces to listen on, check that any interfaces have IP version {ip_version}" E RuntimeError: No interfaces to listen on, check that any interfaces have IP version IPVersion.V4Only src/zeroconf/_utils/net.py:159: RuntimeError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket ___________________ Framework.test_launch_and_close_unicast ____________________ self = def test_launch_and_close_unicast(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.All, unicast=True) tests/test_core.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:386: in create_sockets normalized_interfaces = normalize_interface_choice(interfaces, ip_version) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ choice = , ip_version = def normalize_interface_choice( choice: InterfacesType, ip_version: IPVersion = IPVersion.V4Only ) -> list[str | tuple[tuple[str, int, int], int]]: """Convert the interfaces choice into internal representation. :param choice: `InterfaceChoice` or list of interface addresses or indexes (IPv6 only). :param ip_address: IP version to use (ignored if `choice` is a list). :returns: List of IP addresses (for IPv4) and indexes (for IPv6). """ result: list[str | tuple[tuple[str, int, int], int]] = [] if choice is InterfaceChoice.Default: if ip_version != IPVersion.V4Only: # IPv6 multicast uses interface 0 to mean the default result.append((("", 0, 0), 0)) if ip_version != IPVersion.V6Only: result.append("0.0.0.0") elif choice is InterfaceChoice.All: if ip_version != IPVersion.V4Only: result.extend(get_all_addresses_v6()) if ip_version != IPVersion.V6Only: result.extend(get_all_addresses()) if not result: > raise RuntimeError( f"No interfaces to listen on, check that any interfaces have IP version {ip_version}" E RuntimeError: No interfaces to listen on, check that any interfaces have IP version IPVersion.V4Only src/zeroconf/_utils/net.py:159: RuntimeError ____________________ 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:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 16) to multicast group ________ 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:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group __________________________ 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:319: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ____________________ 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:357: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group _____________________________ test_logging_packets _____________________________ caplog = <_pytest.logging.LogCaptureFixture object at 0xffffa3fa7b10> 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:384: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 19) to multicast group ______________________ 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:418: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group ______________________________ test_tc_bit_defers ______________________________ def test_tc_bit_defers(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:457: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ___________________ 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:557: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group _______________________ test_open_close_twice_from_async _______________________ @pytest.mark.asyncio async def test_open_close_twice_from_async() -> None: """Test we can close twice from a coroutine when using Zeroconf. Ideally callers switch to using AsyncZeroconf, however there will be a period where they still call the sync wrapper that we want to ensure will not deadlock on shutdown. This test is expected to throw warnings about tasks being destroyed since we force shutdown right away since we don't want to block callers event loops and since they aren't using the AsyncZeroconf version they won't yield with an await like async_close we don't have much choice but to force things down. """ > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:682: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 13) to multicast group _____________ test_multiple_sync_instances_stared_from_async_close _____________ @pytest.mark.asyncio async def test_multiple_sync_instances_stared_from_async_close(): """Test we can shutdown multiple sync instances from async.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:693: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group ___________________ 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:717: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group ___________________________ test_event_loop_blocked ____________________________ mock_start = @pytest.mark.asyncio @patch("zeroconf._core._STARTUP_TIMEOUT", 0) @patch("zeroconf._core.AsyncEngine._async_setup", new_callable=AsyncMock) async def test_event_loop_blocked(mock_start): """Test we raise NotRunningException when waiting for startup that times out.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:749: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group _________________________________ test_reaper __________________________________ @pytest.mark.asyncio async def test_reaper(): with patch.object(_engine, "_CACHE_CLEANUP_INTERVAL", 0.01): > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_engine.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group _________________________ test_reaper_aborts_when_done _________________________ @pytest.mark.asyncio async def test_reaper_aborts_when_done(): """Ensure cache cleanup stops when zeroconf is done.""" with patch.object(_engine, "_CACHE_CLEANUP_INTERVAL", 0.01): > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_engine.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group ______________________ 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:166: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 21) to multicast group ________ 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:195: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 22) to multicast group ____________________________ TestRegistrar.test_ttl ____________________________ self = def test_ttl(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 23) to multicast group ____________________________ 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:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 24) to multicast group _______________________ test_probe_answered_immediately ________________________ @pytest.mark.asyncio async def test_probe_answered_immediately(): """Verify probes are responded to immediately.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:501: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group _____________ test_probe_answered_immediately_with_uppercase_name ______________ @pytest.mark.asyncio async def test_probe_answered_immediately_with_uppercase_name(): """Verify probes are responded to immediately with an uppercase name.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:552: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group _______________________________ 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:602: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 24) to multicast group _________________________ test_known_answer_supression _________________________ def test_known_answer_supression(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:726: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 26) to multicast group __________________ test_multi_packet_known_answer_supression ___________________ def test_multi_packet_known_answer_supression(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:865: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 27) to multicast group _________ 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:941: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ______________________ test_upper_case_enumeration_query _______________________ def test_upper_case_enumeration_query(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1028: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 24) to multicast group ______________ test_enumeration_query_with_no_registered_services ______________ def test_enumeration_query_with_no_registered_services(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1082: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 26) to multicast group ___________ test_qu_response_only_sends_additionals_if_sends_answer ____________ @pytest.mark.asyncio async def test_qu_response_only_sends_additionals_if_sends_answer(): """Test that a QU response does not send additionals unless it sends the answer as well.""" # instantiate a zeroconf instance > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group _____________________________ test_cache_flush_bit _____________________________ @pytest.mark.asyncio async def test_cache_flush_bit(): """Test that the cache flush bit sets the TTL to one for matching records.""" # instantiate a zeroconf instance > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1266: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 15) to multicast group ______ test_record_update_manager_add_listener_callsback_existing_records ______ @pytest.mark.asyncio async def test_record_update_manager_add_listener_callsback_existing_records(): """Test that the RecordUpdateManager will callback existing records.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 22) to multicast group _ test_questions_query_handler_populates_the_question_history_from_qm_questions _ @pytest.mark.asyncio async def test_questions_query_handler_populates_the_question_history_from_qm_questions(): > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1421: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 23) to multicast group ______ test_questions_query_handler_does_not_put_qu_questions_in_history _______ @pytest.mark.asyncio async def test_questions_query_handler_does_not_put_qu_questions_in_history(): > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1467: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 24) to multicast group ________________________ test_guard_against_low_ptr_ttl ________________________ @pytest.mark.asyncio async def test_guard_against_low_ptr_ttl(): """Ensure we enforce a min for PTR record ttls to avoid excessive refresh queries from ServiceBrowsers. Some poorly designed IoT devices can set excessively low PTR TTLs would will cause ServiceBrowsers to flood the network with excessive refresh queries. """ > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group ___________________ test_duplicate_goodbye_answers_in_packet ___________________ @pytest.mark.asyncio async def test_duplicate_goodbye_answers_in_packet(): """Ensure we do not throw an exception when there are duplicate goodbye records in a packet.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1562: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group ______________________ test_response_aggregation_timings _______________________ run_isolated = None @pytest.mark.asyncio async def test_response_aggregation_timings(run_isolated): """Verify multicast responses are aggregated.""" type_ = "_mservice._tcp.local." type_2 = "_mservice2._tcp.local." type_3 = "_mservice3._tcp.local." > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1598: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 13) to multicast group __________________ test_response_aggregation_timings_multiple __________________ run_isolated = None, disable_duplicate_packet_suppression = None @pytest.mark.asyncio async def test_response_aggregation_timings_multiple(run_isolated, disable_duplicate_packet_suppression): """Verify multicast responses that are aggregated do not take longer than 620ms to send. 620ms is the maximum random delay of 120ms and 500ms additional for aggregation.""" type_2 = "_mservice2._tcp.local." > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1720: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 14) to multicast group ________ test_add_listener_warns_when_not_using_record_update_listener _________ caplog = <_pytest.logging.LogCaptureFixture object at 0xffffa3fa7b10> @pytest.mark.asyncio async def test_add_listener_warns_when_not_using_record_update_listener(caplog): """Log when a listener is added that is not using RecordUpdateListener as a base class.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1971: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group ______________________ test_async_updates_iteration_safe _______________________ @pytest.mark.asyncio async def test_async_updates_iteration_safe(): """Ensure we can safely iterate over the async_updates.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1996: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group __________________ test_async_updates_complete_iteration_safe __________________ @pytest.mark.asyncio async def test_async_updates_complete_iteration_safe(): """Ensure we can safely iterate over the async_updates_complete.""" > aiozc = AsyncZeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:2040: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/asyncio.py:171: in __init__ self.zeroconf = zc or Zeroconf( src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 13) to multicast group ________________ 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:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group _______________ 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:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 19) to multicast group _____________________ 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_listener.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 11) to multicast group _____________________ 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_listener.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 12) to multicast group _________________ 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:232: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 13) to multicast group ______________________ 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:181: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:399: in create_sockets if add_multicast_member(cast(socket.socket, listen_socket), i): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ listen_socket = interface = '127.0.0.1' def add_multicast_member( listen_socket: socket.socket, interface: str | tuple[tuple[str, int, int], int], ) -> bool: # This is based on assumptions in normalize_interface_choice is_v6 = isinstance(interface, tuple) err_einval = {errno.EINVAL} if sys.platform == "win32": # No WSAEINVAL definition in typeshed err_einval |= {cast(Any, errno).WSAEINVAL} # pylint: disable=no-member log.debug("Adding %r (socket %d) to multicast group", interface, listen_socket.fileno()) try: if is_v6: try: mdns_addr6_bytes = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) except OSError: log.info( "Unable to translate IPv6 address when adding %s to multicast group, " "this can happen if IPv6 is disabled on the system", interface, ) return False iface_bin = struct.pack("@I", cast(int, interface[1])) _value = mdns_addr6_bytes + iface_bin listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) else: _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface)) > listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value) E OSError: [Errno 19] No such device src/zeroconf/_utils/net.py:296: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:230 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:265 Created socket DEBUG zeroconf:net.py:279 Adding '127.0.0.1' (socket 18) to multicast group =============================== warnings summary =============================== tests/services/test_browser.py::test_group_ptr_queries_with_known_answers /home/iurt/rpmbuild/BUILD/python-zeroconf-0.144.1-build/zeroconf-0.144.1/src/zeroconf/_services/browser.py:199: ResourceWarning: unclosed self.out.add_answer_at_time(answer, self.now_millis) 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_so_reuseport_if_available_is_present /usr/lib64/python3.13/unittest/mock.py:2247: 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. tests/utils/test_net.py::test_set_so_reuseport_if_available_is_present /usr/lib64/python3.13/unittest/mock.py:2247: 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. tests/utils/test_net.py::test_set_so_reuseport_if_available_is_present /usr/lib64/python3.13/unittest/mock.py:2247: 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. tests/utils/test_net.py::test_set_so_reuseport_if_available_is_present /usr/lib64/python3.13/unittest/mock.py:2247: 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. tests/utils/test_net.py::test_set_so_reuseport_if_available_is_present /usr/lib64/python3.13/asyncio/base_events.py:764: 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_bind_raises_skips_address /usr/lib64/python3.13/unittest/mock.py:2247: 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. tests/utils/test_net.py::test_bind_raises_skips_address /usr/lib64/python3.13/unittest/mock.py:2247: 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. tests/utils/test_net.py::test_bind_raises_skips_address /usr/lib64/python3.13/unittest/mock.py:2247: 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 =========================== short test summary info ============================ FAILED tests/benchmarks/test_send.py::test_sending_packets - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_cancel_multiple_times - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_cancel_context_manager - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_cancel_multiple_times_after_close - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_started_after_zeroconf_closed - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_multiple_instances_running_close - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::TestServiceBrowser::test_update_record - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::TestServiceBrowserMultipleTypes::test_update_record - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_first_query_delay - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_asking_default_is_asking_qm_questions_after_the_first_qu - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_ttl_refresh_cancelled_rescue_query - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_asking_qm_questions - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_asking_qu_questions - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_legacy_record_update_listener - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_is_aware_of_port_changes - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_listeners_update_service - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_listeners_no_update_service - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_uses_non_strict_names - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_generate_service_query_suppress_duplicate_questions - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_query_scheduler - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_query_scheduler_rescue_records - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_matching - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_service_browser_expire_callbacks - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_close_zeroconf_without_browser_before_start_up_queries - OSError: [Errno 19] No such device FAILED tests/services/test_browser.py::test_close_zeroconf_without_browser_after_start_up_queries - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::TestServiceInfo::test_get_info_single - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_duplicate_properties_txt_records - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_expired_records - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_non_matching_updates - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_scoped_addresses_from_cache - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_multiple_a_addresses_newest_address_first - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_invalid_a_addresses - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_asking_qu_questions - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_asking_qm_questions - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_request_timeout - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_we_try_four_times_with_random_delay - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_release_wait_when_new_recorded_added - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_port_changes_are_seen - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_port_changes_are_seen_with_directed_request - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_ipv4_changes_are_seen - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_bad_ip_addresses_ignored_in_cache - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_service_name_change_as_seen_has_ip_in_cache - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_service_name_change_as_seen_ip_not_in_cache - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_release_wait_when_new_recorded_added_concurrency - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_address_resolver - OSError: [Errno 19] No such device FAILED tests/services/test_info.py::test_address_resolver_ipv4 - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_basic_usage - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_close_twice - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_with_sync_passed_in - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_with_sync_passed_in_closed_in_async - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_sync_within_event_loop_executor - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_service_registration - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_service_registration_with_server_missing - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_service_registration_same_server_different_ports - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_service_registration_same_server_same_ports - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_service_registration_name_conflict - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_service_registration_name_does_not_match_type - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_service_registration_name_strict_check - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_tasks - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_wait_unblocks_on_update - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_service_browser - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_context_manager - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_service_browser_cancel_async_context_manager - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_unregister_all_services - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_zeroconf_service_types - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_guard_against_running_serviceinfo_request_event_loop - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_service_browser_instantiation_generates_add_events_from_cache - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_info_asking_default_is_asking_qm_questions_after_the_first_qu - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_service_browser_ignores_unrelated_updates - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_request_timeout - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_async_request_non_running_instance - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_legacy_unicast_response - OSError: [Errno 19] No such device FAILED tests/test_asyncio.py::test_update_with_uppercase_names - OSError: [Errno 19] No such device FAILED tests/test_core.py::Framework::test_async_updates_from_response - OSError: [Errno 19] No such device FAILED tests/test_core.py::Framework::test_close_multiple_times - OSError: [Errno 19] No such device FAILED tests/test_core.py::Framework::test_launch_and_close - RuntimeError: No interfaces to listen on, check that any interfaces have IP version IPVersion.V4Only FAILED tests/test_core.py::Framework::test_launch_and_close_context_manager - RuntimeError: No interfaces to listen on, check that any interfaces have IP version IPVersion.V4Only FAILED tests/test_core.py::Framework::test_launch_and_close_unicast - RuntimeError: No interfaces to listen on, check that any interfaces have IP version IPVersion.V4Only FAILED tests/test_core.py::test_generate_service_query_set_qu_bit - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_invalid_packets_ignored_and_does_not_cause_loop_exception - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_goodbye_all_services - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_register_service_with_custom_ttl - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_logging_packets - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_get_service_info_failure_path - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_tc_bit_defers - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_tc_bit_defers_last_response_missing - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_open_close_twice_from_async - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_multiple_sync_instances_stared_from_async_close - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_shutdown_while_register_in_process - OSError: [Errno 19] No such device FAILED tests/test_core.py::test_event_loop_blocked - OSError: [Errno 19] No such device FAILED tests/test_engine.py::test_reaper - OSError: [Errno 19] No such device FAILED tests/test_engine.py::test_reaper_aborts_when_done - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::TestRegistrar::test_name_conflicts - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::TestRegistrar::test_register_and_lookup_type_by_uppercase_name - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::TestRegistrar::test_ttl - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_unicast_response - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_probe_answered_immediately - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_probe_answered_immediately_with_uppercase_name - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_qu_response - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_known_answer_supression - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_multi_packet_known_answer_supression - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_known_answer_supression_service_type_enumeration_query - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_upper_case_enumeration_query - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_enumeration_query_with_no_registered_services - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_qu_response_only_sends_additionals_if_sends_answer - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_cache_flush_bit - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_record_update_manager_add_listener_callsback_existing_records - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_questions_query_handler_populates_the_question_history_from_qm_questions - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_questions_query_handler_does_not_put_qu_questions_in_history - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_guard_against_low_ptr_ttl - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_duplicate_goodbye_answers_in_packet - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_response_aggregation_timings - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_response_aggregation_timings_multiple - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_add_listener_warns_when_not_using_record_update_listener - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_async_updates_iteration_safe - OSError: [Errno 19] No such device FAILED tests/test_handlers.py::test_async_updates_complete_iteration_safe - OSError: [Errno 19] No such device FAILED tests/test_init.py::Names::test_large_packet_exception_log_handling - OSError: [Errno 19] No such device FAILED tests/test_init.py::Names::test_verify_name_change_with_lots_of_names - OSError: [Errno 19] No such device FAILED tests/test_listener.py::test_guard_against_oversized_packets - OSError: [Errno 19] No such device FAILED tests/test_listener.py::test_guard_against_duplicate_packets - OSError: [Errno 19] No such device FAILED tests/test_services.py::test_servicelisteners_raise_not_implemented - OSError: [Errno 19] No such device FAILED tests/test_updates.py::test_legacy_record_update_listener - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_bad_local_names_for_get_service_info - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_bad_service_info_name - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_bad_service_names - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_bad_sub_types - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_bad_types - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_good_instance_names - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_good_instance_names_without_protocol - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_good_service_names - OSError: [Errno 19] No such device ERROR tests/test_exceptions.py::Exceptions::test_invalid_addresses - OSError: [Errno 19] No such device = 122 failed, 171 passed, 11 skipped, 14 deselected, 9 warnings, 9 errors in 12.00s = error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.v5QUm6 (%check) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.v5QUm6 (%check) I: [iurt_root_command] ERROR: chroot