0s autopkgtest [07:01:41]: starting date and time: 2025-02-19 07:01:41+0000 0s autopkgtest [07:01:41]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [07:01:41]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.tw2hk9oz/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python-marshmallow --apt-upgrade python-marshmallow-polyfield --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python-marshmallow/3.26.1-0.1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-ppc64el-26.secgroup --name adt-plucky-ppc64el-python-marshmallow-polyfield-20250219-070141-juju-7f2275-prod-proposed-migration-environment-20-fd51241c-93b0-4f46-bcbc-688219d3a651 --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-ppc64el -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,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 109s autopkgtest [07:03:30]: testbed dpkg architecture: ppc64el 109s autopkgtest [07:03:30]: testbed apt version: 2.9.29 109s autopkgtest [07:03:30]: @@@@@@@@@@@@@@@@@@@@ test bed setup 110s autopkgtest [07:03:31]: testbed release detected to be: None 110s autopkgtest [07:03:31]: updating testbed package index (apt update) 111s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 111s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 111s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 111s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 111s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.2 kB] 111s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 111s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [770 kB] 111s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.6 kB] 111s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [95.3 kB] 111s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted ppc64el Packages [760 B] 111s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [666 kB] 111s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [6324 B] 112s Fetched 1742 kB in 1s (1671 kB/s) 112s Reading package lists... 113s Reading package lists... 113s Building dependency tree... 113s Reading state information... 113s Calculating upgrade... 114s The following NEW packages will be installed: 114s libapt-pkg7.0 114s The following packages will be upgraded: 114s apt apt-utils dhcpcd-base rsyslog 114s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 114s Need to get 3731 kB of archives. 114s After this operation, 3926 kB of additional disk space will be used. 114s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libapt-pkg7.0 ppc64el 2.9.30 [1152 kB] 114s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el apt ppc64el 2.9.30 [1439 kB] 114s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el apt-utils ppc64el 2.9.30 [228 kB] 114s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el dhcpcd-base ppc64el 1:10.1.0-7 [280 kB] 114s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el rsyslog ppc64el 8.2412.0-2ubuntu1 [632 kB] 115s Fetched 3731 kB in 1s (5270 kB/s) 115s Selecting previously unselected package libapt-pkg7.0:ppc64el. 115s (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 ... 106322 files and directories currently installed.) 115s Preparing to unpack .../libapt-pkg7.0_2.9.30_ppc64el.deb ... 115s Unpacking libapt-pkg7.0:ppc64el (2.9.30) ... 115s Setting up libapt-pkg7.0:ppc64el (2.9.30) ... 115s (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 ... 106371 files and directories currently installed.) 115s Preparing to unpack .../apt_2.9.30_ppc64el.deb ... 115s Unpacking apt (2.9.30) over (2.9.29) ... 115s Setting up apt (2.9.30) ... 116s (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 ... 106371 files and directories currently installed.) 116s Preparing to unpack .../apt-utils_2.9.30_ppc64el.deb ... 116s Unpacking apt-utils (2.9.30) over (2.9.29) ... 116s Preparing to unpack .../dhcpcd-base_1%3a10.1.0-7_ppc64el.deb ... 116s Unpacking dhcpcd-base (1:10.1.0-7) over (1:10.1.0-6) ... 116s Preparing to unpack .../rsyslog_8.2412.0-2ubuntu1_ppc64el.deb ... 116s Unpacking rsyslog (8.2412.0-2ubuntu1) over (8.2412.0-1ubuntu1) ... 116s Setting up apt-utils (2.9.30) ... 116s Setting up rsyslog (8.2412.0-2ubuntu1) ... 116s info: The user `syslog' is already a member of `adm'. 117s Setting up dhcpcd-base (1:10.1.0-7) ... 117s Processing triggers for man-db (2.13.0-1) ... 119s Processing triggers for libc-bin (2.40-4ubuntu1) ... 120s Reading package lists... 120s Building dependency tree... 120s Reading state information... 120s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 120s autopkgtest [07:03:41]: upgrading testbed (apt dist-upgrade and autopurge) 120s Reading package lists... 121s Building dependency tree... 121s Reading state information... 121s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 121s Starting 2 pkgProblemResolver with broken count: 0 121s Done 121s Entering ResolveByKeep 121s 122s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 122s Reading package lists... 122s Building dependency tree... 122s Reading state information... 122s Starting pkgProblemResolver with broken count: 0 122s Starting 2 pkgProblemResolver with broken count: 0 122s Done 122s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 123s autopkgtest [07:03:44]: rebooting testbed after setup commands that affected boot 155s autopkgtest [07:04:16]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP Tue Feb 4 16:32:08 UTC 2025 158s autopkgtest [07:04:19]: @@@@@@@@@@@@@@@@@@@@ apt-source python-marshmallow-polyfield 160s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-marshmallow-polyfield 5.10-1 (dsc) [2324 B] 160s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-marshmallow-polyfield 5.10-1 (tar) [10.6 kB] 160s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-marshmallow-polyfield 5.10-1 (diff) [2696 B] 160s gpgv: Signature made Sat Sep 18 15:43:30 2021 UTC 160s gpgv: using RSA key 77C9619C49D6A2CDCDF2FFAA428304A1748DCC7A 160s gpgv: Can't check signature: No public key 160s dpkg-source: warning: cannot verify inline signature for ./python-marshmallow-polyfield_5.10-1.dsc: no acceptable signature found 160s autopkgtest [07:04:21]: testing package python-marshmallow-polyfield version 5.10-1 160s autopkgtest [07:04:21]: build not needed 161s autopkgtest [07:04:22]: test upstream-tests: preparing testbed 161s Reading package lists... 161s Building dependency tree... 161s Reading state information... 161s Starting pkgProblemResolver with broken count: 0 161s Starting 2 pkgProblemResolver with broken count: 0 161s Done 161s The following NEW packages will be installed: 161s python3-all python3-iniconfig python3-marshmallow 161s python3-marshmallow-polyfield python3-packaging python3-pluggy 161s python3-pytest python3.12 python3.12-minimal 162s 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 162s Need to get 3521 kB of archives. 162s After this operation, 11.8 MB of additional disk space will be used. 162s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12-minimal ppc64el 3.12.9-1 [2465 kB] 164s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12 ppc64el 3.12.9-1 [671 kB] 164s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-all ppc64el 3.13.1-1~exp2 [896 B] 164s Get:4 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 164s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 164s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el python3-marshmallow all 3.26.1-0.1 [47.5 kB] 164s Get:7 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-marshmallow-polyfield all 5.10-1 [6118 B] 164s Get:8 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 164s Get:9 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.4-1 [252 kB] 164s Fetched 3521 kB in 2s (1436 kB/s) 164s Selecting previously unselected package python3.12-minimal. 165s (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 ... 106371 files and directories currently installed.) 165s Preparing to unpack .../0-python3.12-minimal_3.12.9-1_ppc64el.deb ... 165s Unpacking python3.12-minimal (3.12.9-1) ... 165s Selecting previously unselected package python3.12. 165s Preparing to unpack .../1-python3.12_3.12.9-1_ppc64el.deb ... 165s Unpacking python3.12 (3.12.9-1) ... 165s Selecting previously unselected package python3-all. 165s Preparing to unpack .../2-python3-all_3.13.1-1~exp2_ppc64el.deb ... 165s Unpacking python3-all (3.13.1-1~exp2) ... 165s Selecting previously unselected package python3-iniconfig. 165s Preparing to unpack .../3-python3-iniconfig_1.1.1-2_all.deb ... 165s Unpacking python3-iniconfig (1.1.1-2) ... 165s Selecting previously unselected package python3-packaging. 165s Preparing to unpack .../4-python3-packaging_24.2-1_all.deb ... 165s Unpacking python3-packaging (24.2-1) ... 165s Selecting previously unselected package python3-marshmallow. 165s Preparing to unpack .../5-python3-marshmallow_3.26.1-0.1_all.deb ... 165s Unpacking python3-marshmallow (3.26.1-0.1) ... 165s Selecting previously unselected package python3-marshmallow-polyfield. 165s Preparing to unpack .../6-python3-marshmallow-polyfield_5.10-1_all.deb ... 165s Unpacking python3-marshmallow-polyfield (5.10-1) ... 165s Selecting previously unselected package python3-pluggy. 165s Preparing to unpack .../7-python3-pluggy_1.5.0-1_all.deb ... 165s Unpacking python3-pluggy (1.5.0-1) ... 165s Selecting previously unselected package python3-pytest. 165s Preparing to unpack .../8-python3-pytest_8.3.4-1_all.deb ... 165s Unpacking python3-pytest (8.3.4-1) ... 165s Setting up python3-iniconfig (1.1.1-2) ... 165s Setting up python3.12-minimal (3.12.9-1) ... 166s Setting up python3.12 (3.12.9-1) ... 167s Setting up python3-all (3.13.1-1~exp2) ... 167s Setting up python3-packaging (24.2-1) ... 167s Setting up python3-pluggy (1.5.0-1) ... 168s Setting up python3-pytest (8.3.4-1) ... 168s Setting up python3-marshmallow (3.26.1-0.1) ... 168s Setting up python3-marshmallow-polyfield (5.10-1) ... 169s Processing triggers for man-db (2.13.0-1) ... 169s Processing triggers for systemd (257.2-3ubuntu1) ... 170s autopkgtest [07:04:31]: test upstream-tests: [----------------------- 170s 'tests' -> '/tmp/autopkgtest.6jRujx/autopkgtest_tmp/tests' 170s 'tests/__init__.py' -> '/tmp/autopkgtest.6jRujx/autopkgtest_tmp/tests/__init__.py' 170s 'tests/polyclasses.py' -> '/tmp/autopkgtest.6jRujx/autopkgtest_tmp/tests/polyclasses.py' 170s 'tests/shapes.py' -> '/tmp/autopkgtest.6jRujx/autopkgtest_tmp/tests/shapes.py' 170s 'tests/test_deserialization.py' -> '/tmp/autopkgtest.6jRujx/autopkgtest_tmp/tests/test_deserialization.py' 170s 'tests/test_polyfield_base.py' -> '/tmp/autopkgtest.6jRujx/autopkgtest_tmp/tests/test_polyfield_base.py' 170s 'tests/test_serialization.py' -> '/tmp/autopkgtest.6jRujx/autopkgtest_tmp/tests/test_serialization.py' 171s Running testsuite with python3.12: 171s ============================= test session starts ============================== 171s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 171s rootdir: /tmp/autopkgtest.6jRujx/autopkgtest_tmp 171s plugins: typeguard-4.4.1 171s collected 19 items 171s 171s tests/test_deserialization.py ........... [ 57%] 171s tests/test_polyfield_base.py . [ 63%] 171s tests/test_serialization.py ..F.F.F [100%] 171s 171s =================================== FAILURES =================================== 171s _____________________ test_serializing_polyfield_rectangle _____________________ 171s 171s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 171s value = , key = 'shape' 171s obj = Sticker(shape=, image='marshmallow.png') 171s kwargs = {}, schema = 171s 171s def _serialize(self, value, key, obj, **kwargs): 171s if value is None: 171s return None 171s try: 171s if self.many: 171s res = [] 171s for v in value: 171s schema = self.serialization_schema_selector(v, obj) 171s schema.context.update(getattr(self, 'context', {})) 171s res.append(schema.dump(v)) 171s return res 171s else: 171s schema = self.serialization_schema_selector(value, obj) 171s > schema.context.update(getattr(self, 'context', {})) 171s E TypeError: 'NoneType' object is not iterable 171s 171s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:74: TypeError 171s 171s During handling of the above exception, another exception occurred: 171s 171s args_ = () 171s 171s def wrapped(*args_): 171s return [ 171s > func(*(args_ + (a,))) 171s for a in args 171s ] 171s 171s tests/polyclasses.py:15: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s tests/test_serialization.py:52: in test_serializing_polyfield_rectangle 171s rect_dict = field.serialize('shape', marshmallow_sticker) 171s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 171s return self._serialize(value, attr, obj, **kwargs) 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 171s value = , key = 'shape' 171s obj = Sticker(shape=, image='marshmallow.png') 171s kwargs = {}, schema = 171s 171s def _serialize(self, value, key, obj, **kwargs): 171s if value is None: 171s return None 171s try: 171s if self.many: 171s res = [] 171s for v in value: 171s schema = self.serialization_schema_selector(v, obj) 171s schema.context.update(getattr(self, 'context', {})) 171s res.append(schema.dump(v)) 171s return res 171s else: 171s schema = self.serialization_schema_selector(value, obj) 171s schema.context.update(getattr(self, 'context', {})) 171s return schema.dump(value) 171s except Exception as err: 171s > raise TypeError( 171s 'Failed to serialize object. Error: {0}\n' 171s ' Ensure the serialization_schema_selector exists and ' 171s ' returns a Schema and that schema' 171s ' can serialize this value {1}'.format(err, value)) 171s E TypeError: Failed to serialize object. Error: 'NoneType' object is not iterable 171s E Ensure the serialization_schema_selector exists and returns a Schema and that schema can serialize this value 171s 171s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:77: TypeError 171s _______________________ test_serializing_polyfield_many ________________________ 171s 171s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 171s value = [, ] 171s key = 'shapes' 171s obj = StickerCollection(shapes=[, ], image='marshmallow.png') 171s kwargs = {}, res = [], v = 171s schema = 171s 171s def _serialize(self, value, key, obj, **kwargs): 171s if value is None: 171s return None 171s try: 171s if self.many: 171s res = [] 171s for v in value: 171s schema = self.serialization_schema_selector(v, obj) 171s > schema.context.update(getattr(self, 'context', {})) 171s E TypeError: 'NoneType' object is not iterable 171s 171s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:69: TypeError 171s 171s During handling of the above exception, another exception occurred: 171s 171s args_ = () 171s 171s def wrapped(*args_): 171s return [ 171s > func(*(args_ + (a,))) 171s for a in args 171s ] 171s 171s tests/polyclasses.py:15: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s tests/test_serialization.py:79: in test_serializing_polyfield_many 171s shapes = field.serialize('shapes', marshmallow_sticker_collection) 171s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 171s return self._serialize(value, attr, obj, **kwargs) 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 171s value = [, ] 171s key = 'shapes' 171s obj = StickerCollection(shapes=[, ], image='marshmallow.png') 171s kwargs = {}, res = [], v = 171s schema = 171s 171s def _serialize(self, value, key, obj, **kwargs): 171s if value is None: 171s return None 171s try: 171s if self.many: 171s res = [] 171s for v in value: 171s schema = self.serialization_schema_selector(v, obj) 171s schema.context.update(getattr(self, 'context', {})) 171s res.append(schema.dump(v)) 171s return res 171s else: 171s schema = self.serialization_schema_selector(value, obj) 171s schema.context.update(getattr(self, 'context', {})) 171s return schema.dump(value) 171s except Exception as err: 171s > raise TypeError( 171s 'Failed to serialize object. Error: {0}\n' 171s ' Ensure the serialization_schema_selector exists and ' 171s ' returns a Schema and that schema' 171s ' can serialize this value {1}'.format(err, value)) 171s E TypeError: Failed to serialize object. Error: 'NoneType' object is not iterable 171s E Ensure the serialization_schema_selector exists and returns a Schema and that schema can serialize this value [, ] 171s 171s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:77: TypeError 171s __________________ test_serializing_polyfield_by_parent_type ___________________ 171s 171s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 171s value = , key = 'shape' 171s obj = Sticker(shape=, image='marshmallow.png', type='rectangle') 171s kwargs = {}, schema = 171s 171s def _serialize(self, value, key, obj, **kwargs): 171s if value is None: 171s return None 171s try: 171s if self.many: 171s res = [] 171s for v in value: 171s schema = self.serialization_schema_selector(v, obj) 171s schema.context.update(getattr(self, 'context', {})) 171s res.append(schema.dump(v)) 171s return res 171s else: 171s schema = self.serialization_schema_selector(value, obj) 171s > schema.context.update(getattr(self, 'context', {})) 171s E TypeError: 'NoneType' object is not iterable 171s 171s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:74: TypeError 171s 171s During handling of the above exception, another exception occurred: 171s 171s args_ = () 171s 171s def wrapped(*args_): 171s return [ 171s > func(*(args_ + (a,))) 171s for a in args 171s ] 171s 171s tests/polyclasses.py:15: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s tests/test_serialization.py:99: in test_serializing_polyfield_by_parent_type 171s rect_dict = field.serialize('shape', marshmallow_sticker) 171s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 171s return self._serialize(value, attr, obj, **kwargs) 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 171s value = , key = 'shape' 171s obj = Sticker(shape=, image='marshmallow.png', type='rectangle') 171s kwargs = {}, schema = 171s 171s def _serialize(self, value, key, obj, **kwargs): 171s if value is None: 171s return None 171s try: 171s if self.many: 171s res = [] 171s for v in value: 171s schema = self.serialization_schema_selector(v, obj) 171s schema.context.update(getattr(self, 'context', {})) 171s res.append(schema.dump(v)) 171s return res 171s else: 171s schema = self.serialization_schema_selector(value, obj) 171s schema.context.update(getattr(self, 'context', {})) 171s return schema.dump(value) 171s except Exception as err: 171s > raise TypeError( 171s 'Failed to serialize object. Error: {0}\n' 171s ' Ensure the serialization_schema_selector exists and ' 171s ' returns a Schema and that schema' 171s ' can serialize this value {1}'.format(err, value)) 171s E TypeError: Failed to serialize object. Error: 'NoneType' object is not iterable 171s E Ensure the serialization_schema_selector exists and returns a Schema and that schema can serialize this value 171s 171s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:77: TypeError 171s =============================== warnings summary =============================== 171s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_none 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_none returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_deserialization.py::TestPolyField::test_deserailize_polyfield_none_required 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserailize_polyfield_none_required returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_type_error 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_type_error returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_validation_error 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_validation_error returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_generic_error 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_generic_error returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_schema_returned_is_invalid 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_schema_returned_is_invalid returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_errors 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_errors returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_deserialization.py::TestPolyFieldDisambiguationByProperty::test_deserialize_polyfield 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyFieldDisambiguationByProperty::test_deserialize_polyfield returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_serialization.py::test_serializing_named_tuple 171s /tmp/autopkgtest.6jRujx/autopkgtest_tmp/tests/test_serialization.py:27: ChangedInMarshmallow4Warning: `Field` should not be instantiated. Use `fields.Raw` or another field subclass instead. 171s field = fields.Field() 171s 171s tests/test_serialization.py::test_serializing_polyfield_None 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_serialization.py::test_serializing_polyfield_None returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s tests/test_serialization.py::test_invalid_polyfield 171s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_serialization.py::test_invalid_polyfield returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 171s warnings.warn( 171s 171s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 171s =========================== short test summary info ============================ 171s FAILED tests/test_serialization.py::test_serializing_polyfield_rectangle - Ty... 171s FAILED tests/test_serialization.py::test_serializing_polyfield_many - TypeErr... 171s FAILED tests/test_serialization.py::test_serializing_polyfield_by_parent_type 171s ================== 3 failed, 16 passed, 12 warnings in 0.19s =================== 171s autopkgtest [07:04:32]: test upstream-tests: -----------------------] 172s upstream-tests FAIL non-zero exit status 1 172s autopkgtest [07:04:33]: test upstream-tests: - - - - - - - - - - results - - - - - - - - - - 172s autopkgtest [07:04:33]: test autodep8-python3: preparing testbed 251s autopkgtest [07:05:52]: testbed dpkg architecture: ppc64el 252s autopkgtest [07:05:53]: testbed apt version: 2.9.29 252s autopkgtest [07:05:53]: @@@@@@@@@@@@@@@@@@@@ test bed setup 252s autopkgtest [07:05:53]: testbed release detected to be: plucky 253s autopkgtest [07:05:54]: updating testbed package index (apt update) 253s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 254s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 254s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 254s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 254s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [770 kB] 254s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.2 kB] 254s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 254s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.6 kB] 254s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [95.3 kB] 254s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted ppc64el Packages [760 B] 254s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [666 kB] 254s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [6324 B] 254s Fetched 1742 kB in 1s (1585 kB/s) 255s Reading package lists... 256s Reading package lists... 256s Building dependency tree... 256s Reading state information... 256s Calculating upgrade... 257s The following NEW packages will be installed: 257s libapt-pkg7.0 257s The following packages will be upgraded: 257s apt apt-utils dhcpcd-base rsyslog 257s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 257s Need to get 3731 kB of archives. 257s After this operation, 3926 kB of additional disk space will be used. 257s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libapt-pkg7.0 ppc64el 2.9.30 [1152 kB] 257s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el apt ppc64el 2.9.30 [1439 kB] 257s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el apt-utils ppc64el 2.9.30 [228 kB] 257s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el dhcpcd-base ppc64el 1:10.1.0-7 [280 kB] 257s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el rsyslog ppc64el 8.2412.0-2ubuntu1 [632 kB] 258s Fetched 3731 kB in 1s (4781 kB/s) 258s Selecting previously unselected package libapt-pkg7.0:ppc64el. 258s (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 ... 106322 files and directories currently installed.) 258s Preparing to unpack .../libapt-pkg7.0_2.9.30_ppc64el.deb ... 258s Unpacking libapt-pkg7.0:ppc64el (2.9.30) ... 258s Setting up libapt-pkg7.0:ppc64el (2.9.30) ... 258s (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 ... 106371 files and directories currently installed.) 258s Preparing to unpack .../apt_2.9.30_ppc64el.deb ... 258s Unpacking apt (2.9.30) over (2.9.29) ... 259s Setting up apt (2.9.30) ... 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 ... 106371 files and directories currently installed.) 259s Preparing to unpack .../apt-utils_2.9.30_ppc64el.deb ... 259s Unpacking apt-utils (2.9.30) over (2.9.29) ... 259s Preparing to unpack .../dhcpcd-base_1%3a10.1.0-7_ppc64el.deb ... 259s Unpacking dhcpcd-base (1:10.1.0-7) over (1:10.1.0-6) ... 259s Preparing to unpack .../rsyslog_8.2412.0-2ubuntu1_ppc64el.deb ... 259s Unpacking rsyslog (8.2412.0-2ubuntu1) over (8.2412.0-1ubuntu1) ... 259s Setting up apt-utils (2.9.30) ... 259s Setting up rsyslog (8.2412.0-2ubuntu1) ... 260s info: The user `syslog' is already a member of `adm'. 261s Setting up dhcpcd-base (1:10.1.0-7) ... 261s Processing triggers for man-db (2.13.0-1) ... 264s Processing triggers for libc-bin (2.40-4ubuntu1) ... 265s Reading package lists... 265s Building dependency tree... 265s Reading state information... 266s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 266s autopkgtest [07:06:07]: upgrading testbed (apt dist-upgrade and autopurge) 266s Reading package lists... 266s Building dependency tree... 266s Reading state information... 266s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 266s Starting 2 pkgProblemResolver with broken count: 0 266s Done 267s Entering ResolveByKeep 267s 267s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 267s Reading package lists... 268s Building dependency tree... 268s Reading state information... 268s Starting pkgProblemResolver with broken count: 0 268s Starting 2 pkgProblemResolver with broken count: 0 268s Done 268s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 268s autopkgtest [07:06:09]: rebooting testbed after setup commands that affected boot 302s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 319s Reading package lists... 319s Building dependency tree... 319s Reading state information... 319s Starting pkgProblemResolver with broken count: 0 319s Starting 2 pkgProblemResolver with broken count: 0 319s Done 319s The following NEW packages will be installed: 319s python3-all python3-marshmallow python3-marshmallow-polyfield 319s python3-packaging python3.12 python3.12-minimal 319s 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. 319s Need to get 3242 kB of archives. 319s After this operation, 10.4 MB of additional disk space will be used. 319s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12-minimal ppc64el 3.12.9-1 [2465 kB] 320s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12 ppc64el 3.12.9-1 [671 kB] 320s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-all ppc64el 3.13.1-1~exp2 [896 B] 320s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 320s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el python3-marshmallow all 3.26.1-0.1 [47.5 kB] 320s Get:6 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-marshmallow-polyfield all 5.10-1 [6118 B] 320s Fetched 3242 kB in 1s (4126 kB/s) 320s Selecting previously unselected package python3.12-minimal. 321s (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 ... 106371 files and directories currently installed.) 321s Preparing to unpack .../0-python3.12-minimal_3.12.9-1_ppc64el.deb ... 321s Unpacking python3.12-minimal (3.12.9-1) ... 321s Selecting previously unselected package python3.12. 321s Preparing to unpack .../1-python3.12_3.12.9-1_ppc64el.deb ... 321s Unpacking python3.12 (3.12.9-1) ... 321s Selecting previously unselected package python3-all. 321s Preparing to unpack .../2-python3-all_3.13.1-1~exp2_ppc64el.deb ... 321s Unpacking python3-all (3.13.1-1~exp2) ... 321s Selecting previously unselected package python3-packaging. 321s Preparing to unpack .../3-python3-packaging_24.2-1_all.deb ... 321s Unpacking python3-packaging (24.2-1) ... 321s Selecting previously unselected package python3-marshmallow. 321s Preparing to unpack .../4-python3-marshmallow_3.26.1-0.1_all.deb ... 321s Unpacking python3-marshmallow (3.26.1-0.1) ... 321s Selecting previously unselected package python3-marshmallow-polyfield. 321s Preparing to unpack .../5-python3-marshmallow-polyfield_5.10-1_all.deb ... 321s Unpacking python3-marshmallow-polyfield (5.10-1) ... 321s Setting up python3.12-minimal (3.12.9-1) ... 322s Setting up python3.12 (3.12.9-1) ... 324s Setting up python3-all (3.13.1-1~exp2) ... 324s Setting up python3-packaging (24.2-1) ... 324s Setting up python3-marshmallow (3.26.1-0.1) ... 325s Setting up python3-marshmallow-polyfield (5.10-1) ... 325s Processing triggers for man-db (2.13.0-1) ... 325s Processing triggers for systemd (257.2-3ubuntu1) ... 327s autopkgtest [07:07:08]: test autodep8-python3: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import marshmallow_polyfield; print(marshmallow_polyfield)" ; done 327s autopkgtest [07:07:08]: test autodep8-python3: [----------------------- 328s Testing with python3.12: 328s 328s Testing with python3.13: 328s 328s autopkgtest [07:07:09]: test autodep8-python3: -----------------------] 329s autodep8-python3 PASS (superficial) 329s autopkgtest [07:07:10]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - - 329s autopkgtest [07:07:10]: @@@@@@@@@@@@@@@@@@@@ summary 329s upstream-tests FAIL non-zero exit status 1 329s autodep8-python3 PASS (superficial) 334s nova [W] Using flock in prodstack6-ppc64el 334s Creating nova instance adt-plucky-ppc64el-python-marshmallow-polyfield-20250219-070141-juju-7f2275-prod-proposed-migration-environment-20-fd51241c-93b0-4f46-bcbc-688219d3a651 from image adt/ubuntu-plucky-ppc64el-server-20250218.img (UUID 9318aa34-3d3c-43c5-86d2-aaf9390f2f5d)... 334s nova [W] Timed out waiting for 4e6a2b66-1d34-405b-b64c-4322074f1ebc to get deleted. 334s nova [W] Using flock in prodstack6-ppc64el 334s Creating nova instance adt-plucky-ppc64el-python-marshmallow-polyfield-20250219-070141-juju-7f2275-prod-proposed-migration-environment-20-fd51241c-93b0-4f46-bcbc-688219d3a651 from image adt/ubuntu-plucky-ppc64el-server-20250218.img (UUID 9318aa34-3d3c-43c5-86d2-aaf9390f2f5d)... 334s nova [W] Timed out waiting for a8e84e70-36fa-4e97-a5da-5a5d7a93e594 to get deleted.