==> Building on electivire ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ .SRCINFO 688 100% 0.00kB/s 0:00:00 688 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=3/5) .nvchecker.toml 89 100% 86.91kB/s 0:00:00 89 100% 86.91kB/s 0:00:00 (xfr#2, to-chk=2/5) PKGBUILD 1,107 100% 1.06MB/s 0:00:00 1,107 100% 1.06MB/s 0:00:00 (xfr#3, to-chk=1/5) python-zeroconf-0.141.0-2.log 567 100% 553.71kB/s 0:00:00 567 100% 553.71kB/s 0:00:00 (xfr#4, to-chk=0/5) sent 1,542 bytes received 125 bytes 476.29 bytes/sec total size is 2,081 speedup is 1.25 ==> Running pkgctl build --arch riscv64 --repo extra on remote host... ==> WARNING: unsupported architecture: riscv64 ==> Building python-zeroconf  -> repo: extra  -> arch: riscv64  -> worker: felix-1 ==> Building python-zeroconf for [extra] (riscv64) ]2;🔵 Container arch-nspawn-2078227 on electivire.felixc.at[?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Package (1) Old Version New Version Net Change Download Size core/zstd 1.5.6-1 1.5.7-2 0.12 MiB 0.58 MiB Total Download Size: 0.58 MiB Total Installed Size: 1.55 MiB Net Upgrade Size: 0.12 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... zstd-1.5.7-2-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... upgrading zstd... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... [?25h==> Building in chroot for [extra] (riscv64)... ==> Locking clean chroot [/var/lib/archbuild/extra-riscv64/root]...done ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix-1]...done ==> Making package: python-zeroconf 0.141.0-2 (Wed Feb 26 17:41:28 2025) ==> Retrieving sources...  -> Downloading python-zeroconf-0.141.0.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 183k 0 183k 0 0 261k 0 --:--:-- --:--:-- --:--:-- 261k ==> Validating source files with sha256sums... python-zeroconf-0.141.0.tar.gz ... Passed ]2;🔵 Container arch-nspawn-2080522 on electivire.felixc.at==> Making package: python-zeroconf 0.141.0-2 (Wed Feb 26 17:41:39 2025) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (3) New Version Net Change extra/mpdecimal 4.0.0-2 0.29 MiB core/python 3.13.2-1 108.68 MiB extra/python-ifaddr 0.2.0-6 0.07 MiB Total Installed Size: 109.03 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing mpdecimal... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] xz: for lzma [installed] tk: for tkinter installing python-ifaddr... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (21) New Version Net Change Download Size extra/python-autocommand 2.2.2-7 0.08 MiB extra/python-fastjsonschema 2.21.1-1 0.27 MiB extra/python-iniconfig 2.0.0-6 0.04 MiB extra/python-jaraco.collections 5.1.0-1 0.10 MiB extra/python-jaraco.context 6.0.1-1 0.04 MiB extra/python-jaraco.functools 4.1.0-1 0.07 MiB extra/python-jaraco.text 4.0.0-2 0.08 MiB extra/python-lark-parser 1.2.2-3 1.24 MiB extra/python-more-itertools 10.5.0-1 0.64 MiB extra/python-packaging 24.2-3 0.66 MiB extra/python-platformdirs 4.3.6-2 0.24 MiB extra/python-pluggy 1.5.0-3 0.20 MiB extra/python-pyproject-hooks 1.2.0-3 0.10 MiB extra/python-typing_extensions 4.12.2-3 0.42 MiB extra/cython 3.0.12-1 17.33 MiB 3.68 MiB extra/python-build 1.2.2-3 0.20 MiB extra/python-installer 0.7.0-10 0.17 MiB extra/python-poetry-core 2.1.1-1 1.38 MiB extra/python-pytest 1:8.3.4-1 3.92 MiB extra/python-setuptools 1:75.8.0-1 8.15 MiB extra/python-wheel 0.45.0-3 0.28 MiB Total Download Size: 3.68 MiB Total Installed Size: 35.63 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... cython-3.0.12-1-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing python-jaraco.text... Optional dependencies for python-jaraco.text python-inflect: for show-newlines script installing python-jaraco.collections... installing python-packaging... installing python-platformdirs... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures python-setuptools: for legacy bdist_wheel subcommand [pending] installing python-setuptools... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-pip: to use as the Python package installer (default) python-uv: to use as the Python package installer python-virtualenv: to use virtualenv for build isolation installing python-installer... installing python-fastjsonschema... installing python-typing_extensions... installing python-lark-parser... Optional dependencies for python-lark-parser python-atomicwrites: for atomic_cache python-regex: for regex support installing python-poetry-core... installing cython... installing python-iniconfig... installing python-pluggy... installing python-pytest... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... [?25h==> Retrieving sources...  -> Found python-zeroconf-0.141.0.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-zeroconf-0.141.0.tar.gz with bsdtar ==> Starting build()... * Getting build dependencies for wheel... * Building wheel... warning: src/zeroconf/_cache.py:53:23: Unknown type declaration '_DNSRecordCacheType' in annotation, ignoring warning: src/zeroconf/_cache.py:53:49: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_cache.py:53:63: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_cache.py:76:33: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_cache.py:119:36: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_cache.py:138:32: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_cache.py:185:38: Unknown type declaration '_UniqueRecordsType' in annotation, ignoring warning: src/zeroconf/_cache.py:197:41: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_cache.py:197:54: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:197:68: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:243:47: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:243:61: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:264:51: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:264:65: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_cache.py:303:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_cache.py:317:61: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_cache.py:317:74: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:72:49: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:72:63: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:117:43: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:117:57: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:122:31: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:178:50: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:178:64: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:178:75: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:178:92: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:205:43: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:211:37: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:216:30: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:220:28: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:224:29: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:228:40: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:265:15: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:266:16: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:267:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:270:17: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:278:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:328:32: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:328:46: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:328:57: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:328:93: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:336:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:375:32: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:375:46: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:375:57: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:375:86: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:392:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:430:32: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:430:46: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:430:57: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:430:87: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:436:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:483:15: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:484:16: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:485:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:486:18: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:487:16: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:488:14: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:490:17: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:500:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:550:15: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:551:16: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_dns.py:552:13: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:555:17: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_dns.py:562:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:634:33: Unknown type declaration '_DNSRecord' in annotation, ignoring warning: src/zeroconf/_dns.py:122:31: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:122:31: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:188:28: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:235:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:278:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:278:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:336:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:336:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:392:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:392:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:436:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:436:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:500:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:500:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:562:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_dns.py:562:25: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_handlers/answers.py:88:13: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/answers.py:97:13: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/answers.py:100:9: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_handlers/answers.py:112:56: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/multicast_outgoing_queue.py:67:29: Unknown type declaration '_float' in annotation, ignoring warning: src/zeroconf/_handlers/multicast_outgoing_queue.py:67:46: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/multicast_outgoing_queue.py:89:50: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:117:48: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:128:51: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:133:51: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:214:20: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:236:20: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:255:20: Unknown type declaration '_AnswerWithAdditionalsType' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:257:15: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:284:23: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:437:14: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:438:14: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_handlers/query_handler.py:439:19: Unknown type declaration '_WrappedTransport' in annotation, ignoring warning: src/zeroconf/_handlers/record_manager.py:51: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:86:20: 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:265:35: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:308:22: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:308:35: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:308:49: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:308:60: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:308:74: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:387:32: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/incoming.py:419:44: Unknown type declaration '_int' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:153:67: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:201:33: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:206:32: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:210:44: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:214:36: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:214:49: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:218:33: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:233:34: Unknown type declaration 'bytes_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:240:28: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:258:31: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:301:41: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:307:40: Unknown type declaration 'DNSQuestion_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:324:33: Unknown type declaration 'DNSRecord_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:324:50: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:328:36: Unknown type declaration 'DNSRecord_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:328:53: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:350:63: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:350:81: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:373:61: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:381:56: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:389:79: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:399:26: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:400:23: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:401:26: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_protocol/outgoing.py:402: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/__init__.py:69:64: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_services/__init__.py:73:66: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_services/browser.py:200:39: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:225:16: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:226:15: Unknown type declaration 'bool_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:227:33: Unknown type declaration '_QuestionWithKnownAnswers' in annotation, ignoring warning: src/zeroconf/_services/browser.py:265:16: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:398:28: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:399:29: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:440:20: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:441:31: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:541:47: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:656:22: Unknown type declaration 'ServiceStateChange' in annotation, ignoring warning: src/zeroconf/_services/browser.py:657:15: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:658:14: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:673:56: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/browser.py:158:28: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_services/browser.py:164:28: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_services/browser.py:176:28: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_services/browser.py:182:28: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_services/info.py:302:44: Unknown type declaration 'IPVersion' in annotation, ignoring warning: src/zeroconf/_services/info.py:321:23: Unknown type declaration 'IPVersion' in annotation, ignoring warning: src/zeroconf/_services/info.py:334:29: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:440:35: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:440:49: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:453:66: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:463:66: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:473:56: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:485:81: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:581:17: Unknown type declaration 'IPVersion' in annotation, ignoring warning: src/zeroconf/_services/info.py:712:77: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:742:52: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:887:13: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:888:14: Unknown type declaration 'str_' in annotation, ignoring warning: src/zeroconf/_services/info.py:889:15: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:890:16: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_services/info.py:911:35: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_services/info.py:911:58: Unknown type declaration 'DNSQuestionType' in annotation, ignoring warning: src/zeroconf/_services/info.py:105:42: Strings should no longer be used for type declarations. Use 'cython.int' etc. directly. warning: src/zeroconf/_services/registry.py:82:65: Unknown type declaration '_str' in annotation, ignoring warning: src/zeroconf/_updates.py:52:56: Unknown type declaration 'float_' in annotation, ignoring warning: src/zeroconf/_utils/ipaddress.py:130:13: Unknown type declaration 'bytes_' in annotation, ignoring warning: src/zeroconf/_utils/ipaddress.py:130:28: Unknown type declaration 'int_' in annotation, ignoring warning: src/zeroconf/_utils/time.py:39: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 /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_cache.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_core.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_dns.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_engine.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_exceptions.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_history.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_listener.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_logger.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_record_update.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_transport.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_updates.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/asyncio.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/const.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/answers.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/multicast_outgoing_queue.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/query_handler.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/record_manager.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_protocol copying src/zeroconf/_protocol/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_protocol copying src/zeroconf/_protocol/incoming.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_protocol copying src/zeroconf/_protocol/outgoing.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_protocol creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_services/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_services/browser.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_services/info.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_services/registry.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_services/types.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/__init__.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/asyncio.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/ipaddress.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/name.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/net.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/time.py -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils copying src/zeroconf/py.typed -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_cache.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_dns.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_history.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_listener.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_record_update.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_updates.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf copying src/zeroconf/_handlers/answers.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/multicast_outgoing_queue.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/query_handler.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_handlers/record_manager.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers copying src/zeroconf/_protocol/incoming.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_protocol copying src/zeroconf/_protocol/outgoing.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_protocol copying src/zeroconf/_services/__init__.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_services/browser.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_services/info.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_services/registry.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services copying src/zeroconf/_utils/ipaddress.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils copying src/zeroconf/_utils/time.pxd -> /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils running build_ext building 'zeroconf._dns' extension creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_dns.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_dns.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_dns.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_dns.cpython-313-riscv64-linux-gnu.so building 'zeroconf._cache' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_cache.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_cache.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_cache.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_cache.cpython-313-riscv64-linux-gnu.so building 'zeroconf._history' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_history.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_history.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_history.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_history.cpython-313-riscv64-linux-gnu.so building 'zeroconf._record_update' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_record_update.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_record_update.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_record_update.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_record_update.cpython-313-riscv64-linux-gnu.so building 'zeroconf._listener' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_listener.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_listener.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_listener.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_listener.cpython-313-riscv64-linux-gnu.so building 'zeroconf._protocol.incoming' extension creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_protocol gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_protocol/incoming.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_protocol/incoming.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_protocol/incoming.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_protocol/incoming.cpython-313-riscv64-linux-gnu.so building 'zeroconf._protocol.outgoing' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_protocol/outgoing.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_protocol/outgoing.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_protocol/outgoing.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_protocol/outgoing.cpython-313-riscv64-linux-gnu.so building 'zeroconf._handlers.answers' extension creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_handlers/answers.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers/answers.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers/answers.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers/answers.cpython-313-riscv64-linux-gnu.so building 'zeroconf._handlers.record_manager' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_handlers/record_manager.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers/record_manager.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers/record_manager.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers/record_manager.cpython-313-riscv64-linux-gnu.so building 'zeroconf._handlers.multicast_outgoing_queue' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_handlers/multicast_outgoing_queue.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers/multicast_outgoing_queue.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers/multicast_outgoing_queue.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers/multicast_outgoing_queue.cpython-313-riscv64-linux-gnu.so building 'zeroconf._handlers.query_handler' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_handlers/query_handler.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers/query_handler.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_handlers/query_handler.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_handlers/query_handler.cpython-313-riscv64-linux-gnu.so building 'zeroconf._services.__init__' extension creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_services/__init__.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services/__init__.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services/__init__.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services/__init__.cpython-313-riscv64-linux-gnu.so building 'zeroconf._services.browser' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_services/browser.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services/browser.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services/browser.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services/browser.cpython-313-riscv64-linux-gnu.so building 'zeroconf._services.info' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_services/info.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services/info.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services/info.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services/info.cpython-313-riscv64-linux-gnu.so building 'zeroconf._services.registry' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_services/registry.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services/registry.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_services/registry.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_services/registry.cpython-313-riscv64-linux-gnu.so building 'zeroconf._updates' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_updates.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_updates.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_updates.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_updates.cpython-313-riscv64-linux-gnu.so building 'zeroconf._utils.ipaddress' extension creating /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_utils gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_utils/ipaddress.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_utils/ipaddress.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_utils/ipaddress.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils/ipaddress.cpython-313-riscv64-linux-gnu.so building 'zeroconf._utils.time' extension gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto -fPIC -I/usr/include/python3.13 -c src/zeroconf/_utils/time.c -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_utils/time.o gcc -shared -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -g -ffile-prefix-map=/build/python-zeroconf/src=/usr/src/debug/python-zeroconf -flto=auto /build/python-zeroconf/src/python-zeroconf-0.141.0/build/temp.linux-riscv64-cpython-313/src/zeroconf/_utils/time.o -L/usr/lib -o /build/python-zeroconf/src/python-zeroconf-0.141.0/build/lib.linux-riscv64-cpython-313/zeroconf/_utils/time.cpython-313-riscv64-linux-gnu.so Successfully built zeroconf-0.141.0-cp313-cp313-manylinux_2_41_riscv64.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/python-zeroconf/src/python-zeroconf-0.141.0 configfile: pyproject.toml collected 308 items / 1 deselected / 307 selected tests/services/test_browser.py FFFFFFFFssssFFFFF.sssFF.ss [ 8%] tests/services/test_info.py FFF.FFF.Fss....FFFsssssssssss [ 17%] tests/services/test_registry.py ..... [ 19%] tests/services/test_types.py FFF [ 20%] tests/test_asyncio.py sssssssssssssssssssssssssssss [ 29%] tests/test_cache.py ........................sss [ 38%] tests/test_core.py F.F.sF.FFFFFFFFFFFssFs [ 45%] tests/test_dns.py ........................... [ 54%] tests/test_engine.py ss [ 55%] tests/test_exceptions.py EEEEEEEEE [ 58%] tests/test_handlers.py FFFFFFFFFssFFFFFFssssssssssssss [ 68%] tests/test_history.py .. [ 69%] tests/test_init.py ...F..F [ 71%] tests/test_listener.py FF [ 71%] tests/test_logger.py ..... [ 73%] tests/test_protocol.py .............................................. [ 88%] tests/test_services.py FF. [ 89%] tests/test_updates.py F. [ 90%] tests/utils/test_asyncio.py ss.s..s [ 92%] tests/utils/test_ipaddress.py .. [ 93%] tests/utils/test_name.py ..... [ 94%] tests/utils/test_net.py ...........s.... [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:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log setup ------------------------------ DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ___________ ERROR at setup of Exceptions.test_bad_service_info_name ____________ cls = @classmethod def setUpClass(cls): > cls.browser = Zeroconf(interfaces=["127.0.0.1"]) tests/test_exceptions.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: 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:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: 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:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: 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:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: 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:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: 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:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: 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:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: 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:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError =================================== FAILURES =================================== __________________ 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:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _________________ 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:88: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________ test_service_browser_cancel_multiple_times_after_close ____________ def test_service_browser_cancel_multiple_times_after_close(): """Test we can cancel a ServiceBrowser multiple times after close.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________ test_service_browser_started_after_zeroconf_closed ______________ def test_service_browser_started_after_zeroconf_closed(): """Test starting a ServiceBrowser after close raises RuntimeError.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________ test_multiple_instances_running_close _____________________ def test_multiple_instances_running_close(): """Test we can shutdown multiple instances.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________ TestServiceBrowser.test_update_record _____________________ self = def test_update_record(self): enable_ipv6 = has_working_ipv6() and not os.environ.get("SKIP_IPV6") service_name = "name._type._tcp.local." service_type = "_type._tcp.local." service_server = "ash-1.local." service_text = b"path=/~matt1/" service_address = "10.0.1.2" service_v6_address = "2001:db8::1" service_v6_second_address = "6001:db8::1" service_added_count = 0 service_removed_count = 0 service_updated_count = 0 service_add_event = Event() service_removed_event = Event() service_updated_event = Event() class MyServiceListener(r.ServiceListener): def add_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_added_count service_added_count += 1 service_add_event.set() def remove_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_removed_count service_removed_count += 1 service_removed_event.set() def update_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_updated_count service_updated_count += 1 service_info = zc.get_service_info(type_, name) assert socket.inet_aton(service_address) in service_info.addresses if enable_ipv6: assert socket.inet_pton( socket.AF_INET6, service_v6_address ) in service_info.addresses_by_version(r.IPVersion.V6Only) assert socket.inet_pton( socket.AF_INET6, service_v6_second_address ) in service_info.addresses_by_version(r.IPVersion.V6Only) assert service_info.text == service_text assert service_info.server.lower() == service_server.lower() service_updated_event.set() def mock_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:300: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________ TestServiceBrowserMultipleTypes.test_update_record ______________ self = def test_update_record(self): service_names = [ "name2._type2._tcp.local.", "name._type._tcp.local.", "name._type._udp.local", ] service_types = ["_type2._tcp.local.", "_type._tcp.local.", "_type._udp.local."] service_added_count = 0 service_removed_count = 0 service_add_event = Event() service_removed_event = Event() class MyServiceListener(r.ServiceListener): def add_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_added_count service_added_count += 1 if service_added_count == 3: service_add_event.set() def remove_service(self, zc, type_, name) -> None: # type: ignore[no-untyped-def] nonlocal service_removed_count service_removed_count += 1 if service_removed_count == 3: service_removed_event.set() def mock_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:418: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 19) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________________ test_first_query_delay ____________________________ def test_first_query_delay(): """Verify the first query is delayed. https://datatracker.ietf.org/doc/html/rfc6762#section-5.2 """ type_ = "_http._tcp.local." > zeroconf_browser = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:524: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________________ test_legacy_record_update_listener ______________________ def test_legacy_record_update_listener(): """Test a RecordUpdateListener that does not implement update_records.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:852: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ________________ test_service_browser_is_aware_of_port_changes _________________ def test_service_browser_is_aware_of_port_changes(): """Test that the ServiceBrowser is aware of port changes.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:914: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ________________ test_service_browser_listeners_update_service _________________ def test_service_browser_listeners_update_service(): """Test that the ServiceBrowser ServiceListener that implements update_service.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:978: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 21) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _______________ test_service_browser_listeners_no_update_service _______________ def test_service_browser_listeners_no_update_service(): """Test that the ServiceBrowser ServiceListener that does not implement update_service.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:1043: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 __________________ 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:1105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ________________________ test_service_browser_matching _________________________ def test_service_browser_matching(): """Test that the ServiceBrowser matching does not match partial names.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_browser.py:1365: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________ 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:1458: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________ TestServiceInfo.test_get_info_partial _____________________ self = @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_get_info_partial(self): > zc = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:255: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _____________________ TestServiceInfo.test_get_info_single _____________________ self = def test_get_info_single(self): > zc = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:527: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 23) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _________ TestServiceInfo.test_get_info_suppressed_by_question_history _________ self = @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_get_info_suppressed_by_question_history(self): > zc = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:403: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______ TestServiceInfo.test_service_info_duplicate_properties_txt_records ______ self = def test_service_info_duplicate_properties_txt_records(self): """Verify the first property is always used when there are duplicates in a txt record.""" > zc = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:629: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 __________ TestServiceInfo.test_service_info_rejects_expired_records ___________ self = def test_service_info_rejects_expired_records(self): """Verify records that are expired are rejected.""" > zc = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:203: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ________ TestServiceInfo.test_service_info_rejects_non_matching_updates ________ self = def test_service_info_rejects_non_matching_updates(self): """Verify records with the wrong name are rejected.""" > zc = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 25) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _______________________ 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:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ___________________________ 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:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ___________________________ 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:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _____________________________ test_request_timeout _____________________________ def test_request_timeout(): """Test that the timeout does not throw an exception and finishes close to the actual timeout.""" > zeroconf = r.Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_info.py:1050: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 27) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ________________________ test_integration_with_listener ________________________ disable_duplicate_packet_suppression = None def test_integration_with_listener(disable_duplicate_packet_suppression): type_ = "_test-listen-type._tcp.local." name = "xxxyyy" registration_name = f"{name}.{type_}" > zeroconf_registrar = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_types.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 __________________ test_integration_with_listener_v6_records ___________________ disable_duplicate_packet_suppression = None @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_integration_with_listener_v6_records(disable_duplicate_packet_suppression): type_ = "_test-listenv6rec-type._tcp.local." name = "xxxyyy" registration_name = f"{name}.{type_}" addr = "2606:2800:220:1:248:1893:25c8:1946" # example.com > zeroconf_registrar = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_types.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 __________________ test_integration_with_subtype_and_listener __________________ disable_duplicate_packet_suppression = None def test_integration_with_subtype_and_listener(disable_duplicate_packet_suppression): subtype_ = "_subtype._sub" type_ = "_listen._tcp.local." name = "xxxyyy" # Note: discovery returns only DNS-SD type not subtype discovery_type = f"{subtype_}.{type_}" registration_name = f"{name}.{type_}" > zeroconf_registrar = Zeroconf(interfaces=["127.0.0.1"]) tests/services/test_types.py:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 17) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 __________________ 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:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 29) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _______________________ Framework.test_launch_and_close ________________________ self = def test_launch_and_close(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.All) tests/test_core.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '167.235.183.228', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '167.235.183.228' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('167.235.183.228',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 167.235.183.228 _______________ 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:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '167.235.183.228', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '167.235.183.228' (socket 12) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('167.235.183.228',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 167.235.183.228 ____________________ Framework.test_launch_and_close_v4_v6 _____________________ self = @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_launch_and_close_v4_v6(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.All, ip_version=r.IPVersion.All) tests/test_core.py:88: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = (('::1', 0, 0), 1), apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) > respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:348: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.All, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding (('::1', 0, 0), 1) (socket 14) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V6Only, apple_p2p False and bind_addr ('::1', 0, 0) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface (('::1', 0, 0), 1) ___________________ Framework.test_launch_and_close_v6_only ____________________ self = @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_launch_and_close_v6_only(self): > rv = r.Zeroconf(interfaces=r.InterfaceChoice.All, ip_version=r.IPVersion.V6Only) tests/test_core.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = (('::1', 0, 0), 1), apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) > respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:348: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V6Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding (('::1', 0, 0), 1) (socket 16) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V6Only, apple_p2p False and bind_addr ('::1', 0, 0) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface (('::1', 0, 0), 1) ____________________ 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:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ________ test_invalid_packets_ignored_and_does_not_cause_loop_exception ________ def test_invalid_packets_ignored_and_does_not_cause_loop_exception(): """Ensure an invalid packet cannot cause the loop to collapse.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 __________________________ test_goodbye_all_services ___________________________ def test_goodbye_all_services(): """Verify generating the goodbye query does not change with time.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:319: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________ test_register_service_with_custom_ttl _____________________ def test_register_service_with_custom_ttl(): """Test a registering a service with a custom ttl.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:357: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 19) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _____________________________ test_logging_packets _____________________________ caplog = <_pytest.logging.LogCaptureFixture object at 0x76c4f4977b10> 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:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________________ test_get_service_info_failure_path ______________________ def test_get_service_info_failure_path(): """Verify get_service_info return None when the underlying call returns False.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:418: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _____________________________ test_sending_unicast _____________________________ def test_sending_unicast(): """Test sending unicast response.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:425: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 15) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________________________ test_tc_bit_defers ______________________________ def test_tc_bit_defers(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:457: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 21) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ___________________ test_tc_bit_defers_last_response_missing ___________________ def test_tc_bit_defers_last_response_missing(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:557: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ___________________ test_shutdown_while_register_in_process ____________________ def test_shutdown_while_register_in_process(): """Test we can shutdown while registering a service in another thread.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_core.py:717: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________________ TestRegistrar.test_name_conflicts _______________________ self = def test_name_conflicts(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ________ TestRegistrar.test_register_and_lookup_type_by_uppercase_name _________ self = def test_register_and_lookup_type_by_uppercase_name(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________________ TestRegistrar.test_ttl ____________________________ self = def test_ttl(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 23) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________________ test_ptr_optimization _____________________________ def test_ptr_optimization(): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 25) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________________ test_any_query_for_ptr ____________________________ @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_any_query_for_ptr(): """Test that queries for ANY will return PTR records and the response is aggregated.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:300: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _______________________________ test_aaaa_query ________________________________ @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_aaaa_query(): """Test that queries for AAAA records work and should respond right away.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:329: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 __________________________ test_aaaa_query_upper_case __________________________ @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_aaaa_query_upper_case(): """Test that queries for AAAA records work and should respond right away with an upper case name.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 23) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _____________________ test_a_and_aaaa_record_fate_sharing ______________________ @unittest.skipIf(not has_working_ipv6(), "Requires IPv6") @unittest.skipIf(os.environ.get("SKIP_IPV6"), "IPv6 tests disabled") def test_a_and_aaaa_record_fate_sharing(): """Test that queries for AAAA always return A records in the additionals and should respond right away.""" > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:383: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 27) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ____________________________ test_unicast_response _____________________________ def test_unicast_response(): """Ensure we send a unicast response when the source port is not the MDNS port.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:440: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _______________________________ test_qu_response _______________________________ def test_qu_response(): """Handle multicast incoming with the QU bit set.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:600: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _________________________ test_known_answer_supression _________________________ def test_known_answer_supression(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 23) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 __________________ test_multi_packet_known_answer_supression ___________________ def test_multi_packet_known_answer_supression(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:863: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 31) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _________ test_known_answer_supression_service_type_enumeration_query __________ def test_known_answer_supression_service_type_enumeration_query(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:939: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________________ test_upper_case_enumeration_query _______________________ def test_upper_case_enumeration_query(): > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_handlers.py:1026: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________ 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:1080: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 23) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ________________ Names.test_large_packet_exception_log_handling ________________ self = def test_large_packet_exception_log_handling(self): """Verify we downgrade debug after warning.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_init.py:88: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 33) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _______________ Names.test_verify_name_change_with_lots_of_names _______________ self = def test_verify_name_change_with_lots_of_names(self): # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_init.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _____________________ test_guard_against_oversized_packets _____________________ def test_guard_against_oversized_packets(): """Ensure we do not process oversized packets. These packets can quickly overwhelm the system. """ > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_listener.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 13) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _____________________ test_guard_against_duplicate_packets _____________________ def test_guard_against_duplicate_packets(): """Ensure we do not process duplicate packets. These packets can quickly overwhelm the system. """ > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_listener.py:132: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 23) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________ ListenerTest.test_integration_with_listener_class _______________ self = def test_integration_with_listener_class(self): sub_service_added = Event() service_added = Event() service_removed = Event() sub_service_updated = Event() duplicate_service_added = Event() subtype_name = "_printer" type_ = "_http._tcp.local." subtype = subtype_name + "._sub." + type_ name = "UPPERxxxyyyæøå" registration_name = f"{name}.{subtype}" class MyListener(r.ServiceListener): def add_service(self, zeroconf, type, name): zeroconf.get_service_info(type, name) service_added.set() def remove_service(self, zeroconf, type, name): service_removed.set() def update_service(self, zeroconf, type, name): pass class DuplicateListener(r.ServiceListener): def add_service(self, zeroconf, type, name): duplicate_service_added.set() def remove_service(self, zeroconf, type, name): pass def update_service(self, zeroconf, type, name): pass class MySubListener(r.ServiceListener): def add_service(self, zeroconf, type, name): sub_service_added.set() pass def remove_service(self, zeroconf, type, name): pass def update_service(self, zeroconf, type, name): sub_service_updated.set() listener = MyListener() > zeroconf_browser = Zeroconf(interfaces=["127.0.0.1"]) tests/test_services.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 35) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 _________________ test_servicelisteners_raise_not_implemented __________________ def test_servicelisteners_raise_not_implemented(): """Verify service listeners raise when one of the methods is not implemented.""" class MyPartialListener(r.ServiceListener): """A listener that does not implement anything.""" > zc = r.Zeroconf(interfaces=["127.0.0.1"]) tests/test_services.py:230: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 37) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 ______________________ test_legacy_record_update_listener ______________________ def test_legacy_record_update_listener(): """Test a RecordUpdateListener that does not implement update_records.""" # instantiate a zeroconf instance > zc = Zeroconf(interfaces=["127.0.0.1"]) tests/test_updates.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/zeroconf/_core.py:179: in __init__ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p) src/zeroconf/_utils/net.py:383: in create_sockets respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ interface = '127.0.0.1', apple_p2p = False def new_respond_socket( interface: Union[str, Tuple[Tuple[str, int, int], int]], apple_p2p: bool = False, ) -> Optional[socket.socket]: is_v6 = isinstance(interface, tuple) respond_socket = new_socket( ip_version=(IPVersion.V6Only if is_v6 else IPVersion.V4Only), apple_p2p=apple_p2p, bind_addr=cast(Tuple[Tuple[str, int, int], int], interface)[0] if is_v6 else (cast(str, interface),), ) if not respond_socket: return None log.debug("Configuring socket %s with multicast interface %s", respond_socket, interface) if is_v6: iface_bin = struct.pack("@I", cast(int, interface[1])) respond_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, iface_bin) else: > respond_socket.setsockopt( socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(cast(str, interface)), ) E OSError: [Errno 92] Protocol not available src/zeroconf/_utils/net.py:350: OSError ------------------------------ Captured log call ------------------------------- DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:276 Adding '127.0.0.1' (socket 11) to multicast group DEBUG zeroconf:net.py:227 Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('127.0.0.1',) DEBUG zeroconf:net.py:262 Created socket DEBUG zeroconf:net.py:345 Configuring socket with multicast interface 127.0.0.1 =============================== warnings summary =============================== tests/services/test_browser.py:557 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:557: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:659 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:659: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:769 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:769: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:808 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:808: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:1140 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:1140: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:1193 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:1193: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:1286 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:1286: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:1581 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:1581: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py:1649 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_browser.py:1649: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:831 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:831: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:851 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:851: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1060 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1060: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1083 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1083: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1148 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1148: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1231 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1231: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1314 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1314: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1402 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1402: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1497 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1497: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1551 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1551: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1633 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1633: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1715 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1715: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_info.py:1787 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/services/test_info.py:1787: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:80 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:80: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:87 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:87: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:95 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:95: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:104 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:104: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:114 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:114: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:126 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:126: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:193 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:193: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:260 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:260: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:327 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:327: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:394 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:394: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:442 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:442: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:468 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:468: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:503 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:503: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:569 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:569: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:605 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:605: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:714 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:714: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:774 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:774: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:798 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:798: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:824 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:824: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:883 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:883: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:917 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:917: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:928 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:928: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:977 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:977: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1125 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:1125: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1179 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:1179: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1276 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:1276: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1290 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:1290: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1299 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:1299: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_asyncio.py:1340 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_asyncio.py:1340: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_cache.py:365 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_cache.py:365: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_cache.py:417 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_cache.py:417: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_cache.py:453 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_cache.py:453: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_core.py:668 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_core.py:668: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_core.py:688 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_core.py:688: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_core.py:744 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_core.py:744: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_engine.py:31 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_engine.py:31: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_engine.py:66 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_engine.py:66: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:495 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:495: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:546 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:546: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1094 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1094: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1260 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1260: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1363 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1363: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1417 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1417: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1463 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1463: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1506 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1506: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1557 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1557: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1589 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1589: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1711 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1711: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1793 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1793: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1901 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1901: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1965 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1965: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:1990 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:1990: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_handlers.py:2034 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/test_handlers.py:2034: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/utils/test_asyncio.py:20 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/utils/test_asyncio.py:20: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/utils/test_asyncio.py:36 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/utils/test_asyncio.py:36: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/utils/test_asyncio.py:47 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/utils/test_asyncio.py:47: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/utils/test_asyncio.py:120 /build/python-zeroconf/src/python-zeroconf-0.141.0/tests/utils/test_asyncio.py:120: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/services/test_browser.py: 9 warnings tests/services/test_info.py: 13 warnings tests/test_asyncio.py: 29 warnings tests/test_cache.py: 3 warnings tests/test_core.py: 3 warnings tests/test_engine.py: 2 warnings tests/test_handlers.py: 16 warnings tests/utils/test_asyncio.py: 4 warnings /usr/lib/python3.13/site-packages/_pytest/python.py:148: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped. You need to install a suitable plugin for your async framework, for example: - anyio - pytest-asyncio - pytest-tornasync - pytest-trio - pytest-twisted warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid))) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/services/test_browser.py::test_service_browser_cancel_multiple_times FAILED tests/services/test_browser.py::test_service_browser_cancel_context_manager FAILED tests/services/test_browser.py::test_service_browser_cancel_multiple_times_after_close FAILED tests/services/test_browser.py::test_service_browser_started_after_zeroconf_closed FAILED tests/services/test_browser.py::test_multiple_instances_running_close FAILED tests/services/test_browser.py::TestServiceBrowser::test_update_record FAILED tests/services/test_browser.py::TestServiceBrowserMultipleTypes::test_update_record FAILED tests/services/test_browser.py::test_first_query_delay - OSError: [Err... FAILED tests/services/test_browser.py::test_legacy_record_update_listener - O... FAILED tests/services/test_browser.py::test_service_browser_is_aware_of_port_changes FAILED tests/services/test_browser.py::test_service_browser_listeners_update_service FAILED tests/services/test_browser.py::test_service_browser_listeners_no_update_service FAILED tests/services/test_browser.py::test_service_browser_uses_non_strict_names FAILED tests/services/test_browser.py::test_service_browser_matching - OSErro... FAILED tests/services/test_browser.py::test_service_browser_expire_callbacks FAILED tests/services/test_info.py::TestServiceInfo::test_get_info_partial - ... FAILED tests/services/test_info.py::TestServiceInfo::test_get_info_single - O... FAILED tests/services/test_info.py::TestServiceInfo::test_get_info_suppressed_by_question_history FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_duplicate_properties_txt_records FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_expired_records FAILED tests/services/test_info.py::TestServiceInfo::test_service_info_rejects_non_matching_updates FAILED tests/services/test_info.py::test_scoped_addresses_from_cache - OSErro... FAILED tests/services/test_info.py::test_asking_qu_questions - OSError: [Errn... FAILED tests/services/test_info.py::test_asking_qm_questions - OSError: [Errn... FAILED tests/services/test_info.py::test_request_timeout - OSError: [Errno 92... FAILED tests/services/test_types.py::test_integration_with_listener - OSError... FAILED tests/services/test_types.py::test_integration_with_listener_v6_records FAILED tests/services/test_types.py::test_integration_with_subtype_and_listener FAILED tests/test_core.py::Framework::test_async_updates_from_response - OSEr... FAILED tests/test_core.py::Framework::test_launch_and_close - OSError: [Errno... FAILED tests/test_core.py::Framework::test_launch_and_close_context_manager FAILED tests/test_core.py::Framework::test_launch_and_close_v4_v6 - OSError: ... FAILED tests/test_core.py::Framework::test_launch_and_close_v6_only - OSError... FAILED tests/test_core.py::test_generate_service_query_set_qu_bit - OSError: ... FAILED tests/test_core.py::test_invalid_packets_ignored_and_does_not_cause_loop_exception FAILED tests/test_core.py::test_goodbye_all_services - OSError: [Errno 92] Pr... FAILED tests/test_core.py::test_register_service_with_custom_ttl - OSError: [... FAILED tests/test_core.py::test_logging_packets - OSError: [Errno 92] Protoco... FAILED tests/test_core.py::test_get_service_info_failure_path - OSError: [Err... FAILED tests/test_core.py::test_sending_unicast - OSError: [Errno 92] Protoco... FAILED tests/test_core.py::test_tc_bit_defers - OSError: [Errno 92] Protocol ... FAILED tests/test_core.py::test_tc_bit_defers_last_response_missing - OSError... FAILED tests/test_core.py::test_shutdown_while_register_in_process - OSError:... FAILED tests/test_handlers.py::TestRegistrar::test_name_conflicts - OSError: ... FAILED tests/test_handlers.py::TestRegistrar::test_register_and_lookup_type_by_uppercase_name FAILED tests/test_handlers.py::TestRegistrar::test_ttl - OSError: [Errno 92] ... FAILED tests/test_handlers.py::test_ptr_optimization - OSError: [Errno 92] Pr... FAILED tests/test_handlers.py::test_any_query_for_ptr - OSError: [Errno 92] P... FAILED tests/test_handlers.py::test_aaaa_query - OSError: [Errno 92] Protocol... FAILED tests/test_handlers.py::test_aaaa_query_upper_case - OSError: [Errno 9... FAILED tests/test_handlers.py::test_a_and_aaaa_record_fate_sharing - OSError:... FAILED tests/test_handlers.py::test_unicast_response - OSError: [Errno 92] Pr... FAILED tests/test_handlers.py::test_qu_response - OSError: [Errno 92] Protoco... FAILED tests/test_handlers.py::test_known_answer_supression - OSError: [Errno... FAILED tests/test_handlers.py::test_multi_packet_known_answer_supression - OS... FAILED tests/test_handlers.py::test_known_answer_supression_service_type_enumeration_query FAILED tests/test_handlers.py::test_upper_case_enumeration_query - OSError: [... FAILED tests/test_handlers.py::test_enumeration_query_with_no_registered_services FAILED tests/test_init.py::Names::test_large_packet_exception_log_handling - ... FAILED tests/test_init.py::Names::test_verify_name_change_with_lots_of_names FAILED tests/test_listener.py::test_guard_against_oversized_packets - OSError... FAILED tests/test_listener.py::test_guard_against_duplicate_packets - OSError... FAILED tests/test_services.py::ListenerTest::test_integration_with_listener_class FAILED tests/test_services.py::test_servicelisteners_raise_not_implemented - ... FAILED tests/test_updates.py::test_legacy_record_update_listener - OSError: [... ERROR tests/test_exceptions.py::Exceptions::test_bad_local_names_for_get_service_info ERROR tests/test_exceptions.py::Exceptions::test_bad_service_info_name - OSEr... ERROR tests/test_exceptions.py::Exceptions::test_bad_service_names - OSError:... ERROR tests/test_exceptions.py::Exceptions::test_bad_sub_types - OSError: [Er... ERROR tests/test_exceptions.py::Exceptions::test_bad_types - OSError: [Errno ... ERROR tests/test_exceptions.py::Exceptions::test_good_instance_names - OSErro... ERROR tests/test_exceptions.py::Exceptions::test_good_instance_names_without_protocol ERROR tests/test_exceptions.py::Exceptions::test_good_service_names - OSError... ERROR tests/test_exceptions.py::Exceptions::test_invalid_addresses - OSError:... = 65 failed, 152 passed, 81 skipped, 1 deselected, 158 warnings, 9 errors in 18.56s = ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix-1/build [?25h[?25h[?25hreceiving incremental file list python-zeroconf-0.141.0-2-riscv64-build.log python-zeroconf-0.141.0-2-riscv64-check.log sent 62 bytes received 15,027 bytes 3,353.11 bytes/sec total size is 295,968 speedup is 19.61