0s autopkgtest [17:07:22]: starting date and time: 2024-11-15 17:07:22+0000 0s autopkgtest [17:07:22]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [17:07:22]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.0q238jdj/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.197 lxd-armhf-10.145.243.197:autopkgtest/ubuntu/plucky/armhf 53s autopkgtest [17:08:15]: testbed dpkg architecture: armhf 55s autopkgtest [17:08:17]: testbed apt version: 2.9.8 55s autopkgtest [17:08:17]: @@@@@@@@@@@@@@@@@@@@ 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/restricted Sources [7016 B] 64s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [1052 kB] 64s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.5 kB] 64s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [94.2 kB] 64s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [146 kB] 64s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [751 kB] 64s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [4428 B] 64s Fetched 2144 kB in 1s (2333 kB/s) 64s Reading package lists... 81s tee: /proc/self/fd/2: Permission denied 103s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 103s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 103s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 103s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 104s Reading package lists... 104s Reading package lists... 104s Building dependency tree... 104s Reading state information... 105s Calculating upgrade... 106s The following packages will be upgraded: 106s python3-markupsafe 106s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 106s Need to get 12.5 kB of archives. 106s After this operation, 10.2 kB of additional disk space will be used. 106s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf python3-markupsafe armhf 2.1.5-1build3 [12.5 kB] 106s Fetched 12.5 kB in 0s (86.4 kB/s) 106s (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 ... 59566 files and directories currently installed.) 106s Preparing to unpack .../python3-markupsafe_2.1.5-1build3_armhf.deb ... 106s Unpacking python3-markupsafe (2.1.5-1build3) over (2.1.5-1build2) ... 106s Setting up python3-markupsafe (2.1.5-1build3) ... 107s Reading package lists... 107s Building dependency tree... 107s Reading state information... 108s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 110s autopkgtest [17:09:12]: rebooting testbed after setup commands that affected boot 178s autopkgtest [17:10:20]: testbed running kernel: Linux 6.8.0-48-generic #48~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 7 11:49:53 UTC 2 207s autopkgtest [17:10:49]: @@@@@@@@@@@@@@@@@@@@ apt-source python-directv 217s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (dsc) [2349 B] 217s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (tar) [19.1 kB] 217s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (diff) [2440 B] 217s gpgv: Signature made Fri Aug 2 01:08:32 2024 UTC 217s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 217s gpgv: Can't check signature: No public key 217s dpkg-source: warning: cannot verify inline signature for ./python-directv_0.4.0-2.dsc: no acceptable signature found 217s autopkgtest [17:10:59]: testing package python-directv version 0.4.0-2 219s autopkgtest [17:11:01]: build not needed 221s autopkgtest [17:11:03]: test run-tests: preparing testbed 231s Reading package lists... 232s Building dependency tree... 232s Reading state information... 232s Starting pkgProblemResolver with broken count: 0 232s Starting 2 pkgProblemResolver with broken count: 0 232s Done 233s The following additional packages will be installed: 233s python3-aiohappyeyeballs python3-aiohttp python3-aiosignal python3-all 233s python3-aresponses python3-async-generator python3-async-timeout 233s python3-directv python3-frozenlist python3-iniconfig python3-multidict 233s python3-packaging python3-pluggy python3-pytest python3-pytest-asyncio 233s python3-yarl 233s Recommended packages: 233s libjs-jquery python3-aiodns 233s The following NEW packages will be installed: 233s autopkgtest-satdep python3-aiohappyeyeballs python3-aiohttp 233s python3-aiosignal python3-all python3-aresponses python3-async-generator 233s python3-async-timeout python3-directv python3-frozenlist python3-iniconfig 233s python3-multidict python3-packaging python3-pluggy python3-pytest 233s python3-pytest-asyncio python3-yarl 233s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 233s Need to get 908 kB/909 kB of archives. 233s After this operation, 4133 kB of additional disk space will be used. 233s Get:1 /tmp/autopkgtest.ikPhAG/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [740 B] 233s Get:2 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-aiohappyeyeballs all 2.4.3-1 [10.5 kB] 233s Get:3 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-multidict armhf 6.1.0-1 [31.3 kB] 233s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf python3-yarl armhf 1.13.1-1build1 [111 kB] 233s Get:5 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-async-timeout all 4.0.3-1 [6412 B] 233s Get:6 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-frozenlist armhf 1.5.0-1 [43.8 kB] 233s Get:7 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-aiosignal all 1.3.1-1 [5172 B] 233s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf python3-aiohttp armhf 3.10.10-2build1 [330 kB] 234s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf python3-all armhf 3.12.6-0ubuntu1 [886 B] 234s Get:10 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-async-generator all 1.10-4 [17.5 kB] 234s Get:11 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 234s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf python3-packaging all 24.1-1 [41.4 kB] 234s Get:13 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 234s Get:14 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest all 8.3.3-1 [251 kB] 234s Get:15 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest-asyncio all 0.20.3-1.3 [10.7 kB] 234s Get:16 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-aresponses all 3.0.0-2 [13.8 kB] 234s Get:17 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-directv all 0.4.0-2 [7796 B] 234s Fetched 908 kB in 1s (918 kB/s) 234s Selecting previously unselected package python3-aiohappyeyeballs. 234s (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 ... 59567 files and directories currently installed.) 234s Preparing to unpack .../00-python3-aiohappyeyeballs_2.4.3-1_all.deb ... 234s Unpacking python3-aiohappyeyeballs (2.4.3-1) ... 234s Selecting previously unselected package python3-multidict. 234s Preparing to unpack .../01-python3-multidict_6.1.0-1_armhf.deb ... 234s Unpacking python3-multidict (6.1.0-1) ... 234s Selecting previously unselected package python3-yarl. 234s Preparing to unpack .../02-python3-yarl_1.13.1-1build1_armhf.deb ... 234s Unpacking python3-yarl (1.13.1-1build1) ... 235s Selecting previously unselected package python3-async-timeout. 235s Preparing to unpack .../03-python3-async-timeout_4.0.3-1_all.deb ... 235s Unpacking python3-async-timeout (4.0.3-1) ... 235s Selecting previously unselected package python3-frozenlist. 235s Preparing to unpack .../04-python3-frozenlist_1.5.0-1_armhf.deb ... 235s Unpacking python3-frozenlist (1.5.0-1) ... 235s Selecting previously unselected package python3-aiosignal. 235s Preparing to unpack .../05-python3-aiosignal_1.3.1-1_all.deb ... 235s Unpacking python3-aiosignal (1.3.1-1) ... 235s Selecting previously unselected package python3-aiohttp. 235s Preparing to unpack .../06-python3-aiohttp_3.10.10-2build1_armhf.deb ... 235s Unpacking python3-aiohttp (3.10.10-2build1) ... 235s Selecting previously unselected package python3-all. 235s Preparing to unpack .../07-python3-all_3.12.6-0ubuntu1_armhf.deb ... 235s Unpacking python3-all (3.12.6-0ubuntu1) ... 235s Selecting previously unselected package python3-async-generator. 235s Preparing to unpack .../08-python3-async-generator_1.10-4_all.deb ... 235s Unpacking python3-async-generator (1.10-4) ... 235s Selecting previously unselected package python3-iniconfig. 235s Preparing to unpack .../09-python3-iniconfig_1.1.1-2_all.deb ... 235s Unpacking python3-iniconfig (1.1.1-2) ... 235s Selecting previously unselected package python3-packaging. 235s Preparing to unpack .../10-python3-packaging_24.1-1_all.deb ... 235s Unpacking python3-packaging (24.1-1) ... 235s Selecting previously unselected package python3-pluggy. 235s Preparing to unpack .../11-python3-pluggy_1.5.0-1_all.deb ... 235s Unpacking python3-pluggy (1.5.0-1) ... 235s Selecting previously unselected package python3-pytest. 235s Preparing to unpack .../12-python3-pytest_8.3.3-1_all.deb ... 235s Unpacking python3-pytest (8.3.3-1) ... 235s Selecting previously unselected package python3-pytest-asyncio. 235s Preparing to unpack .../13-python3-pytest-asyncio_0.20.3-1.3_all.deb ... 235s Unpacking python3-pytest-asyncio (0.20.3-1.3) ... 235s Selecting previously unselected package python3-aresponses. 235s Preparing to unpack .../14-python3-aresponses_3.0.0-2_all.deb ... 235s Unpacking python3-aresponses (3.0.0-2) ... 235s Selecting previously unselected package python3-directv. 235s Preparing to unpack .../15-python3-directv_0.4.0-2_all.deb ... 235s Unpacking python3-directv (0.4.0-2) ... 235s Selecting previously unselected package autopkgtest-satdep. 235s Preparing to unpack .../16-1-autopkgtest-satdep.deb ... 235s Unpacking autopkgtest-satdep (0) ... 235s Setting up python3-iniconfig (1.1.1-2) ... 235s Setting up python3-async-generator (1.10-4) ... 235s Setting up python3-all (3.12.6-0ubuntu1) ... 235s Setting up python3-multidict (6.1.0-1) ... 235s Setting up python3-frozenlist (1.5.0-1) ... 235s Setting up python3-aiosignal (1.3.1-1) ... 236s Setting up python3-async-timeout (4.0.3-1) ... 236s Setting up python3-packaging (24.1-1) ... 236s Setting up python3-aiohappyeyeballs (2.4.3-1) ... 236s Setting up python3-pluggy (1.5.0-1) ... 236s Setting up python3-yarl (1.13.1-1build1) ... 236s Setting up python3-pytest (8.3.3-1) ... 237s Setting up python3-aiohttp (3.10.10-2build1) ... 237s Setting up python3-pytest-asyncio (0.20.3-1.3) ... 237s Setting up python3-aresponses (3.0.0-2) ... 237s Setting up python3-directv (0.4.0-2) ... 237s Setting up autopkgtest-satdep (0) ... 237s Processing triggers for man-db (2.13.0-1) ... 250s (Reading database ... 59984 files and directories currently installed.) 250s Removing autopkgtest-satdep (0) ... 256s autopkgtest [17:11:38]: test run-tests: [----------------------- 258s ============================= test session starts ============================== 258s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.12 258s cachedir: .pytest_cache 258s rootdir: /tmp/autopkgtest.ikPhAG/autopkgtest_tmp 258s plugins: typeguard-4.4.1, asyncio-0.20.3, aresponses-3.0.0 258s asyncio: mode=Mode.AUTO 258s collecting ... collected 36 items 258s 258s tests/test_directv.py::test_json_request PASSED [ 2%] 258s tests/test_directv.py::test_authenticated_request PASSED [ 5%] 258s tests/test_directv.py::test_text_request PASSED [ 8%] 258s tests/test_directv.py::test_internal_session PASSED [ 11%] 259s tests/test_directv.py::test_request_port PASSED [ 13%] 259s tests/test_directv.py::test_timeout PASSED [ 16%] 260s tests/test_directv.py::test_client_error FAILED [ 19%] 260s 260s =================================== FAILURES =================================== 260s ______________________________ test_client_error _______________________________ 260s 260s @pytest.mark.asyncio 260s async def test_client_error(): 260s """Test http client error.""" 260s async with ClientSession() as session: 260s dtv = DIRECTV("#", session=session) 260s with pytest.raises(DIRECTVConnectionError): 260s > assert await dtv._request("/info/getVersion") 260s 260s tests/test_directv.py:139: 260s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 260s /usr/lib/python3/dist-packages/directv/directv.py:59: in _request 260s url = URL.build( 260s /usr/lib/python3/dist-packages/yarl/_url.py:385: in build 260s netloc = cls._make_netloc( 260s /usr/lib/python3/dist-packages/yarl/_url.py:1057: in _make_netloc 260s ret = cls._encode_host(host) 260s /usr/lib/python3/dist-packages/yarl/_url.py:1038: in _encode_host 260s _host_validate(host) 260s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 260s 260s host = '#' 260s 260s @lru_cache(_MAXCACHE) 260s def _host_validate(host: str) -> None: 260s """Validate an ascii host name.""" 260s invalid = _not_reg_name.search(host) 260s if invalid is None: 260s return 260s value, pos, extra = invalid.group(), invalid.start(), "" 260s if value == "@" or (value == ":" and "@" in host[pos:]): 260s # this looks like an authority string 260s extra = ( 260s ", if the value includes a username or password, " 260s "use 'authority' instead of 'host'" 260s ) 260s > raise ValueError( 260s f"Host {host!r} cannot contain {value!r} (at position " f"{pos}){extra}" 260s ) from None 260s E ValueError: Host '#' cannot contain '#' (at position 0) 260s 260s /usr/lib/python3/dist-packages/yarl/_url.py:1607: ValueError 260s =============================== warnings summary =============================== 260s ../../../usr/lib/python3/dist-packages/directv/models.py:128 260s /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). 260s at: datetime = datetime.utcnow() 260s 260s tests/test_directv.py::test_json_request 260s tests/test_directv.py::test_authenticated_request 260s tests/test_directv.py::test_text_request 260s tests/test_directv.py::test_internal_session 260s tests/test_directv.py::test_request_port 260s tests/test_directv.py::test_timeout 260s /usr/lib/python3/dist-packages/directv/directv.py:77: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead 260s with async_timeout.timeout(self.request_timeout): 260s 260s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 260s =========================== short test summary info ============================ 260s FAILED tests/test_directv.py::test_client_error - ValueError: Host '#' cannot... 260s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 260s =================== 1 failed, 6 passed, 7 warnings in 1.23s ==================== 260s autopkgtest [17:11:42]: test run-tests: -----------------------] 264s autopkgtest [17:11:46]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 264s run-tests FAIL non-zero exit status 1 268s autopkgtest [17:11:50]: @@@@@@@@@@@@@@@@@@@@ summary 268s run-tests FAIL non-zero exit status 1