0s autopkgtest [20:31:37]: starting date and time: 2024-11-23 20:31:37+0000 0s autopkgtest [20:31:37]: git checkout: 6408f825 Correct logic in old-systemd fallback code 0s autopkgtest [20:31:37]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.k1u4500q/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:python-aiohttp,src:yarl --apt-upgrade python-directv --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python-aiohttp/3.10.10-2build1 yarl/1.13.1-1build1' -- lxd -r lxd-armhf-10.145.243.52 lxd-armhf-10.145.243.52:autopkgtest/ubuntu/plucky/armhf 53s autopkgtest [20:32:30]: testbed dpkg architecture: armhf 55s autopkgtest [20:32:32]: testbed apt version: 2.9.8 55s autopkgtest [20:32:32]: @@@@@@@@@@@@@@@@@@@@ test bed setup 63s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 64s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [930 kB] 64s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [9704 B] 64s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [13.6 kB] 64s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [54.8 kB] 64s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [63.6 kB] 64s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf Packages [756 B] 64s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [727 kB] 64s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [5924 B] 64s Fetched 1879 kB in 1s (2167 kB/s) 64s Reading package lists... 82s tee: /proc/self/fd/2: Permission denied 104s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 104s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 104s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 104s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 105s Reading package lists... 105s Reading package lists... 106s Building dependency tree... 106s Reading state information... 106s Calculating upgrade... 107s The following packages will be upgraded: 107s bash debconf debconf-i18n python3-blinker python3-debconf vim-common 107s vim-tiny xxd 107s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 107s Need to get 2172 kB of archives. 107s After this operation, 1024 B disk space will be freed. 107s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf bash armhf 5.2.32-1ubuntu2 [673 kB] 108s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf debconf-i18n all 1.5.87ubuntu1 [204 kB] 108s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf python3-debconf all 1.5.87ubuntu1 [4156 B] 108s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf debconf all 1.5.87ubuntu1 [124 kB] 108s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf vim-tiny armhf 2:9.1.0861-1ubuntu1 [694 kB] 108s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf vim-common all 2:9.1.0861-1ubuntu1 [395 kB] 108s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf xxd armhf 2:9.1.0861-1ubuntu1 [67.0 kB] 108s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf python3-blinker all 1.9.0-1 [10.7 kB] 108s Preconfiguring packages ... 108s Fetched 2172 kB in 1s (2874 kB/s) 108s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 59616 files and directories currently installed.) 108s Preparing to unpack .../bash_5.2.32-1ubuntu2_armhf.deb ... 108s Unpacking bash (5.2.32-1ubuntu2) over (5.2.32-1ubuntu1) ... 108s Setting up bash (5.2.32-1ubuntu2) ... 108s update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode 109s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 59616 files and directories currently installed.) 109s Preparing to unpack .../debconf-i18n_1.5.87ubuntu1_all.deb ... 109s Unpacking debconf-i18n (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 109s Preparing to unpack .../python3-debconf_1.5.87ubuntu1_all.deb ... 109s Unpacking python3-debconf (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 109s Preparing to unpack .../debconf_1.5.87ubuntu1_all.deb ... 109s Unpacking debconf (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 109s Setting up debconf (1.5.87ubuntu1) ... 109s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 59616 files and directories currently installed.) 109s Preparing to unpack .../vim-tiny_2%3a9.1.0861-1ubuntu1_armhf.deb ... 109s Unpacking vim-tiny (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 109s Preparing to unpack .../vim-common_2%3a9.1.0861-1ubuntu1_all.deb ... 109s Unpacking vim-common (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 109s Preparing to unpack .../xxd_2%3a9.1.0861-1ubuntu1_armhf.deb ... 109s Unpacking xxd (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 109s Preparing to unpack .../python3-blinker_1.9.0-1_all.deb ... 109s Unpacking python3-blinker (1.9.0-1) over (1.8.2-1) ... 109s Setting up python3-debconf (1.5.87ubuntu1) ... 109s Setting up debconf-i18n (1.5.87ubuntu1) ... 109s Setting up xxd (2:9.1.0861-1ubuntu1) ... 109s Setting up vim-common (2:9.1.0861-1ubuntu1) ... 109s Setting up python3-blinker (1.9.0-1) ... 110s Setting up vim-tiny (2:9.1.0861-1ubuntu1) ... 110s Processing triggers for debianutils (5.21) ... 110s Processing triggers for install-info (7.1.1-1) ... 110s Processing triggers for man-db (2.13.0-1) ... 112s Reading package lists... 112s Building dependency tree... 112s Reading state information... 113s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 115s autopkgtest [20:33:32]: rebooting testbed after setup commands that affected boot 195s autopkgtest [20:34:52]: testbed running kernel: Linux 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 18:12:14 UTC 2 223s autopkgtest [20:35:20]: @@@@@@@@@@@@@@@@@@@@ apt-source python-directv 234s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (dsc) [2349 B] 234s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (tar) [19.1 kB] 234s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (diff) [2440 B] 234s gpgv: Signature made Fri Aug 2 01:08:32 2024 UTC 234s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 234s gpgv: Can't check signature: No public key 234s dpkg-source: warning: cannot verify inline signature for ./python-directv_0.4.0-2.dsc: no acceptable signature found 234s autopkgtest [20:35:31]: testing package python-directv version 0.4.0-2 237s autopkgtest [20:35:34]: build not needed 241s autopkgtest [20:35:38]: test run-tests: preparing testbed 255s Reading package lists... 255s Building dependency tree... 255s Reading state information... 256s Starting pkgProblemResolver with broken count: 0 256s Starting 2 pkgProblemResolver with broken count: 0 256s Done 257s The following additional packages will be installed: 257s python3-aiohappyeyeballs python3-aiohttp python3-aiosignal python3-all 257s python3-aresponses python3-async-generator python3-async-timeout 257s python3-directv python3-frozenlist python3-iniconfig python3-multidict 257s python3-packaging python3-pluggy python3-pytest python3-pytest-asyncio 257s python3-yarl 257s Recommended packages: 257s libjs-jquery python3-aiodns 257s The following NEW packages will be installed: 257s autopkgtest-satdep python3-aiohappyeyeballs python3-aiohttp 257s python3-aiosignal python3-all python3-aresponses python3-async-generator 257s python3-async-timeout python3-directv python3-frozenlist python3-iniconfig 257s python3-multidict python3-packaging python3-pluggy python3-pytest 257s python3-pytest-asyncio python3-yarl 257s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 257s Need to get 934 kB/934 kB of archives. 257s After this operation, 4306 kB of additional disk space will be used. 257s Get:1 /tmp/autopkgtest.HsIskt/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [740 B] 257s Get:2 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-aiohappyeyeballs all 2.4.3-1 [10.5 kB] 257s Get:3 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-multidict armhf 6.1.0-1build1 [34.6 kB] 258s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf python3-yarl armhf 1.13.1-1build1 [111 kB] 258s Get:5 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-async-timeout all 4.0.3-1 [6412 B] 258s Get:6 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-frozenlist armhf 1.5.0-1build1 [56.1 kB] 258s Get:7 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-aiosignal all 1.3.1-1 [5172 B] 258s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf python3-aiohttp armhf 3.10.10-2build1 [330 kB] 258s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf python3-all armhf 3.12.6-0ubuntu1 [886 B] 258s Get:10 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-async-generator all 1.10-4 [17.5 kB] 258s Get:11 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 258s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf python3-packaging all 24.2-1 [51.5 kB] 258s Get:13 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 258s Get:14 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest all 8.3.3-1 [251 kB] 258s Get:15 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest-asyncio all 0.20.3-1.3 [10.7 kB] 258s Get:16 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-aresponses all 3.0.0-2 [13.8 kB] 258s Get:17 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-directv all 0.4.0-2 [7796 B] 259s Fetched 934 kB in 1s (1562 kB/s) 259s Selecting previously unselected package python3-aiohappyeyeballs. 259s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 59616 files and directories currently installed.) 259s Preparing to unpack .../00-python3-aiohappyeyeballs_2.4.3-1_all.deb ... 259s Unpacking python3-aiohappyeyeballs (2.4.3-1) ... 259s Selecting previously unselected package python3-multidict. 259s Preparing to unpack .../01-python3-multidict_6.1.0-1build1_armhf.deb ... 259s Unpacking python3-multidict (6.1.0-1build1) ... 259s Selecting previously unselected package python3-yarl. 259s Preparing to unpack .../02-python3-yarl_1.13.1-1build1_armhf.deb ... 259s Unpacking python3-yarl (1.13.1-1build1) ... 259s Selecting previously unselected package python3-async-timeout. 259s Preparing to unpack .../03-python3-async-timeout_4.0.3-1_all.deb ... 259s Unpacking python3-async-timeout (4.0.3-1) ... 259s Selecting previously unselected package python3-frozenlist. 259s Preparing to unpack .../04-python3-frozenlist_1.5.0-1build1_armhf.deb ... 259s Unpacking python3-frozenlist (1.5.0-1build1) ... 259s Selecting previously unselected package python3-aiosignal. 259s Preparing to unpack .../05-python3-aiosignal_1.3.1-1_all.deb ... 259s Unpacking python3-aiosignal (1.3.1-1) ... 259s Selecting previously unselected package python3-aiohttp. 259s Preparing to unpack .../06-python3-aiohttp_3.10.10-2build1_armhf.deb ... 259s Unpacking python3-aiohttp (3.10.10-2build1) ... 259s Selecting previously unselected package python3-all. 259s Preparing to unpack .../07-python3-all_3.12.6-0ubuntu1_armhf.deb ... 259s Unpacking python3-all (3.12.6-0ubuntu1) ... 259s Selecting previously unselected package python3-async-generator. 259s Preparing to unpack .../08-python3-async-generator_1.10-4_all.deb ... 259s Unpacking python3-async-generator (1.10-4) ... 259s Selecting previously unselected package python3-iniconfig. 259s Preparing to unpack .../09-python3-iniconfig_1.1.1-2_all.deb ... 259s Unpacking python3-iniconfig (1.1.1-2) ... 259s Selecting previously unselected package python3-packaging. 259s Preparing to unpack .../10-python3-packaging_24.2-1_all.deb ... 259s Unpacking python3-packaging (24.2-1) ... 259s Selecting previously unselected package python3-pluggy. 259s Preparing to unpack .../11-python3-pluggy_1.5.0-1_all.deb ... 259s Unpacking python3-pluggy (1.5.0-1) ... 259s Selecting previously unselected package python3-pytest. 259s Preparing to unpack .../12-python3-pytest_8.3.3-1_all.deb ... 259s Unpacking python3-pytest (8.3.3-1) ... 259s Selecting previously unselected package python3-pytest-asyncio. 260s Preparing to unpack .../13-python3-pytest-asyncio_0.20.3-1.3_all.deb ... 260s Unpacking python3-pytest-asyncio (0.20.3-1.3) ... 260s Selecting previously unselected package python3-aresponses. 260s Preparing to unpack .../14-python3-aresponses_3.0.0-2_all.deb ... 260s Unpacking python3-aresponses (3.0.0-2) ... 260s Selecting previously unselected package python3-directv. 260s Preparing to unpack .../15-python3-directv_0.4.0-2_all.deb ... 260s Unpacking python3-directv (0.4.0-2) ... 260s Selecting previously unselected package autopkgtest-satdep. 260s Preparing to unpack .../16-1-autopkgtest-satdep.deb ... 260s Unpacking autopkgtest-satdep (0) ... 260s Setting up python3-iniconfig (1.1.1-2) ... 260s Setting up python3-async-generator (1.10-4) ... 260s Setting up python3-all (3.12.6-0ubuntu1) ... 260s Setting up python3-multidict (6.1.0-1build1) ... 260s Setting up python3-frozenlist (1.5.0-1build1) ... 261s Setting up python3-aiosignal (1.3.1-1) ... 261s Setting up python3-async-timeout (4.0.3-1) ... 261s Setting up python3-packaging (24.2-1) ... 261s Setting up python3-aiohappyeyeballs (2.4.3-1) ... 262s Setting up python3-pluggy (1.5.0-1) ... 262s Setting up python3-yarl (1.13.1-1build1) ... 262s Setting up python3-pytest (8.3.3-1) ... 263s Setting up python3-aiohttp (3.10.10-2build1) ... 263s Setting up python3-pytest-asyncio (0.20.3-1.3) ... 263s Setting up python3-aresponses (3.0.0-2) ... 263s Setting up python3-directv (0.4.0-2) ... 264s Setting up autopkgtest-satdep (0) ... 264s Processing triggers for man-db (2.13.0-1) ... 277s (Reading database ... 60038 files and directories currently installed.) 277s Removing autopkgtest-satdep (0) ... 283s autopkgtest [20:36:20]: test run-tests: [----------------------- 287s ============================= test session starts ============================== 287s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.12 287s cachedir: .pytest_cache 287s rootdir: /tmp/autopkgtest.HsIskt/autopkgtest_tmp 287s plugins: typeguard-4.4.1, asyncio-0.20.3, aresponses-3.0.0 287s asyncio: mode=Mode.AUTO 287s collecting ... collected 36 items 287s 287s tests/test_directv.py::test_json_request PASSED [ 2%] 287s tests/test_directv.py::test_authenticated_request PASSED [ 5%] 287s tests/test_directv.py::test_text_request PASSED [ 8%] 287s tests/test_directv.py::test_internal_session PASSED [ 11%] 287s tests/test_directv.py::test_request_port PASSED [ 13%] 288s tests/test_directv.py::test_timeout PASSED [ 16%] 288s tests/test_directv.py::test_client_error FAILED [ 19%] 288s 288s =================================== FAILURES =================================== 288s ______________________________ test_client_error _______________________________ 288s 288s @pytest.mark.asyncio 288s async def test_client_error(): 288s """Test http client error.""" 288s async with ClientSession() as session: 288s dtv = DIRECTV("#", session=session) 288s with pytest.raises(DIRECTVConnectionError): 288s > assert await dtv._request("/info/getVersion") 288s 288s tests/test_directv.py:139: 288s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 288s /usr/lib/python3/dist-packages/directv/directv.py:59: in _request 288s url = URL.build( 288s /usr/lib/python3/dist-packages/yarl/_url.py:385: in build 288s netloc = cls._make_netloc( 288s /usr/lib/python3/dist-packages/yarl/_url.py:1057: in _make_netloc 288s ret = cls._encode_host(host) 288s /usr/lib/python3/dist-packages/yarl/_url.py:1038: in _encode_host 288s _host_validate(host) 288s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 288s 288s host = '#' 288s 288s @lru_cache(_MAXCACHE) 288s def _host_validate(host: str) -> None: 288s """Validate an ascii host name.""" 288s invalid = _not_reg_name.search(host) 288s if invalid is None: 288s return 288s value, pos, extra = invalid.group(), invalid.start(), "" 288s if value == "@" or (value == ":" and "@" in host[pos:]): 288s # this looks like an authority string 288s extra = ( 288s ", if the value includes a username or password, " 288s "use 'authority' instead of 'host'" 288s ) 288s > raise ValueError( 288s f"Host {host!r} cannot contain {value!r} (at position " f"{pos}){extra}" 288s ) from None 288s E ValueError: Host '#' cannot contain '#' (at position 0) 288s 288s /usr/lib/python3/dist-packages/yarl/_url.py:1607: ValueError 288s =============================== warnings summary =============================== 288s ../../../usr/lib/python3/dist-packages/directv/models.py:128 288s /usr/lib/python3/dist-packages/directv/models.py:128: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 288s at: datetime = datetime.utcnow() 288s 288s tests/test_directv.py::test_json_request 288s tests/test_directv.py::test_authenticated_request 288s tests/test_directv.py::test_text_request 288s tests/test_directv.py::test_internal_session 288s tests/test_directv.py::test_request_port 288s tests/test_directv.py::test_timeout 288s /usr/lib/python3/dist-packages/directv/directv.py:77: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead 288s with async_timeout.timeout(self.request_timeout): 288s 288s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 288s =========================== short test summary info ============================ 288s FAILED tests/test_directv.py::test_client_error - ValueError: Host '#' cannot... 288s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 288s =================== 1 failed, 6 passed, 7 warnings in 1.35s ==================== 288s autopkgtest [20:36:25]: test run-tests: -----------------------] 293s run-tests FAIL non-zero exit status 1 293s autopkgtest [20:36:30]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 297s autopkgtest [20:36:34]: @@@@@@@@@@@@@@@@@@@@ summary 297s run-tests FAIL non-zero exit status 1