0s autopkgtest [17:02:51]: starting date and time: 2024-11-15 17:02:51+0000 0s autopkgtest [17:02:51]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [17:02:51]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.f_56zcxi/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --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' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor builder-cpu2-ram4-disk20 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-32.secgroup --name adt-plucky-amd64-python-directv-20241115-170251-juju-7f2275-prod-proposed-migration-environment-20-5afe4d4d-681f-4d7a-b54b-859dbba95ea2 --image adt/ubuntu-plucky-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-amd64 -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_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'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 49s autopkgtest [17:03:40]: testbed dpkg architecture: amd64 49s autopkgtest [17:03:40]: testbed apt version: 2.9.8 49s autopkgtest [17:03:40]: @@@@@@@@@@@@@@@@@@@@ test bed setup 50s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 51s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [94.2 kB] 51s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [1052 kB] 51s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 51s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.5 kB] 51s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main i386 Packages [111 kB] 51s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 Packages [178 kB] 51s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted amd64 Packages [32.6 kB] 51s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 Packages [825 kB] 51s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe i386 Packages [299 kB] 51s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse i386 Packages [740 B] 51s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse amd64 Packages [9416 B] 51s Fetched 2699 kB in 1s (3133 kB/s) 51s Reading package lists... 53s Reading package lists... 54s Building dependency tree... 54s Reading state information... 54s Calculating upgrade... 54s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 54s Reading package lists... 55s Building dependency tree... 55s Reading state information... 55s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 56s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 56s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 56s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 56s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 56s Reading package lists... 56s Reading package lists... 57s Building dependency tree... 57s Reading state information... 57s Calculating upgrade... 57s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 57s Reading package lists... 58s Building dependency tree... 58s Reading state information... 58s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 61s autopkgtest [17:03:52]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 61s autopkgtest [17:03:52]: @@@@@@@@@@@@@@@@@@@@ apt-source python-directv 63s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (dsc) [2349 B] 63s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (tar) [19.1 kB] 63s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-directv 0.4.0-2 (diff) [2440 B] 63s gpgv: Signature made Fri Aug 2 01:08:32 2024 UTC 63s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 63s gpgv: Can't check signature: No public key 63s dpkg-source: warning: cannot verify inline signature for ./python-directv_0.4.0-2.dsc: no acceptable signature found 63s autopkgtest [17:03:54]: testing package python-directv version 0.4.0-2 63s autopkgtest [17:03:54]: build not needed 63s autopkgtest [17:03:54]: test run-tests: preparing testbed 70s Reading package lists... 70s Building dependency tree... 70s Reading state information... 70s Starting pkgProblemResolver with broken count: 0 70s Starting 2 pkgProblemResolver with broken count: 0 70s Done 70s The following additional packages will be installed: 70s python3-aiohappyeyeballs python3-aiohttp python3-aiosignal python3-all 70s python3-aresponses python3-async-generator python3-async-timeout 70s python3-directv python3-frozenlist python3-iniconfig python3-multidict 70s python3-packaging python3-pluggy python3-pytest python3-pytest-asyncio 70s python3-yarl 70s Recommended packages: 70s libjs-jquery python3-aiodns 70s The following NEW packages will be installed: 70s autopkgtest-satdep python3-aiohappyeyeballs python3-aiohttp 70s python3-aiosignal python3-all python3-aresponses python3-async-generator 70s python3-async-timeout python3-directv python3-frozenlist python3-iniconfig 70s python3-multidict python3-packaging python3-pluggy python3-pytest 70s python3-pytest-asyncio python3-yarl 71s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 71s Need to get 984 kB/985 kB of archives. 71s After this operation, 5030 kB of additional disk space will be used. 71s Get:1 /tmp/autopkgtest.xsuiAw/1-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [736 B] 71s Get:2 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-aiohappyeyeballs all 2.4.3-1 [10.5 kB] 71s Get:3 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-multidict amd64 6.1.0-1 [34.3 kB] 71s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 python3-yarl amd64 1.13.1-1build1 [127 kB] 71s Get:5 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-async-timeout all 4.0.3-1 [6412 B] 71s Get:6 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-frozenlist amd64 1.5.0-1 [53.2 kB] 71s Get:7 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-aiosignal all 1.3.1-1 [5172 B] 71s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 python3-aiohttp amd64 3.10.10-2build1 [377 kB] 71s Get:9 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-all amd64 3.12.6-0ubuntu1 [886 B] 71s Get:10 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-async-generator all 1.10-4 [17.5 kB] 71s Get:11 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-iniconfig all 1.1.1-2 [6024 B] 71s Get:12 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-packaging all 24.1-1 [41.4 kB] 71s Get:13 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pluggy all 1.5.0-1 [21.0 kB] 71s Get:14 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pytest all 8.3.3-1 [251 kB] 71s Get:15 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pytest-asyncio all 0.20.3-1.3 [10.7 kB] 71s Get:16 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-aresponses all 3.0.0-2 [13.8 kB] 71s Get:17 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-directv all 0.4.0-2 [7796 B] 71s Fetched 984 kB in 1s (1761 kB/s) 71s Selecting previously unselected package python3-aiohappyeyeballs. 72s (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 ... 75576 files and directories currently installed.) 72s Preparing to unpack .../00-python3-aiohappyeyeballs_2.4.3-1_all.deb ... 72s Unpacking python3-aiohappyeyeballs (2.4.3-1) ... 72s Selecting previously unselected package python3-multidict. 72s Preparing to unpack .../01-python3-multidict_6.1.0-1_amd64.deb ... 72s Unpacking python3-multidict (6.1.0-1) ... 72s Selecting previously unselected package python3-yarl. 72s Preparing to unpack .../02-python3-yarl_1.13.1-1build1_amd64.deb ... 72s Unpacking python3-yarl (1.13.1-1build1) ... 72s Selecting previously unselected package python3-async-timeout. 72s Preparing to unpack .../03-python3-async-timeout_4.0.3-1_all.deb ... 72s Unpacking python3-async-timeout (4.0.3-1) ... 72s Selecting previously unselected package python3-frozenlist. 72s Preparing to unpack .../04-python3-frozenlist_1.5.0-1_amd64.deb ... 72s Unpacking python3-frozenlist (1.5.0-1) ... 72s Selecting previously unselected package python3-aiosignal. 72s Preparing to unpack .../05-python3-aiosignal_1.3.1-1_all.deb ... 72s Unpacking python3-aiosignal (1.3.1-1) ... 72s Selecting previously unselected package python3-aiohttp. 72s Preparing to unpack .../06-python3-aiohttp_3.10.10-2build1_amd64.deb ... 72s Unpacking python3-aiohttp (3.10.10-2build1) ... 72s Selecting previously unselected package python3-all. 72s Preparing to unpack .../07-python3-all_3.12.6-0ubuntu1_amd64.deb ... 72s Unpacking python3-all (3.12.6-0ubuntu1) ... 72s Selecting previously unselected package python3-async-generator. 72s Preparing to unpack .../08-python3-async-generator_1.10-4_all.deb ... 72s Unpacking python3-async-generator (1.10-4) ... 72s Selecting previously unselected package python3-iniconfig. 72s Preparing to unpack .../09-python3-iniconfig_1.1.1-2_all.deb ... 72s Unpacking python3-iniconfig (1.1.1-2) ... 72s Selecting previously unselected package python3-packaging. 72s Preparing to unpack .../10-python3-packaging_24.1-1_all.deb ... 72s Unpacking python3-packaging (24.1-1) ... 72s Selecting previously unselected package python3-pluggy. 72s Preparing to unpack .../11-python3-pluggy_1.5.0-1_all.deb ... 72s Unpacking python3-pluggy (1.5.0-1) ... 72s Selecting previously unselected package python3-pytest. 72s Preparing to unpack .../12-python3-pytest_8.3.3-1_all.deb ... 72s Unpacking python3-pytest (8.3.3-1) ... 72s Selecting previously unselected package python3-pytest-asyncio. 72s Preparing to unpack .../13-python3-pytest-asyncio_0.20.3-1.3_all.deb ... 72s Unpacking python3-pytest-asyncio (0.20.3-1.3) ... 72s Selecting previously unselected package python3-aresponses. 72s Preparing to unpack .../14-python3-aresponses_3.0.0-2_all.deb ... 72s Unpacking python3-aresponses (3.0.0-2) ... 72s Selecting previously unselected package python3-directv. 72s Preparing to unpack .../15-python3-directv_0.4.0-2_all.deb ... 72s Unpacking python3-directv (0.4.0-2) ... 72s Selecting previously unselected package autopkgtest-satdep. 72s Preparing to unpack .../16-1-autopkgtest-satdep.deb ... 72s Unpacking autopkgtest-satdep (0) ... 72s Setting up python3-iniconfig (1.1.1-2) ... 72s Setting up python3-async-generator (1.10-4) ... 72s Setting up python3-all (3.12.6-0ubuntu1) ... 72s Setting up python3-multidict (6.1.0-1) ... 72s Setting up python3-frozenlist (1.5.0-1) ... 72s Setting up python3-aiosignal (1.3.1-1) ... 73s Setting up python3-async-timeout (4.0.3-1) ... 73s Setting up python3-packaging (24.1-1) ... 73s Setting up python3-aiohappyeyeballs (2.4.3-1) ... 73s Setting up python3-pluggy (1.5.0-1) ... 73s Setting up python3-yarl (1.13.1-1build1) ... 73s Setting up python3-pytest (8.3.3-1) ... 73s Setting up python3-aiohttp (3.10.10-2build1) ... 74s Setting up python3-pytest-asyncio (0.20.3-1.3) ... 74s Setting up python3-aresponses (3.0.0-2) ... 74s Setting up python3-directv (0.4.0-2) ... 74s Setting up autopkgtest-satdep (0) ... 74s Processing triggers for man-db (2.13.0-1) ... 77s (Reading database ... 75993 files and directories currently installed.) 77s Removing autopkgtest-satdep (0) ... 77s autopkgtest [17:04:08]: test run-tests: [----------------------- 78s ============================= test session starts ============================== 78s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.12 78s cachedir: .pytest_cache 78s rootdir: /tmp/autopkgtest.xsuiAw/autopkgtest_tmp 78s plugins: typeguard-4.4.1, asyncio-0.20.3, aresponses-3.0.0 78s asyncio: mode=Mode.AUTO 78s collecting ... collected 36 items 78s 78s tests/test_directv.py::test_json_request PASSED [ 2%] 78s tests/test_directv.py::test_authenticated_request PASSED [ 5%] 78s tests/test_directv.py::test_text_request PASSED [ 8%] 78s tests/test_directv.py::test_internal_session PASSED [ 11%] 78s tests/test_directv.py::test_request_port PASSED [ 13%] 79s tests/test_directv.py::test_timeout PASSED [ 16%] 79s tests/test_directv.py::test_client_error FAILED [ 19%] 79s 79s =================================== FAILURES =================================== 79s ______________________________ test_client_error _______________________________ 79s 79s @pytest.mark.asyncio 79s async def test_client_error(): 79s """Test http client error.""" 79s async with ClientSession() as session: 79s dtv = DIRECTV("#", session=session) 79s with pytest.raises(DIRECTVConnectionError): 79s > assert await dtv._request("/info/getVersion") 79s 79s tests/test_directv.py:139: 79s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 79s /usr/lib/python3/dist-packages/directv/directv.py:59: in _request 79s url = URL.build( 79s /usr/lib/python3/dist-packages/yarl/_url.py:385: in build 79s netloc = cls._make_netloc( 79s /usr/lib/python3/dist-packages/yarl/_url.py:1057: in _make_netloc 79s ret = cls._encode_host(host) 79s /usr/lib/python3/dist-packages/yarl/_url.py:1038: in _encode_host 79s _host_validate(host) 79s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 79s 79s host = '#' 79s 79s @lru_cache(_MAXCACHE) 79s def _host_validate(host: str) -> None: 79s """Validate an ascii host name.""" 79s invalid = _not_reg_name.search(host) 79s if invalid is None: 79s return 79s value, pos, extra = invalid.group(), invalid.start(), "" 79s if value == "@" or (value == ":" and "@" in host[pos:]): 79s # this looks like an authority string 79s extra = ( 79s ", if the value includes a username or password, " 79s "use 'authority' instead of 'host'" 79s ) 79s > raise ValueError( 79s f"Host {host!r} cannot contain {value!r} (at position " f"{pos}){extra}" 79s ) from None 79s E ValueError: Host '#' cannot contain '#' (at position 0) 79s 79s /usr/lib/python3/dist-packages/yarl/_url.py:1607: ValueError 79s =============================== warnings summary =============================== 79s ../../../usr/lib/python3/dist-packages/directv/models.py:128 79s /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). 79s at: datetime = datetime.utcnow() 79s 79s tests/test_directv.py::test_json_request 79s tests/test_directv.py::test_authenticated_request 79s tests/test_directv.py::test_text_request 79s tests/test_directv.py::test_internal_session 79s tests/test_directv.py::test_request_port 79s tests/test_directv.py::test_timeout 79s /usr/lib/python3/dist-packages/directv/directv.py:77: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead 79s with async_timeout.timeout(self.request_timeout): 79s 79s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 79s =========================== short test summary info ============================ 79s FAILED tests/test_directv.py::test_client_error - ValueError: Host '#' cannot... 79s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 79s =================== 1 failed, 6 passed, 7 warnings in 1.17s ==================== 79s autopkgtest [17:04:10]: test run-tests: -----------------------] 80s autopkgtest [17:04:11]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 80s run-tests FAIL non-zero exit status 1 80s autopkgtest [17:04:11]: @@@@@@@@@@@@@@@@@@@@ summary 80s run-tests FAIL non-zero exit status 1 93s nova [W] Skipping flock for amd64 93s Creating nova instance adt-plucky-amd64-python-directv-20241115-170251-juju-7f2275-prod-proposed-migration-environment-20-5afe4d4d-681f-4d7a-b54b-859dbba95ea2 from image adt/ubuntu-plucky-amd64-server-20241115.img (UUID 9bb4dd9c-454f-45da-a125-77b9d27ed145)...