0s autopkgtest [09:18:33]: starting date and time: 2025-01-18 09:18:33+0000 0s autopkgtest [09:18:33]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [09:18:33]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.u4ybtnzw/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:numcodecs --apt-upgrade zarr --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=numcodecs/0.15.0+ds-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-ppc64el-5.secgroup --name adt-plucky-ppc64el-zarr-20250118-091832-juju-7f2275-prod-proposed-migration-environment-2-a0dae0fa-fc90-4cd4-ac29-df8e8fb964fe --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --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/ 95s autopkgtest [09:20:08]: testbed dpkg architecture: ppc64el 95s autopkgtest [09:20:08]: testbed apt version: 2.9.18 95s autopkgtest [09:20:08]: @@@@@@@@@@@@@@@@@@@@ test bed setup 96s autopkgtest [09:20:09]: testbed release detected to be: None 96s autopkgtest [09:20:09]: updating testbed package index (apt update) 97s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 97s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 97s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 97s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 97s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [823 kB] 97s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [156 kB] 97s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.6 kB] 97s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [9708 B] 97s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [266 kB] 97s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted ppc64el Packages [756 B] 97s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [940 kB] 97s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [14.5 kB] 98s Fetched 2298 kB in 1s (1790 kB/s) 99s Reading package lists... 100s + lsb_release --codename --short 100s + RELEASE=plucky 100s + cat 100s + [ plucky != trusty ] 100s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y --allow-downgrades -o Dpkg::Options::=--force-confnew dist-upgrade 100s Reading package lists... 100s Building dependency tree... 100s Reading state information... 100s Calculating upgrade... 100s The following packages will be upgraded: 100s apport apport-core-dump-handler bash-completion python3-apport 100s python3-problem-report 101s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 101s Need to get 433 kB of archives. 101s After this operation, 0 B of additional disk space will be used. 101s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-problem-report all 2.31.0-0ubuntu3 [25.3 kB] 101s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-apport all 2.31.0-0ubuntu3 [93.1 kB] 101s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el apport-core-dump-handler all 2.31.0-0ubuntu3 [18.3 kB] 101s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el apport all 2.31.0-0ubuntu3 [83.0 kB] 101s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el bash-completion all 1:2.16.0-6 [214 kB] 101s Fetched 433 kB in 0s (910 kB/s) 102s (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 ... 74042 files and directories currently installed.) 102s Preparing to unpack .../python3-problem-report_2.31.0-0ubuntu3_all.deb ... 102s Unpacking python3-problem-report (2.31.0-0ubuntu3) over (2.31.0-0ubuntu2) ... 102s Preparing to unpack .../python3-apport_2.31.0-0ubuntu3_all.deb ... 102s Unpacking python3-apport (2.31.0-0ubuntu3) over (2.31.0-0ubuntu2) ... 102s Preparing to unpack .../apport-core-dump-handler_2.31.0-0ubuntu3_all.deb ... 102s Unpacking apport-core-dump-handler (2.31.0-0ubuntu3) over (2.31.0-0ubuntu2) ... 102s Preparing to unpack .../apport_2.31.0-0ubuntu3_all.deb ... 102s Unpacking apport (2.31.0-0ubuntu3) over (2.31.0-0ubuntu2) ... 102s Preparing to unpack .../bash-completion_1%3a2.16.0-6_all.deb ... 102s Unpacking bash-completion (1:2.16.0-6) over (1:2.16.0-3) ... 103s Setting up python3-problem-report (2.31.0-0ubuntu3) ... 103s Setting up python3-apport (2.31.0-0ubuntu3) ... 103s Setting up bash-completion (1:2.16.0-6) ... 103s Setting up apport-core-dump-handler (2.31.0-0ubuntu3) ... 105s Setting up apport (2.31.0-0ubuntu3) ... 106s apport-autoreport.service is a disabled or a static unit not running, not starting it. 106s Processing triggers for man-db (2.13.0-1) ... 107s + rm /etc/apt/preferences.d/force-downgrade-to-release.pref 107s + /usr/lib/apt/apt-helper analyze-pattern ?true 107s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y purge --autoremove ?obsolete 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. 108s + grep -q trusty /etc/lsb-release 108s + [ ! -d /usr/share/doc/unattended-upgrades ] 108s + [ ! -d /usr/share/doc/lxd ] 108s + [ ! -d /usr/share/doc/lxd-client ] 108s + [ ! -d /usr/share/doc/snapd ] 108s + type iptables 108s + cat 108s + chmod 755 /etc/rc.local 108s + . /etc/rc.local 108s + iptables -w -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 108s + iptables -A OUTPUT -d 10.255.255.1/32 -p tcp -j DROP 108s + iptables -A OUTPUT -d 10.255.255.2/32 -p tcp -j DROP 108s + uname -m 108s + [ ppc64le = ppc64le ] 108s + systemctl is-active keyboard-setup.service 108s + [ active = failed ] 108s + [ -d /run/systemd/system ] 108s + systemd-detect-virt --quiet --vm 108s + mkdir -p /etc/systemd/system/systemd-random-seed.service.d/ 108s + cat 108s + grep -q lz4 /etc/initramfs-tools/initramfs.conf 108s + echo COMPRESS=lz4 108s + sync 108s autopkgtest [09:20:21]: upgrading testbed (apt dist-upgrade and autopurge) 108s Reading package lists... 108s Building dependency tree... 108s Reading state information... 109s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 109s Starting 2 pkgProblemResolver with broken count: 0 109s Done 109s Entering ResolveByKeep 110s 110s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 110s Reading package lists... 110s Building dependency tree... 110s Reading state information... 111s Starting pkgProblemResolver with broken count: 0 111s Starting 2 pkgProblemResolver with broken count: 0 111s Done 111s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 112s autopkgtest [09:20:25]: rebooting testbed after setup commands that affected boot 146s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 167s autopkgtest [09:21:20]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 170s autopkgtest [09:21:23]: @@@@@@@@@@@@@@@@@@@@ apt-source zarr 173s Get:1 http://ftpmaster.internal/ubuntu plucky/universe zarr 2.18.4+ds-1 (dsc) [2647 B] 173s Get:2 http://ftpmaster.internal/ubuntu plucky/universe zarr 2.18.4+ds-1 (tar) [987 kB] 173s Get:3 http://ftpmaster.internal/ubuntu plucky/universe zarr 2.18.4+ds-1 (diff) [5680 B] 174s gpgv: Signature made Mon Dec 16 21:43:41 2024 UTC 174s gpgv: using RSA key 3B70F209A5FFD68903C472C5EBF48AB2578F9812 174s gpgv: issuer "antonio.valentino@tiscali.it" 174s gpgv: Can't check signature: No public key 174s dpkg-source: warning: cannot verify inline signature for ./zarr_2.18.4+ds-1.dsc: no acceptable signature found 174s autopkgtest [09:21:27]: testing package zarr version 2.18.4+ds-1 174s autopkgtest [09:21:27]: build not needed 175s autopkgtest [09:21:28]: test pybuild-autopkgtest: preparing testbed 175s Reading package lists... 175s Building dependency tree... 175s Reading state information... 176s Starting pkgProblemResolver with broken count: 0 176s Starting 2 pkgProblemResolver with broken count: 0 176s Done 176s The following NEW packages will be installed: 176s autoconf automake autopoint autotools-dev build-essential cpp cpp-14 176s cpp-14-powerpc64le-linux-gnu cpp-powerpc64le-linux-gnu debhelper debugedit 176s dh-autoreconf dh-python dh-strip-nondeterminism docutils-common dwz g++ 176s g++-14 g++-14-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu gcc gcc-14 176s gcc-14-powerpc64le-linux-gnu gcc-powerpc64le-linux-gnu gettext 176s intltool-debian libaec0 libarchive-zip-perl libasan8 libblas3 libblosc1 176s libcc1-0 libdebhelper-perl libfile-stripnondeterminism-perl libgcc-14-dev 176s libgfortran5 libgomp1 libhdf5-103-1t64 libhdf5-hl-100t64 libisl23 libitm1 176s libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl liblapack3 176s liblsan0 liblzf1 libmpc3 libpython3.13-minimal libpython3.13-stdlib 176s libquadmath0 libsnappy1v5 libstdc++-14-dev libsz2 libtool libtsan2 libubsan1 176s m4 po-debconf pybuild-plugin-autopkgtest pybuild-plugin-pyproject 176s python3-alabaster python3-all python3-asciitree python3-bs4 python3-build 176s python3-defusedxml python3-deprecated python3-docutils python3-fasteners 176s python3-fsspec python3-h5py python3-h5py-serial python3-imagesize 176s python3-iniconfig python3-installer python3-monotonic python3-msgpack 176s python3-numcodecs python3-numpy python3-numpydoc python3-packaging 176s python3-pluggy python3-pydata-sphinx-theme python3-pyproject-hooks 176s python3-pytest python3-pytest-doctestplus python3-pytest-timeout 176s python3-roman python3-setuptools-scm python3-snowballstemmer 176s python3-soupsieve python3-sphinx python3-sphinx-automodapi 176s python3-sphinx-copybutton python3-sphinx-design python3-sphinx-issues 176s python3-tabulate python3-toml python3-wheel python3-wrapt python3-zarr 176s python3.13 python3.13-minimal sgml-base sphinx-common xml-core 176s 0 upgraded, 108 newly installed, 0 to remove and 0 not upgraded. 176s Need to get 85.8 MB of archives. 176s After this operation, 361 MB of additional disk space will be used. 176s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-minimal ppc64el 3.13.1-2 [883 kB] 177s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-minimal ppc64el 3.13.1-2 [2496 kB] 178s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el sgml-base all 1.31 [11.4 kB] 178s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el m4 ppc64el 1.4.19-4build1 [278 kB] 178s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el autoconf all 2.72-3 [382 kB] 178s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el autotools-dev all 20220109.1 [44.9 kB] 178s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el automake all 1:1.16.5-1.3ubuntu1 [558 kB] 178s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el autopoint all 0.22.5-3 [616 kB] 178s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el libisl23 ppc64el 0.27-1 [882 kB] 178s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el libmpc3 ppc64el 1.3.1-1build2 [62.1 kB] 178s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-14-powerpc64le-linux-gnu ppc64el 14.2.0-13ubuntu1 [10.5 MB] 179s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-14 ppc64el 14.2.0-13ubuntu1 [1036 B] 179s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [5456 B] 179s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp ppc64el 4:14.1.0-2ubuntu1 [22.5 kB] 179s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el libcc1-0 ppc64el 14.2.0-13ubuntu1 [48.1 kB] 179s Get:16 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgomp1 ppc64el 14.2.0-13ubuntu1 [161 kB] 179s Get:17 http://ftpmaster.internal/ubuntu plucky/main ppc64el libitm1 ppc64el 14.2.0-13ubuntu1 [32.2 kB] 179s Get:18 http://ftpmaster.internal/ubuntu plucky/main ppc64el libasan8 ppc64el 14.2.0-13ubuntu1 [2945 kB] 179s Get:19 http://ftpmaster.internal/ubuntu plucky/main ppc64el liblsan0 ppc64el 14.2.0-13ubuntu1 [1322 kB] 179s Get:20 http://ftpmaster.internal/ubuntu plucky/main ppc64el libtsan2 ppc64el 14.2.0-13ubuntu1 [2695 kB] 180s Get:21 http://ftpmaster.internal/ubuntu plucky/main ppc64el libubsan1 ppc64el 14.2.0-13ubuntu1 [1191 kB] 180s Get:22 http://ftpmaster.internal/ubuntu plucky/main ppc64el libquadmath0 ppc64el 14.2.0-13ubuntu1 [158 kB] 180s Get:23 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgcc-14-dev ppc64el 14.2.0-13ubuntu1 [1620 kB] 180s Get:24 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-14-powerpc64le-linux-gnu ppc64el 14.2.0-13ubuntu1 [20.6 MB] 180s Get:25 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-14 ppc64el 14.2.0-13ubuntu1 [534 kB] 180s Get:26 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [1222 B] 180s Get:27 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc ppc64el 4:14.1.0-2ubuntu1 [5006 B] 180s Get:28 http://ftpmaster.internal/ubuntu plucky/main ppc64el libstdc++-14-dev ppc64el 14.2.0-13ubuntu1 [2677 kB] 181s Get:29 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-14-powerpc64le-linux-gnu ppc64el 14.2.0-13ubuntu1 [12.0 MB] 181s Get:30 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-14 ppc64el 14.2.0-13ubuntu1 [21.1 kB] 181s Get:31 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [968 B] 181s Get:32 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++ ppc64el 4:14.1.0-2ubuntu1 [1090 B] 181s Get:33 http://ftpmaster.internal/ubuntu plucky/main ppc64el build-essential ppc64el 12.10ubuntu1 [4936 B] 181s Get:34 http://ftpmaster.internal/ubuntu plucky/main ppc64el libdebhelper-perl all 13.20ubuntu1 [94.2 kB] 181s Get:35 http://ftpmaster.internal/ubuntu plucky/main ppc64el libtool all 2.4.7-8 [166 kB] 181s Get:36 http://ftpmaster.internal/ubuntu plucky/main ppc64el dh-autoreconf all 20 [16.1 kB] 181s Get:37 http://ftpmaster.internal/ubuntu plucky/main ppc64el libarchive-zip-perl all 1.68-1 [90.2 kB] 181s Get:38 http://ftpmaster.internal/ubuntu plucky/main ppc64el libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 181s Get:39 http://ftpmaster.internal/ubuntu plucky/main ppc64el dh-strip-nondeterminism all 1.14.0-1 [5058 B] 181s Get:40 http://ftpmaster.internal/ubuntu plucky/main ppc64el debugedit ppc64el 1:5.1-1 [52.1 kB] 181s Get:41 http://ftpmaster.internal/ubuntu plucky/main ppc64el dwz ppc64el 0.15-1build6 [142 kB] 181s Get:42 http://ftpmaster.internal/ubuntu plucky/main ppc64el gettext ppc64el 0.22.5-3 [1083 kB] 181s Get:43 http://ftpmaster.internal/ubuntu plucky/main ppc64el intltool-debian all 0.35.0+20060710.6 [23.2 kB] 181s Get:44 http://ftpmaster.internal/ubuntu plucky/main ppc64el po-debconf all 1.0.21+nmu1 [233 kB] 181s Get:45 http://ftpmaster.internal/ubuntu plucky/main ppc64el debhelper all 13.20ubuntu1 [893 kB] 181s Get:46 http://ftpmaster.internal/ubuntu plucky/universe ppc64el dh-python all 6.20241217 [117 kB] 181s Get:47 http://ftpmaster.internal/ubuntu plucky/main ppc64el xml-core all 0.19 [20.3 kB] 181s Get:48 http://ftpmaster.internal/ubuntu plucky/main ppc64el docutils-common all 0.21.2+dfsg-2 [131 kB] 181s Get:49 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libaec0 ppc64el 1.1.3-1 [30.1 kB] 181s Get:50 http://ftpmaster.internal/ubuntu plucky/main ppc64el libblas3 ppc64el 3.12.0-4 [222 kB] 181s Get:51 http://ftpmaster.internal/ubuntu plucky/main ppc64el libsnappy1v5 ppc64el 1.2.1-1 [33.4 kB] 181s Get:52 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libblosc1 ppc64el 1.21.5+ds-1build1 [38.5 kB] 181s Get:53 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgfortran5 ppc64el 14.2.0-13ubuntu1 [571 kB] 181s Get:54 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libsz2 ppc64el 1.1.3-1 [5566 B] 181s Get:55 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libhdf5-103-1t64 ppc64el 1.10.10+repack-5ubuntu1 [1394 kB] 181s Get:56 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libhdf5-hl-100t64 ppc64el 1.10.10+repack-5ubuntu1 [71.2 kB] 181s Get:57 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 181s Get:58 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 181s Get:59 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-sphinxdoc all 8.1.3-3 [30.9 kB] 181s Get:60 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-perl all 4.10000-1 [81.9 kB] 181s Get:61 http://ftpmaster.internal/ubuntu plucky/main ppc64el liblapack3 ppc64el 3.12.0-4 [2814 kB] 181s Get:62 http://ftpmaster.internal/ubuntu plucky/universe ppc64el liblzf1 ppc64el 3.6-4 [7920 B] 181s Get:63 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-stdlib ppc64el 3.13.1-2 [2131 kB] 181s Get:64 http://ftpmaster.internal/ubuntu plucky/universe ppc64el pybuild-plugin-autopkgtest all 6.20241217 [1746 B] 181s Get:65 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 181s Get:66 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 181s Get:67 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-toml all 0.10.2-1 [16.5 kB] 181s Get:68 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-wheel all 0.45.1-1 [57.7 kB] 181s Get:69 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-build all 1.2.2-1 [31.0 kB] 181s Get:70 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 181s Get:71 http://ftpmaster.internal/ubuntu plucky/universe ppc64el pybuild-plugin-pyproject all 6.20241217 [1730 B] 181s Get:72 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13 ppc64el 3.13.1-2 [729 kB] 181s Get:73 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-all ppc64el 3.12.8-1 [892 B] 181s Get:74 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-asciitree all 0.3.3-4 [5644 B] 181s Get:75 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-soupsieve all 2.6-1 [33.0 kB] 181s Get:76 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-bs4 all 4.12.3-3 [109 kB] 181s Get:77 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-defusedxml all 0.7.1-3 [42.2 kB] 181s Get:78 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-wrapt ppc64el 1.15.0-4 [35.8 kB] 181s Get:79 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-deprecated all 1.2.15-1 [10.5 kB] 181s Get:80 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-roman all 4.2-1 [10.0 kB] 182s Get:81 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-docutils all 0.21.2+dfsg-2 [409 kB] 182s Get:82 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-monotonic all 1.6-3 [5344 B] 182s Get:83 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-fasteners all 0.18-2 [12.5 kB] 182s Get:84 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-fsspec all 2024.10.0-1 [207 kB] 182s Get:85 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-numpy ppc64el 1:1.26.4+ds-12 [4917 kB] 182s Get:86 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-h5py-serial ppc64el 3.11.0-8ubuntu3 [1598 kB] 182s Get:87 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-h5py all 3.11.0-8ubuntu3 [7982 B] 182s Get:88 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-imagesize all 1.4.1-1 [6844 B] 182s Get:89 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 182s Get:90 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-msgpack ppc64el 1.0.3-3build3 [110 kB] 182s Get:91 http://ftpmaster.internal/ubuntu plucky/main ppc64el sphinx-common all 8.1.3-3 [661 kB] 182s Get:92 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-alabaster all 0.7.16-0.1 [18.5 kB] 182s Get:93 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-snowballstemmer all 2.2.0-4build1 [59.8 kB] 182s Get:94 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-sphinx all 8.1.3-3 [474 kB] 182s Get:95 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pydata-sphinx-theme all 0.15.4+dfsg-2 [41.5 kB] 182s Get:96 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el python3-numcodecs ppc64el 0.15.0+ds-1 [563 kB] 182s Get:97 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-tabulate all 0.9.0-1 [45.3 kB] 182s Get:98 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-numpydoc all 1.8.0-1 [52.4 kB] 182s Get:99 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 182s Get:100 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.4-1 [252 kB] 182s Get:101 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest-doctestplus all 1.3.0-1 [23.7 kB] 182s Get:102 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest-timeout all 2.3.1-1 [22.1 kB] 182s Get:103 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-setuptools-scm all 8.1.0-1 [32.2 kB] 182s Get:104 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sphinx-automodapi all 0.18.0-1 [37.6 kB] 182s Get:105 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sphinx-copybutton all 0.5.2-2 [16.6 kB] 182s Get:106 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sphinx-design all 0.6.1-1 [894 kB] 182s Get:107 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sphinx-issues all 5.0.0-1 [10.2 kB] 182s Get:108 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-zarr all 2.18.4+ds-1 [410 kB] 183s Fetched 85.8 MB in 6s (13.7 MB/s) 183s Selecting previously unselected package libpython3.13-minimal:ppc64el. 184s (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 ... 74042 files and directories currently installed.) 184s Preparing to unpack .../000-libpython3.13-minimal_3.13.1-2_ppc64el.deb ... 184s Unpacking libpython3.13-minimal:ppc64el (3.13.1-2) ... 184s Selecting previously unselected package python3.13-minimal. 184s Preparing to unpack .../001-python3.13-minimal_3.13.1-2_ppc64el.deb ... 184s Unpacking python3.13-minimal (3.13.1-2) ... 184s Selecting previously unselected package sgml-base. 184s Preparing to unpack .../002-sgml-base_1.31_all.deb ... 184s Unpacking sgml-base (1.31) ... 184s Selecting previously unselected package m4. 184s Preparing to unpack .../003-m4_1.4.19-4build1_ppc64el.deb ... 184s Unpacking m4 (1.4.19-4build1) ... 184s Selecting previously unselected package autoconf. 184s Preparing to unpack .../004-autoconf_2.72-3_all.deb ... 184s Unpacking autoconf (2.72-3) ... 184s Selecting previously unselected package autotools-dev. 184s Preparing to unpack .../005-autotools-dev_20220109.1_all.deb ... 184s Unpacking autotools-dev (20220109.1) ... 184s Selecting previously unselected package automake. 184s Preparing to unpack .../006-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 184s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 184s Selecting previously unselected package autopoint. 184s Preparing to unpack .../007-autopoint_0.22.5-3_all.deb ... 184s Unpacking autopoint (0.22.5-3) ... 184s Selecting previously unselected package libisl23:ppc64el. 184s Preparing to unpack .../008-libisl23_0.27-1_ppc64el.deb ... 184s Unpacking libisl23:ppc64el (0.27-1) ... 184s Selecting previously unselected package libmpc3:ppc64el. 184s Preparing to unpack .../009-libmpc3_1.3.1-1build2_ppc64el.deb ... 184s Unpacking libmpc3:ppc64el (1.3.1-1build2) ... 184s Selecting previously unselected package cpp-14-powerpc64le-linux-gnu. 184s Preparing to unpack .../010-cpp-14-powerpc64le-linux-gnu_14.2.0-13ubuntu1_ppc64el.deb ... 184s Unpacking cpp-14-powerpc64le-linux-gnu (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package cpp-14. 185s Preparing to unpack .../011-cpp-14_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking cpp-14 (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 185s Preparing to unpack .../012-cpp-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 185s Unpacking cpp-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 185s Selecting previously unselected package cpp. 185s Preparing to unpack .../013-cpp_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 185s Unpacking cpp (4:14.1.0-2ubuntu1) ... 185s Selecting previously unselected package libcc1-0:ppc64el. 185s Preparing to unpack .../014-libcc1-0_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking libcc1-0:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package libgomp1:ppc64el. 185s Preparing to unpack .../015-libgomp1_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking libgomp1:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package libitm1:ppc64el. 185s Preparing to unpack .../016-libitm1_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking libitm1:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package libasan8:ppc64el. 185s Preparing to unpack .../017-libasan8_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking libasan8:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package liblsan0:ppc64el. 185s Preparing to unpack .../018-liblsan0_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking liblsan0:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package libtsan2:ppc64el. 185s Preparing to unpack .../019-libtsan2_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking libtsan2:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package libubsan1:ppc64el. 185s Preparing to unpack .../020-libubsan1_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking libubsan1:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package libquadmath0:ppc64el. 185s Preparing to unpack .../021-libquadmath0_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking libquadmath0:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package libgcc-14-dev:ppc64el. 185s Preparing to unpack .../022-libgcc-14-dev_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking libgcc-14-dev:ppc64el (14.2.0-13ubuntu1) ... 185s Selecting previously unselected package gcc-14-powerpc64le-linux-gnu. 185s Preparing to unpack .../023-gcc-14-powerpc64le-linux-gnu_14.2.0-13ubuntu1_ppc64el.deb ... 185s Unpacking gcc-14-powerpc64le-linux-gnu (14.2.0-13ubuntu1) ... 186s Selecting previously unselected package gcc-14. 186s Preparing to unpack .../024-gcc-14_14.2.0-13ubuntu1_ppc64el.deb ... 186s Unpacking gcc-14 (14.2.0-13ubuntu1) ... 186s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 186s Preparing to unpack .../025-gcc-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 186s Unpacking gcc-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 186s Selecting previously unselected package gcc. 186s Preparing to unpack .../026-gcc_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 186s Unpacking gcc (4:14.1.0-2ubuntu1) ... 186s Selecting previously unselected package libstdc++-14-dev:ppc64el. 186s Preparing to unpack .../027-libstdc++-14-dev_14.2.0-13ubuntu1_ppc64el.deb ... 186s Unpacking libstdc++-14-dev:ppc64el (14.2.0-13ubuntu1) ... 186s Selecting previously unselected package g++-14-powerpc64le-linux-gnu. 186s Preparing to unpack .../028-g++-14-powerpc64le-linux-gnu_14.2.0-13ubuntu1_ppc64el.deb ... 186s Unpacking g++-14-powerpc64le-linux-gnu (14.2.0-13ubuntu1) ... 186s Selecting previously unselected package g++-14. 186s Preparing to unpack .../029-g++-14_14.2.0-13ubuntu1_ppc64el.deb ... 186s Unpacking g++-14 (14.2.0-13ubuntu1) ... 186s Selecting previously unselected package g++-powerpc64le-linux-gnu. 186s Preparing to unpack .../030-g++-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 186s Unpacking g++-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 186s Selecting previously unselected package g++. 186s Preparing to unpack .../031-g++_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 186s Unpacking g++ (4:14.1.0-2ubuntu1) ... 186s Selecting previously unselected package build-essential. 186s Preparing to unpack .../032-build-essential_12.10ubuntu1_ppc64el.deb ... 186s Unpacking build-essential (12.10ubuntu1) ... 186s Selecting previously unselected package libdebhelper-perl. 186s Preparing to unpack .../033-libdebhelper-perl_13.20ubuntu1_all.deb ... 186s Unpacking libdebhelper-perl (13.20ubuntu1) ... 187s Selecting previously unselected package libtool. 187s Preparing to unpack .../034-libtool_2.4.7-8_all.deb ... 187s Unpacking libtool (2.4.7-8) ... 187s Selecting previously unselected package dh-autoreconf. 187s Preparing to unpack .../035-dh-autoreconf_20_all.deb ... 187s Unpacking dh-autoreconf (20) ... 187s Selecting previously unselected package libarchive-zip-perl. 187s Preparing to unpack .../036-libarchive-zip-perl_1.68-1_all.deb ... 187s Unpacking libarchive-zip-perl (1.68-1) ... 187s Selecting previously unselected package libfile-stripnondeterminism-perl. 187s Preparing to unpack .../037-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 187s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 187s Selecting previously unselected package dh-strip-nondeterminism. 187s Preparing to unpack .../038-dh-strip-nondeterminism_1.14.0-1_all.deb ... 187s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 187s Selecting previously unselected package debugedit. 187s Preparing to unpack .../039-debugedit_1%3a5.1-1_ppc64el.deb ... 187s Unpacking debugedit (1:5.1-1) ... 187s Selecting previously unselected package dwz. 187s Preparing to unpack .../040-dwz_0.15-1build6_ppc64el.deb ... 187s Unpacking dwz (0.15-1build6) ... 187s Selecting previously unselected package gettext. 187s Preparing to unpack .../041-gettext_0.22.5-3_ppc64el.deb ... 187s Unpacking gettext (0.22.5-3) ... 187s Selecting previously unselected package intltool-debian. 187s Preparing to unpack .../042-intltool-debian_0.35.0+20060710.6_all.deb ... 187s Unpacking intltool-debian (0.35.0+20060710.6) ... 187s Selecting previously unselected package po-debconf. 187s Preparing to unpack .../043-po-debconf_1.0.21+nmu1_all.deb ... 187s Unpacking po-debconf (1.0.21+nmu1) ... 187s Selecting previously unselected package debhelper. 187s Preparing to unpack .../044-debhelper_13.20ubuntu1_all.deb ... 187s Unpacking debhelper (13.20ubuntu1) ... 187s Selecting previously unselected package dh-python. 187s Preparing to unpack .../045-dh-python_6.20241217_all.deb ... 187s Unpacking dh-python (6.20241217) ... 187s Selecting previously unselected package xml-core. 187s Preparing to unpack .../046-xml-core_0.19_all.deb ... 187s Unpacking xml-core (0.19) ... 187s Selecting previously unselected package docutils-common. 187s Preparing to unpack .../047-docutils-common_0.21.2+dfsg-2_all.deb ... 187s Unpacking docutils-common (0.21.2+dfsg-2) ... 187s Selecting previously unselected package libaec0:ppc64el. 187s Preparing to unpack .../048-libaec0_1.1.3-1_ppc64el.deb ... 187s Unpacking libaec0:ppc64el (1.1.3-1) ... 187s Selecting previously unselected package libblas3:ppc64el. 187s Preparing to unpack .../049-libblas3_3.12.0-4_ppc64el.deb ... 187s Unpacking libblas3:ppc64el (3.12.0-4) ... 187s Selecting previously unselected package libsnappy1v5:ppc64el. 187s Preparing to unpack .../050-libsnappy1v5_1.2.1-1_ppc64el.deb ... 187s Unpacking libsnappy1v5:ppc64el (1.2.1-1) ... 187s Selecting previously unselected package libblosc1:ppc64el. 187s Preparing to unpack .../051-libblosc1_1.21.5+ds-1build1_ppc64el.deb ... 187s Unpacking libblosc1:ppc64el (1.21.5+ds-1build1) ... 187s Selecting previously unselected package libgfortran5:ppc64el. 187s Preparing to unpack .../052-libgfortran5_14.2.0-13ubuntu1_ppc64el.deb ... 187s Unpacking libgfortran5:ppc64el (14.2.0-13ubuntu1) ... 187s Selecting previously unselected package libsz2:ppc64el. 187s Preparing to unpack .../053-libsz2_1.1.3-1_ppc64el.deb ... 187s Unpacking libsz2:ppc64el (1.1.3-1) ... 187s Selecting previously unselected package libhdf5-103-1t64:ppc64el. 187s Preparing to unpack .../054-libhdf5-103-1t64_1.10.10+repack-5ubuntu1_ppc64el.deb ... 187s Unpacking libhdf5-103-1t64:ppc64el (1.10.10+repack-5ubuntu1) ... 188s Selecting previously unselected package libhdf5-hl-100t64:ppc64el. 188s Preparing to unpack .../055-libhdf5-hl-100t64_1.10.10+repack-5ubuntu1_ppc64el.deb ... 188s Unpacking libhdf5-hl-100t64:ppc64el (1.10.10+repack-5ubuntu1) ... 188s Selecting previously unselected package libjs-jquery. 188s Preparing to unpack .../056-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 188s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 188s Selecting previously unselected package libjs-underscore. 188s Preparing to unpack .../057-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 188s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 188s Selecting previously unselected package libjs-sphinxdoc. 188s Preparing to unpack .../058-libjs-sphinxdoc_8.1.3-3_all.deb ... 188s Unpacking libjs-sphinxdoc (8.1.3-3) ... 188s Selecting previously unselected package libjson-perl. 188s Preparing to unpack .../059-libjson-perl_4.10000-1_all.deb ... 188s Unpacking libjson-perl (4.10000-1) ... 188s Selecting previously unselected package liblapack3:ppc64el. 188s Preparing to unpack .../060-liblapack3_3.12.0-4_ppc64el.deb ... 188s Unpacking liblapack3:ppc64el (3.12.0-4) ... 188s Selecting previously unselected package liblzf1:ppc64el. 188s Preparing to unpack .../061-liblzf1_3.6-4_ppc64el.deb ... 188s Unpacking liblzf1:ppc64el (3.6-4) ... 188s Selecting previously unselected package libpython3.13-stdlib:ppc64el. 188s Preparing to unpack .../062-libpython3.13-stdlib_3.13.1-2_ppc64el.deb ... 188s Unpacking libpython3.13-stdlib:ppc64el (3.13.1-2) ... 188s Selecting previously unselected package pybuild-plugin-autopkgtest. 188s Preparing to unpack .../063-pybuild-plugin-autopkgtest_6.20241217_all.deb ... 188s Unpacking pybuild-plugin-autopkgtest (6.20241217) ... 188s Selecting previously unselected package python3-packaging. 188s Preparing to unpack .../064-python3-packaging_24.2-1_all.deb ... 188s Unpacking python3-packaging (24.2-1) ... 188s Selecting previously unselected package python3-pyproject-hooks. 188s Preparing to unpack .../065-python3-pyproject-hooks_1.2.0-1_all.deb ... 188s Unpacking python3-pyproject-hooks (1.2.0-1) ... 188s Selecting previously unselected package python3-toml. 188s Preparing to unpack .../066-python3-toml_0.10.2-1_all.deb ... 188s Unpacking python3-toml (0.10.2-1) ... 188s Selecting previously unselected package python3-wheel. 188s Preparing to unpack .../067-python3-wheel_0.45.1-1_all.deb ... 188s Unpacking python3-wheel (0.45.1-1) ... 188s Selecting previously unselected package python3-build. 188s Preparing to unpack .../068-python3-build_1.2.2-1_all.deb ... 188s Unpacking python3-build (1.2.2-1) ... 188s Selecting previously unselected package python3-installer. 188s Preparing to unpack .../069-python3-installer_0.7.0+dfsg1-3_all.deb ... 188s Unpacking python3-installer (0.7.0+dfsg1-3) ... 188s Selecting previously unselected package pybuild-plugin-pyproject. 188s Preparing to unpack .../070-pybuild-plugin-pyproject_6.20241217_all.deb ... 188s Unpacking pybuild-plugin-pyproject (6.20241217) ... 188s Selecting previously unselected package python3.13. 188s Preparing to unpack .../071-python3.13_3.13.1-2_ppc64el.deb ... 188s Unpacking python3.13 (3.13.1-2) ... 188s Selecting previously unselected package python3-all. 188s Preparing to unpack .../072-python3-all_3.12.8-1_ppc64el.deb ... 188s Unpacking python3-all (3.12.8-1) ... 188s Selecting previously unselected package python3-asciitree. 188s Preparing to unpack .../073-python3-asciitree_0.3.3-4_all.deb ... 188s Unpacking python3-asciitree (0.3.3-4) ... 188s Selecting previously unselected package python3-soupsieve. 188s Preparing to unpack .../074-python3-soupsieve_2.6-1_all.deb ... 188s Unpacking python3-soupsieve (2.6-1) ... 188s Selecting previously unselected package python3-bs4. 188s Preparing to unpack .../075-python3-bs4_4.12.3-3_all.deb ... 188s Unpacking python3-bs4 (4.12.3-3) ... 188s Selecting previously unselected package python3-defusedxml. 188s Preparing to unpack .../076-python3-defusedxml_0.7.1-3_all.deb ... 188s Unpacking python3-defusedxml (0.7.1-3) ... 188s Selecting previously unselected package python3-wrapt. 188s Preparing to unpack .../077-python3-wrapt_1.15.0-4_ppc64el.deb ... 188s Unpacking python3-wrapt (1.15.0-4) ... 188s Selecting previously unselected package python3-deprecated. 188s Preparing to unpack .../078-python3-deprecated_1.2.15-1_all.deb ... 188s Unpacking python3-deprecated (1.2.15-1) ... 188s Selecting previously unselected package python3-roman. 188s Preparing to unpack .../079-python3-roman_4.2-1_all.deb ... 188s Unpacking python3-roman (4.2-1) ... 189s Selecting previously unselected package python3-docutils. 189s Preparing to unpack .../080-python3-docutils_0.21.2+dfsg-2_all.deb ... 189s Unpacking python3-docutils (0.21.2+dfsg-2) ... 189s Selecting previously unselected package python3-monotonic. 189s Preparing to unpack .../081-python3-monotonic_1.6-3_all.deb ... 189s Unpacking python3-monotonic (1.6-3) ... 189s Selecting previously unselected package python3-fasteners. 189s Preparing to unpack .../082-python3-fasteners_0.18-2_all.deb ... 189s Unpacking python3-fasteners (0.18-2) ... 189s Selecting previously unselected package python3-fsspec. 189s Preparing to unpack .../083-python3-fsspec_2024.10.0-1_all.deb ... 189s Unpacking python3-fsspec (2024.10.0-1) ... 189s Selecting previously unselected package python3-numpy. 189s Preparing to unpack .../084-python3-numpy_1%3a1.26.4+ds-12_ppc64el.deb ... 189s Unpacking python3-numpy (1:1.26.4+ds-12) ... 189s Selecting previously unselected package python3-h5py-serial. 189s Preparing to unpack .../085-python3-h5py-serial_3.11.0-8ubuntu3_ppc64el.deb ... 189s Unpacking python3-h5py-serial (3.11.0-8ubuntu3) ... 189s Selecting previously unselected package python3-h5py. 189s Preparing to unpack .../086-python3-h5py_3.11.0-8ubuntu3_all.deb ... 189s Unpacking python3-h5py (3.11.0-8ubuntu3) ... 189s Selecting previously unselected package python3-imagesize. 189s Preparing to unpack .../087-python3-imagesize_1.4.1-1_all.deb ... 189s Unpacking python3-imagesize (1.4.1-1) ... 189s Selecting previously unselected package python3-iniconfig. 189s Preparing to unpack .../088-python3-iniconfig_1.1.1-2_all.deb ... 189s Unpacking python3-iniconfig (1.1.1-2) ... 189s Selecting previously unselected package python3-msgpack. 189s Preparing to unpack .../089-python3-msgpack_1.0.3-3build3_ppc64el.deb ... 189s Unpacking python3-msgpack (1.0.3-3build3) ... 189s Selecting previously unselected package sphinx-common. 189s Preparing to unpack .../090-sphinx-common_8.1.3-3_all.deb ... 189s Unpacking sphinx-common (8.1.3-3) ... 189s Selecting previously unselected package python3-alabaster. 189s Preparing to unpack .../091-python3-alabaster_0.7.16-0.1_all.deb ... 189s Unpacking python3-alabaster (0.7.16-0.1) ... 189s Selecting previously unselected package python3-snowballstemmer. 189s Preparing to unpack .../092-python3-snowballstemmer_2.2.0-4build1_all.deb ... 189s Unpacking python3-snowballstemmer (2.2.0-4build1) ... 190s Selecting previously unselected package python3-sphinx. 190s Preparing to unpack .../093-python3-sphinx_8.1.3-3_all.deb ... 190s Unpacking python3-sphinx (8.1.3-3) ... 190s Selecting previously unselected package python3-pydata-sphinx-theme. 190s Preparing to unpack .../094-python3-pydata-sphinx-theme_0.15.4+dfsg-2_all.deb ... 190s Unpacking python3-pydata-sphinx-theme (0.15.4+dfsg-2) ... 190s Selecting previously unselected package python3-numcodecs. 190s Preparing to unpack .../095-python3-numcodecs_0.15.0+ds-1_ppc64el.deb ... 190s Unpacking python3-numcodecs (0.15.0+ds-1) ... 190s Selecting previously unselected package python3-tabulate. 190s Preparing to unpack .../096-python3-tabulate_0.9.0-1_all.deb ... 190s Unpacking python3-tabulate (0.9.0-1) ... 190s Selecting previously unselected package python3-numpydoc. 190s Preparing to unpack .../097-python3-numpydoc_1.8.0-1_all.deb ... 190s Unpacking python3-numpydoc (1.8.0-1) ... 190s Selecting previously unselected package python3-pluggy. 190s Preparing to unpack .../098-python3-pluggy_1.5.0-1_all.deb ... 190s Unpacking python3-pluggy (1.5.0-1) ... 190s Selecting previously unselected package python3-pytest. 190s Preparing to unpack .../099-python3-pytest_8.3.4-1_all.deb ... 190s Unpacking python3-pytest (8.3.4-1) ... 190s Selecting previously unselected package python3-pytest-doctestplus. 190s Preparing to unpack .../100-python3-pytest-doctestplus_1.3.0-1_all.deb ... 190s Unpacking python3-pytest-doctestplus (1.3.0-1) ... 190s Selecting previously unselected package python3-pytest-timeout. 190s Preparing to unpack .../101-python3-pytest-timeout_2.3.1-1_all.deb ... 190s Unpacking python3-pytest-timeout (2.3.1-1) ... 190s Selecting previously unselected package python3-setuptools-scm. 190s Preparing to unpack .../102-python3-setuptools-scm_8.1.0-1_all.deb ... 190s Unpacking python3-setuptools-scm (8.1.0-1) ... 190s Selecting previously unselected package python3-sphinx-automodapi. 190s Preparing to unpack .../103-python3-sphinx-automodapi_0.18.0-1_all.deb ... 190s Unpacking python3-sphinx-automodapi (0.18.0-1) ... 190s Selecting previously unselected package python3-sphinx-copybutton. 190s Preparing to unpack .../104-python3-sphinx-copybutton_0.5.2-2_all.deb ... 190s Unpacking python3-sphinx-copybutton (0.5.2-2) ... 190s Selecting previously unselected package python3-sphinx-design. 190s Preparing to unpack .../105-python3-sphinx-design_0.6.1-1_all.deb ... 190s Unpacking python3-sphinx-design (0.6.1-1) ... 190s Selecting previously unselected package python3-sphinx-issues. 190s Preparing to unpack .../106-python3-sphinx-issues_5.0.0-1_all.deb ... 190s Unpacking python3-sphinx-issues (5.0.0-1) ... 190s Selecting previously unselected package python3-zarr. 190s Preparing to unpack .../107-python3-zarr_2.18.4+ds-1_all.deb ... 190s Unpacking python3-zarr (2.18.4+ds-1) ... 190s Setting up dh-python (6.20241217) ... 191s Setting up python3-iniconfig (1.1.1-2) ... 191s Setting up python3-defusedxml (0.7.1-3) ... 191s Setting up libarchive-zip-perl (1.68-1) ... 191s Setting up python3-alabaster (0.7.16-0.1) ... 191s Setting up libdebhelper-perl (13.20ubuntu1) ... 191s Setting up python3-fsspec (2024.10.0-1) ... 192s Setting up python3-tabulate (0.9.0-1) ... 192s Setting up m4 (1.4.19-4build1) ... 192s Setting up libgomp1:ppc64el (14.2.0-13ubuntu1) ... 192s Setting up python3-wheel (0.45.1-1) ... 193s Setting up libaec0:ppc64el (1.1.3-1) ... 193s Setting up libsnappy1v5:ppc64el (1.2.1-1) ... 193s Setting up python3-monotonic (1.6-3) ... 193s Setting up libpython3.13-minimal:ppc64el (3.13.1-2) ... 193s Setting up python3-roman (4.2-1) ... 193s Setting up autotools-dev (20220109.1) ... 193s Setting up libblas3:ppc64el (3.12.0-4) ... 193s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/blas/libblas.so.3 to provide /usr/lib/powerpc64le-linux-gnu/libblas.so.3 (libblas.so.3-powerpc64le-linux-gnu) in auto mode 193s Setting up python3-packaging (24.2-1) ... 194s Setting up python3-pyproject-hooks (1.2.0-1) ... 194s Setting up python3-snowballstemmer (2.2.0-4build1) ... 195s Setting up liblzf1:ppc64el (3.6-4) ... 195s Setting up libquadmath0:ppc64el (14.2.0-13ubuntu1) ... 195s Setting up libmpc3:ppc64el (1.3.1-1build2) ... 195s Setting up python3-wrapt (1.15.0-4) ... 195s Setting up autopoint (0.22.5-3) ... 195s Setting up python3-fasteners (0.18-2) ... 195s Setting up python3-asciitree (0.3.3-4) ... 195s Setting up python3-toml (0.10.2-1) ... 195s Setting up python3-installer (0.7.0+dfsg1-3) ... 196s Setting up libgfortran5:ppc64el (14.2.0-13ubuntu1) ... 196s Setting up autoconf (2.72-3) ... 196s Setting up python3-pluggy (1.5.0-1) ... 196s Setting up libubsan1:ppc64el (14.2.0-13ubuntu1) ... 196s Setting up dwz (0.15-1build6) ... 196s Setting up libasan8:ppc64el (14.2.0-13ubuntu1) ... 196s Setting up libjson-perl (4.10000-1) ... 196s Setting up libblosc1:ppc64el (1.21.5+ds-1build1) ... 196s Setting up debugedit (1:5.1-1) ... 196s Setting up python3.13-minimal (3.13.1-2) ... 197s Setting up sgml-base (1.31) ... 197s Setting up python3-msgpack (1.0.3-3build3) ... 197s Setting up libtsan2:ppc64el (14.2.0-13ubuntu1) ... 197s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 197s Setting up libisl23:ppc64el (0.27-1) ... 197s Setting up python3-build (1.2.2-1) ... 197s Setting up libpython3.13-stdlib:ppc64el (3.13.1-2) ... 197s Setting up python3-soupsieve (2.6-1) ... 198s Setting up libcc1-0:ppc64el (14.2.0-13ubuntu1) ... 198s Setting up python3-deprecated (1.2.15-1) ... 198s Setting up liblsan0:ppc64el (14.2.0-13ubuntu1) ... 198s Setting up libsz2:ppc64el (1.1.3-1) ... 198s Setting up libitm1:ppc64el (14.2.0-13ubuntu1) ... 198s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 198s Setting up python3-imagesize (1.4.1-1) ... 198s Setting up automake (1:1.16.5-1.3ubuntu1) ... 198s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 198s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 198s Setting up liblapack3:ppc64el (3.12.0-4) ... 198s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/powerpc64le-linux-gnu/liblapack.so.3 (liblapack.so.3-powerpc64le-linux-gnu) in auto mode 198s Setting up gettext (0.22.5-3) ... 198s Setting up python3.13 (3.13.1-2) ... 199s Setting up pybuild-plugin-pyproject (6.20241217) ... 199s Setting up python3-pytest (8.3.4-1) ... 200s Setting up python3-all (3.12.8-1) ... 200s Setting up python3-setuptools-scm (8.1.0-1) ... 201s Setting up python3-bs4 (4.12.3-3) ... 201s Setting up intltool-debian (0.35.0+20060710.6) ... 201s Setting up cpp-14-powerpc64le-linux-gnu (14.2.0-13ubuntu1) ... 201s Setting up python3-numpy (1:1.26.4+ds-12) ... 206s Setting up libjs-sphinxdoc (8.1.3-3) ... 206s Setting up cpp-14 (14.2.0-13ubuntu1) ... 206s Setting up python3-pytest-doctestplus (1.3.0-1) ... 206s Setting up dh-strip-nondeterminism (1.14.0-1) ... 206s Setting up xml-core (0.19) ... 206s Setting up libgcc-14-dev:ppc64el (14.2.0-13ubuntu1) ... 206s Setting up libhdf5-103-1t64:ppc64el (1.10.10+repack-5ubuntu1) ... 206s Setting up libstdc++-14-dev:ppc64el (14.2.0-13ubuntu1) ... 206s Setting up cpp-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 206s Setting up gcc-14-powerpc64le-linux-gnu (14.2.0-13ubuntu1) ... 206s Setting up libhdf5-hl-100t64:ppc64el (1.10.10+repack-5ubuntu1) ... 206s Setting up g++-14-powerpc64le-linux-gnu (14.2.0-13ubuntu1) ... 206s Setting up python3-pytest-timeout (2.3.1-1) ... 206s Setting up po-debconf (1.0.21+nmu1) ... 207s Setting up python3-h5py-serial (3.11.0-8ubuntu3) ... 207s Setting up gcc-14 (14.2.0-13ubuntu1) ... 207s Setting up gcc-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 207s Setting up sphinx-common (8.1.3-3) ... 207s Setting up python3-h5py (3.11.0-8ubuntu3) ... 207s Setting up cpp (4:14.1.0-2ubuntu1) ... 207s Setting up g++-14 (14.2.0-13ubuntu1) ... 207s Setting up g++-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 207s Setting up libtool (2.4.7-8) ... 207s Setting up gcc (4:14.1.0-2ubuntu1) ... 207s Setting up dh-autoreconf (20) ... 207s Setting up g++ (4:14.1.0-2ubuntu1) ... 207s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 207s Setting up build-essential (12.10ubuntu1) ... 207s Setting up debhelper (13.20ubuntu1) ... 207s Setting up pybuild-plugin-autopkgtest (6.20241217) ... 207s Processing triggers for install-info (7.1.1-1) ... 208s Processing triggers for libc-bin (2.40-4ubuntu1) ... 208s Processing triggers for systemd (257-2ubuntu1) ... 208s Processing triggers for man-db (2.13.0-1) ... 210s Processing triggers for sgml-base (1.31) ... 210s Setting up docutils-common (0.21.2+dfsg-2) ... 210s Processing triggers for sgml-base (1.31) ... 210s Setting up python3-docutils (0.21.2+dfsg-2) ... 211s Setting up python3-sphinx (8.1.3-3) ... 213s Setting up python3-sphinx-copybutton (0.5.2-2) ... 213s Setting up python3-sphinx-issues (5.0.0-1) ... 214s Setting up python3-sphinx-design (0.6.1-1) ... 214s Setting up python3-numpydoc (1.8.0-1) ... 214s Setting up python3-pydata-sphinx-theme (0.15.4+dfsg-2) ... 214s Setting up python3-sphinx-automodapi (0.18.0-1) ... 215s Setting up python3-numcodecs (0.15.0+ds-1) ... 215s Setting up python3-zarr (2.18.4+ds-1) ... 217s autopkgtest [09:22:10]: test pybuild-autopkgtest: pybuild-autopkgtest 217s autopkgtest [09:22:10]: test pybuild-autopkgtest: [----------------------- 220s pybuild-autopkgtest 220s I: pybuild base:311: cd /tmp/autopkgtest.oPgZDx/autopkgtest_tmp/build; python3.13 -m pytest -k "not test_hierarchy and not test_complex and not test_array_with_delta_filter and not test_utf8_encoding and not [static_flat] and not [static_nested] and not [static_flat_legacy] and not [static_nested_legacy] and not test_meta_prefix_6853 and not test_encode_decode_array_dtype_shape_v3" --pyargs zarr 224s ============================= test session starts ============================== 224s platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 224s rootdir: /tmp/autopkgtest.oPgZDx/autopkgtest_tmp/build 224s configfile: pyproject.toml 224s plugins: typeguard-4.4.1, timeout-2.3.1, doctestplus-1.3.0 224s collected 4975 items / 717 deselected / 4258 selected 224s 224s tests/test_attrs.py .................. [ 0%] 224s tests/test_convenience.py .....ss...................ssssssss.s.......... [ 1%] 225s ..................................................ssssssssssssssssssssss [ 3%] 225s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 4%] 225s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 6%] 225s ssssssssssssss [ 6%] 227s tests/test_core.py ..................................................... [ 8%] 229s ........................................................................ [ 9%] 234s ................................................................ssssssss [ 11%] 235s sssssssssssssssssssssssssssssssssssssss................................. [ 13%] 239s ........................................................................ [ 14%] 248s ........................................................................ [ 16%] 254s .............sssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 18%] 266s sssssssssssssssssssssssssssssssssss..................................... [ 19%] 271s ........................................................................ [ 21%] 275s ........................................................................ [ 23%] 278s ........................................................................ [ 25%] 280s ........................................................................ [ 26%] 282s ........................................................................ [ 28%] 286s ........................................................................ [ 30%] 291s .........................................................FF.FFFFF..FFFFF [ 31%] 298s ...F....FFFFF......s.FF....FFF.......................................... [ 33%] 305s ..........FF.FFFFF..FFFFF...F....FFFFF......s.FF....FFFsssssssssssssssss [ 35%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 36%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 38%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 40%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 41%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 43%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 45%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 47%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 48%] 305s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 50%] 306s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 52%] 306s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 53%] 306s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 55%] 306s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...... [ 57%] 306s [ 57%] 306s tests/test_creation.py ................................................. [ 58%] 306s ..................................ss..... [ 59%] 306s tests/test_dim_separator.py ..........................x....x [ 60%] 306s tests/test_filters.py ...... [ 60%] 322s tests/test_indexing.py ................................................. [ 61%] 323s ......xx...... [ 61%] 323s tests/test_info.py .. [ 61%] 323s tests/test_meta.py ......................... [ 62%] 323s tests/test_meta_array.py .sss.sss.sss.sss.sss.sss.sss.sss..ssssss..sssss [ 63%] 323s s..ssssss..ssssss [ 63%] 323s tests/test_n5.py ..... [ 63%] 323s tests/test_storage.py ...................s........................s..... [ 65%] 323s ...................s.................................................... [ 66%] 324s .......................ss..............s................................ [ 68%] 324s ........................................................................ [ 70%] 324s ....................ss.................................................. [ 71%] 325s .............s.......................................................... [ 73%] 325s ........................................................................ [ 75%] 326s .....ssssssssssssssssssssssss........................................... [ 76%] 326s .......ssssssssssssssssssssssssssssssssssssssssssssssss.............s... [ 78%] 328s ..............ssssssssssssssssssssssssss....... [ 79%] 328s tests/test_storage_v3.py sssssssssssssssssssssssssssssssssssssssssssssss [ 80%] 328s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 82%] 328s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 84%] 328s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 85%] 328s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 87%] 328s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 89%] 328s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 90%] 328s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 92%] 328s ssssssssssssss [ 93%] 329s tests/test_sync.py ..................................................... [ 94%] 330s ........................................................................ [ 95%] 334s ........................................................................ [ 97%] 336s ........................................................................ [ 99%] 337s ........... [ 99%] 337s tests/test_util.py .................. [100%] 337s 337s =================================== FAILURES =================================== 337s ________________ TestArrayWithFSStorePartialRead.test_array_1d _________________ 337s 337s self = 337s 337s def test_array_1d(self): 337s a = np.arange(1050) 337s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype) 337s 337s # check properties 337s assert len(a) == len(z) 337s assert a.ndim == z.ndim 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (100,) == z.chunks 337s assert a.nbytes == z.nbytes 337s assert 11 == z.nchunks 337s assert 0 == z.nchunks_initialized 337s assert (11,) == z.cdata_shape 337s 337s # check empty 337s b = z[:] 337s assert isinstance(b, np.ndarray) 337s assert a.shape == b.shape 337s assert a.dtype == b.dtype 337s 337s # check attributes 337s z.attrs["foo"] = "bar" 337s assert "bar" == z.attrs["foo"] 337s 337s # set data 337s z[:] = a 337s 337s # check properties 337s assert a.nbytes == z.nbytes 337s assert 11 == z.nchunks 337s assert 11 == z.nchunks_initialized 337s 337s # check slicing 337s > assert_array_equal(a, np.array(z)) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:288: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 337s return np.array(self[...], *args, **kwargs) 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00\xab\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ___________ TestArrayWithFSStorePartialRead.test_array_1d_fill_value ___________ 337s 337s self = 337s 337s def test_array_1d_fill_value(self): 337s for fill_value in -1, 0, 1, 10: 337s a = np.arange(1050) 337s f = np.empty_like(a) 337s f.fill(fill_value) 337s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype, fill_value=fill_value) 337s z[190:310] = a[190:310] 337s 337s > assert_array_equal(f[:190], z[:190]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:344: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00}\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ___________ TestArrayWithFSStorePartialRead.test_array_1d_selections ___________ 337s 337s self = 337s 337s def test_array_1d_selections(self): 337s # light test here, full tests in test_indexing 337s 337s # setup 337s a = np.arange(1050) 337s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype) 337s z[:] = a 337s 337s # get 337s > assert_array_equal(a[50:150], z.get_orthogonal_selection(slice(50, 150))) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:378: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00\xd2\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________________ TestArrayWithFSStorePartialRead.test_array_2d _________________ 337s 337s self = 337s 337s def test_array_2d(self): 337s a = np.arange(10000).reshape((1000, 10)) 337s z = self.create_array(shape=a.shape, chunks=(100, 2), dtype=a.dtype) 337s 337s # check properties 337s assert len(a) == len(z) 337s assert a.ndim == z.ndim 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (100, 2) == z.chunks 337s assert 0 == z.nchunks_initialized 337s assert (10, 5) == z.cdata_shape 337s 337s # set data 337s z[:] = a 337s 337s # check properties 337s assert a.nbytes == z.nbytes 337s assert 50 == z.nchunks_initialized 337s 337s # check array-like 337s > assert_array_equal(a, np.array(z)) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:440: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 337s return np.array(self[...], *args, **kwargs) 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08@\x06\x00\x00\x00\x01\x00\x00\xb2\x01\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ___________ TestArrayWithFSStorePartialRead.test_array_2d_edge_case ____________ 337s 337s self = 337s 337s def test_array_2d_edge_case(self): 337s # this fails with filters - chunks extend beyond edge of array, messes with delta 337s # filter if no fill value? 337s shape = 1000, 10 337s chunks = 300, 30 337s dtype = "i8" 337s z = self.create_array(shape=shape, dtype=dtype, chunks=chunks) 337s z[:] = 0 337s expect = np.zeros(shape, dtype=dtype) 337s > actual = z[:] 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:537: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08@\x19\x01\x00\x00\x01\x00\x00\xfe\x14\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ____________ TestArrayWithFSStorePartialRead.test_array_2d_partial _____________ 337s 337s self = 337s 337s def test_array_2d_partial(self): 337s z = self.create_array(shape=(1000, 10), chunks=(100, 2), dtype="i4", fill_value=0) 337s 337s # check partial assignment, single row 337s c = np.arange(z.shape[1]) 337s z[0, :] = c 337s with pytest.raises(ValueError): 337s # N.B., NumPy allows this, but we'll be strict for now 337s z[2:3] = c 337s with pytest.raises(ValueError): 337s # N.B., NumPy allows this, but we'll be strict for now 337s z[-1:] = c 337s z[2:3] = c[None, :] 337s z[-1:] = c[None, :] 337s > assert_array_equal(c, z[0, :]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:556: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:796: in __getitem__ 337s result = self.get_orthogonal_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x04 \x03\x00\x00\x00\x01\x00\x00f\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _______________ TestArrayWithFSStorePartialRead.test_array_order _______________ 337s 337s self = 337s 337s def test_array_order(self): 337s # 1D 337s a = np.arange(1050) 337s for order in "C", "F": 337s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype, order=order) 337s assert order == z.order 337s if order == "F": 337s assert z[:].flags.f_contiguous 337s else: 337s assert z[:].flags.c_contiguous 337s z[:] = a 337s > assert_array_equal(a, z[:]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:594: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00\xab\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________________ TestArrayWithFSStorePartialRead.test_resize_1d ________________ 337s 337s self = 337s 337s def test_resize_1d(self): 337s z = self.create_array(shape=105, chunks=10, dtype="i4", fill_value=0) 337s a = np.arange(105, dtype="i4") 337s z[:] = a 337s assert (105,) == z.shape 337s > assert (105,) == z[:].shape 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:679: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x04(\x00\x00\x00(\x00\x00\x008\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________________ TestArrayWithFSStorePartialRead.test_resize_2d ________________ 337s 337s self = 337s 337s def test_resize_2d(self): 337s z = self.create_array(shape=(105, 105), chunks=(10, 10), dtype="i4", fill_value=0) 337s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 337s z[:] = a 337s assert (105, 105) == z.shape 337s > assert (105, 105) == z[:].shape 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:714: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x00\x01\x00\x00\xbe\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________________ TestArrayWithFSStorePartialRead.test_append_1d ________________ 337s 337s self = 337s 337s def test_append_1d(self): 337s a = np.arange(105) 337s z = self.create_array(shape=a.shape, chunks=10, dtype=a.dtype) 337s z[:] = a 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (10,) == z.chunks 337s > assert_array_equal(a, z[:]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:776: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x08P\x00\x00\x00P\x00\x00\x00`\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________________ TestArrayWithFSStorePartialRead.test_append_2d ________________ 337s 337s self = 337s 337s def test_append_2d(self): 337s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 337s z = self.create_array(shape=a.shape, chunks=(10, 10), dtype=a.dtype) 337s z[:] = a 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (10, 10) == z.chunks 337s > actual = z[:] 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:804: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x00\x01\x00\x00\xbe\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStorePartialRead.test_append_2d_axis ______________ 337s 337s self = 337s 337s def test_append_2d_axis(self): 337s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 337s z = self.create_array(shape=a.shape, chunks=(10, 10), dtype=a.dtype) 337s z[:] = a 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (10, 10) == z.chunks 337s > assert_array_equal(a, z[:]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:825: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x00\x01\x00\x00\xbe\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________________ TestArrayWithFSStorePartialRead.test_np_ufuncs ________________ 337s 337s self = 337s 337s def test_np_ufuncs(self): 337s z = self.create_array(shape=(100, 100), chunks=(10, 10)) 337s a = np.arange(10000).reshape(100, 100) 337s z[:] = a 337s 337s > assert np.sum(a) == np.sum(z) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:917: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:2313: in sum 337s return _wrapreduction(a, np.add, 'sum', axis, dtype, out, keepdims=keepdims, 337s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:88: in _wrapreduction 337s return ufunc.reduce(obj, axis, dtype, out, **passkwargs) 337s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 337s return np.array(self[...], *args, **kwargs) 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00-\x01\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ____________ TestArrayWithFSStorePartialRead.test_array_dtype_shape ____________ 337s 337s self = 337s 337s def test_array_dtype_shape(self): 337s dt = "(2, 2)f4" 337s # setup some data 337s d = np.array([((0, 1), (1, 2)), ((1, 2), (2, 3)), ((2, 3), (3, 4))], dtype=dt) 337s 337s for a in (d, d[:0]): 337s for fill_value in None, 0: 337s z = self.create_array(shape=a.shape[:-2], chunks=2, dtype=dt, fill_value=fill_value) 337s assert len(a) == len(z) 337s if fill_value is not None: 337s assert fill_value == z.fill_value 337s z[...] = a 337s > assert_array_equal(a, z[...]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1101: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x04 \x00\x00\x00 \x00\x00\x000\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ____________ TestArrayWithFSStorePartialRead.test_structured_array _____________ 337s 337s self = 337s 337s def test_structured_array(self): 337s d = np.array( 337s [(b"aaa", 1, 4.2), (b"bbb", 2, 8.4), (b"ccc", 3, 12.6)], 337s dtype=[("foo", "S3"), ("bar", "i4"), ("baz", "f8")], 337s ) 337s fill_values = None, b"", (b"zzz", 42, 16.8) 337s > self.check_structured_array(d, fill_values) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1151: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 337s assert a[0] == z[0] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x0f\x1e\x00\x00\x00\x1e\x00\x00\x00.\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _______ TestArrayWithFSStorePartialRead.test_structured_array_subshapes ________ 337s 337s self = 337s 337s def test_structured_array_subshapes(self): 337s d = np.array( 337s [ 337s (0, ((0, 1, 2), (1, 2, 3)), b"aaa"), 337s (1, ((1, 2, 3), (2, 3, 4)), b"bbb"), 337s (2, ((2, 3, 4), (3, 4, 5)), b"ccc"), 337s ], 337s dtype=[("foo", "i8"), ("bar", "(2, 3)f4"), ("baz", "S3")], 337s ) 337s fill_values = None, b"", (0, ((0, 0, 0), (1, 1, 1)), b"zzz") 337s > self.check_structured_array(d, fill_values) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1163: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 337s assert a[0] == z[0] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013#F\x00\x00\x00F\x00\x00\x00V\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _________ TestArrayWithFSStorePartialRead.test_structured_array_nested _________ 337s 337s self = 337s 337s def test_structured_array_nested(self): 337s d = np.array( 337s [ 337s (0, (0, ((0, 1), (1, 2), (2, 3)), 0), b"aaa"), 337s (1, (1, ((1, 2), (2, 3), (3, 4)), 1), b"bbb"), 337s (2, (2, ((2, 3), (3, 4), (4, 5)), 2), b"ccc"), 337s ], 337s dtype=[ 337s ("foo", "i8"), 337s ("bar", [("foo", "i4"), ("bar", "(3, 2)f4"), ("baz", "u1")]), 337s ("baz", "S3"), 337s ], 337s ) 337s fill_values = None, b"", (0, (0, ((0, 0), (1, 1), (2, 2)), 0), b"zzz") 337s > self.check_structured_array(d, fill_values) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1179: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 337s assert a[0] == z[0] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013(P\x00\x00\x00P\x00\x00\x00`\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _________________ TestArrayWithFSStorePartialRead.test_dtypes __________________ 337s 337s self = 337s 337s def test_dtypes(self): 337s # integers 337s for dtype in "u1", "u2", "u4", "u8", "i1", "i2", "i4", "i8": 337s z = self.create_array(shape=10, chunks=3, dtype=dtype) 337s assert z.dtype == np.dtype(dtype) 337s a = np.arange(z.shape[0], dtype=dtype) 337s z[:] = a 337s > assert_array_equal(a, z[:]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1188: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x01\x03\x00\x00\x00\x03\x00\x00\x00\x13\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s __________________ TestArrayWithFSStorePartialRead.test_iter ___________________ 337s 337s self = 337s 337s def test_iter(self): 337s params = ( 337s ((1,), (1,)), 337s ((2,), (1,)), 337s ((1,), (2,)), 337s ((3,), (3,)), 337s ((1000,), (100,)), 337s ((100,), (1000,)), 337s ((1, 100), (1, 1)), 337s ((1, 0), (1, 1)), 337s ((0, 1), (1, 1)), 337s ((0, 1), (2, 1)), 337s ((100, 1), (3, 1)), 337s ((100, 100), (10, 10)), 337s ((10, 10, 10), (3, 3, 3)), 337s ) 337s for shape, chunks in params: 337s z = self.create_array(shape=shape, chunks=chunks, dtype=int) 337s a = np.arange(np.prod(shape)).reshape(shape) 337s z[:] = a 337s > for expect, actual in zip_longest(a, z): 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1531: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:637: in islice 337s chunk = self[j : j + chunk_size] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x08\x10\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _________________ TestArrayWithFSStorePartialRead.test_islice __________________ 337s 337s self = 337s 337s def test_islice(self): 337s params = ( 337s ((1,), (1,), 0, 1), 337s ((2,), (1,), 0, 1), 337s ((1,), (2,), 0, 1), 337s ((3,), (3,), 1, 2), 337s ((1000,), (100,), 150, 1050), 337s ((100,), (1000,), 25, 75), 337s ((1, 100), (1, 1), 0, 1), 337s ((100, 1), (3, 1), 56, 100), 337s ((100, 100), (10, 10), 13, 99), 337s ((10, 10, 10), (3, 3, 3), 2, 4), 337s ) 337s for shape, chunks, start, end in params: 337s z = self.create_array(shape=shape, chunks=chunks, dtype=int) 337s a = np.arange(np.prod(shape)).reshape(shape) 337s z[:] = a 337s end_array = min(end, a.shape[0]) 337s > for expect, actual in zip_longest(a[start:end_array], z.islice(start, end)): 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1553: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:637: in islice 337s chunk = self[j : j + chunk_size] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x08\x10\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________________ TestArrayWithFSStorePartialRead.test_non_cont _________________ 337s 337s self = 337s 337s def test_non_cont(self): 337s z = self.create_array(shape=(500, 500, 500), chunks=(50, 50, 50), dtype=" assert z[0, :, 0].any() 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2446: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:796: in __getitem__ 337s result = self.get_orthogonal_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x04 \xa1\x07\x00\x00\x01\x00\x00>\xb7\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _ TestArrayWithFSStorePartialRead.test_read_nitems_less_than_blocksize_from_multiple_chunks _ 337s 337s self = 337s 337s def test_read_nitems_less_than_blocksize_from_multiple_chunks(self): 337s """Tests to make sure decompression doesn't fail when `nitems` is 337s less than a compressed block size, but covers multiple blocks 337s """ 337s z = self.create_array(shape=1000000, chunks=100_000) 337s z[40_000:80_000] = 1 337s path = None if self.version == 2 else z.path 337s b = Array(z.store, path=path, read_only=True, partial_decompress=True) 337s > assert (b[40_000:80_000] == 1).all() 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2456: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08\x005\x0c\x00\x00\x01\x00\x00\xd3\x18\x01\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s __________ TestArrayWithFSStorePartialRead.test_read_from_all_blocks ___________ 337s 337s self = 337s 337s def test_read_from_all_blocks(self): 337s """Tests to make sure `PartialReadBuffer.read_part` doesn't fail when 337s stop isn't in the `start_points` array 337s """ 337s z = self.create_array(shape=1000000, chunks=100_000) 337s z[2:99_000] = 1 337s path = None if self.version == 2 else z.path 337s b = Array(z.store, path=path, read_only=True, partial_decompress=True) 337s > assert (b[2:99_000] == 1).all() 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2466: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08\x005\x0c\x00\x00\x01\x00\x00\xe7`\x01\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStoreNestedPartialRead.test_array_1d ______________ 337s 337s self = 337s 337s def test_array_1d(self): 337s a = np.arange(1050) 337s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype) 337s 337s # check properties 337s assert len(a) == len(z) 337s assert a.ndim == z.ndim 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (100,) == z.chunks 337s assert a.nbytes == z.nbytes 337s assert 11 == z.nchunks 337s assert 0 == z.nchunks_initialized 337s assert (11,) == z.cdata_shape 337s 337s # check empty 337s b = z[:] 337s assert isinstance(b, np.ndarray) 337s assert a.shape == b.shape 337s assert a.dtype == b.dtype 337s 337s # check attributes 337s z.attrs["foo"] = "bar" 337s assert "bar" == z.attrs["foo"] 337s 337s # set data 337s z[:] = a 337s 337s # check properties 337s assert a.nbytes == z.nbytes 337s assert 11 == z.nchunks 337s assert 11 == z.nchunks_initialized 337s 337s # check slicing 337s > assert_array_equal(a, np.array(z)) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:288: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 337s return np.array(self[...], *args, **kwargs) 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00n\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________ TestArrayWithFSStoreNestedPartialRead.test_array_1d_fill_value ________ 337s 337s self = 337s 337s def test_array_1d_fill_value(self): 337s for fill_value in -1, 0, 1, 10: 337s a = np.arange(1050) 337s f = np.empty_like(a) 337s f.fill(fill_value) 337s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype, fill_value=fill_value) 337s z[190:310] = a[190:310] 337s 337s > assert_array_equal(f[:190], z[:190]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:344: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00?\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________ TestArrayWithFSStoreNestedPartialRead.test_array_1d_selections ________ 337s 337s self = 337s 337s def test_array_1d_selections(self): 337s # light test here, full tests in test_indexing 337s 337s # setup 337s a = np.arange(1050) 337s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype) 337s z[:] = a 337s 337s # get 337s > assert_array_equal(a[50:150], z.get_orthogonal_selection(slice(50, 150))) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:378: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00\x8e\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStoreNestedPartialRead.test_array_2d ______________ 337s 337s self = 337s 337s def test_array_2d(self): 337s a = np.arange(10000).reshape((1000, 10)) 337s z = self.create_array(shape=a.shape, chunks=(100, 2), dtype=a.dtype) 337s 337s # check properties 337s assert len(a) == len(z) 337s assert a.ndim == z.ndim 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (100, 2) == z.chunks 337s assert 0 == z.nchunks_initialized 337s assert (10, 5) == z.cdata_shape 337s 337s # set data 337s z[:] = a 337s 337s # check properties 337s assert a.nbytes == z.nbytes 337s assert 50 == z.nchunks_initialized 337s 337s # check array-like 337s > assert_array_equal(a, np.array(z)) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:440: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 337s return np.array(self[...], *args, **kwargs) 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x01!\x08@\x06\x00\x00@\x06\x00\x00X\x01\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ________ TestArrayWithFSStoreNestedPartialRead.test_array_2d_edge_case _________ 337s 337s self = 337s 337s def test_array_2d_edge_case(self): 337s # this fails with filters - chunks extend beyond edge of array, messes with delta 337s # filter if no fill value? 337s shape = 1000, 10 337s chunks = 300, 30 337s dtype = "i8" 337s z = self.create_array(shape=shape, dtype=dtype, chunks=chunks) 337s z[:] = 0 337s expect = np.zeros(shape, dtype=dtype) 337s > actual = z[:] 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:537: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x01!\x08@\x19\x01\x00@\x19\x01\x00\xa4\x01\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _________ TestArrayWithFSStoreNestedPartialRead.test_array_2d_partial __________ 337s 337s self = 337s 337s def test_array_2d_partial(self): 337s z = self.create_array(shape=(1000, 10), chunks=(100, 2), dtype="i4", fill_value=0) 337s 337s # check partial assignment, single row 337s c = np.arange(z.shape[1]) 337s z[0, :] = c 337s with pytest.raises(ValueError): 337s # N.B., NumPy allows this, but we'll be strict for now 337s z[2:3] = c 337s with pytest.raises(ValueError): 337s # N.B., NumPy allows this, but we'll be strict for now 337s z[-1:] = c 337s z[2:3] = c[None, :] 337s z[-1:] = c[None, :] 337s > assert_array_equal(c, z[0, :]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:556: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:796: in __getitem__ 337s result = self.get_orthogonal_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x01!\x04 \x03\x00\x00 \x03\x00\x00Z\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ____________ TestArrayWithFSStoreNestedPartialRead.test_array_order ____________ 337s 337s self = 337s 337s def test_array_order(self): 337s # 1D 337s a = np.arange(1050) 337s for order in "C", "F": 337s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype, order=order) 337s assert order == z.order 337s if order == "F": 337s assert z[:].flags.f_contiguous 337s else: 337s assert z[:].flags.c_contiguous 337s z[:] = a 337s > assert_array_equal(a, z[:]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:594: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00n\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStoreNestedPartialRead.test_resize_1d _____________ 337s 337s self = 337s 337s def test_resize_1d(self): 337s z = self.create_array(shape=105, chunks=10, dtype="i4", fill_value=0) 337s a = np.arange(105, dtype="i4") 337s z[:] = a 337s assert (105,) == z.shape 337s > assert (105,) == z[:].shape 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:679: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x04(\x00\x00\x00(\x00\x00\x008\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStoreNestedPartialRead.test_resize_2d _____________ 337s 337s self = 337s 337s def test_resize_2d(self): 337s z = self.create_array(shape=(105, 105), chunks=(10, 10), dtype="i4", fill_value=0) 337s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 337s z[:] = a 337s assert (105, 105) == z.shape 337s > assert (105, 105) == z[:].shape 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:714: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x90\x01\x00\x00\xa3\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStoreNestedPartialRead.test_append_1d _____________ 337s 337s self = 337s 337s def test_append_1d(self): 337s a = np.arange(105) 337s z = self.create_array(shape=a.shape, chunks=10, dtype=a.dtype) 337s z[:] = a 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (10,) == z.chunks 337s > assert_array_equal(a, z[:]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:776: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x08P\x00\x00\x00P\x00\x00\x00`\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStoreNestedPartialRead.test_append_2d _____________ 337s 337s self = 337s 337s def test_append_2d(self): 337s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 337s z = self.create_array(shape=a.shape, chunks=(10, 10), dtype=a.dtype) 337s z[:] = a 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (10, 10) == z.chunks 337s > actual = z[:] 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:804: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x90\x01\x00\x00\xa3\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s __________ TestArrayWithFSStoreNestedPartialRead.test_append_2d_axis ___________ 337s 337s self = 337s 337s def test_append_2d_axis(self): 337s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 337s z = self.create_array(shape=a.shape, chunks=(10, 10), dtype=a.dtype) 337s z[:] = a 337s assert a.shape == z.shape 337s assert a.dtype == z.dtype 337s assert (10, 10) == z.chunks 337s > assert_array_equal(a, z[:]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:825: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x90\x01\x00\x00\xa3\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStoreNestedPartialRead.test_np_ufuncs _____________ 337s 337s self = 337s 337s def test_np_ufuncs(self): 337s z = self.create_array(shape=(100, 100), chunks=(10, 10)) 337s a = np.arange(10000).reshape(100, 100) 337s z[:] = a 337s 337s > assert np.sum(a) == np.sum(z) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:917: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:2313: in sum 337s return _wrapreduction(a, np.add, 'sum', axis, dtype, out, keepdims=keepdims, 337s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:88: in _wrapreduction 337s return ufunc.reduce(obj, axis, dtype, out, **passkwargs) 337s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 337s return np.array(self[...], *args, **kwargs) 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00\xed\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _________ TestArrayWithFSStoreNestedPartialRead.test_array_dtype_shape _________ 337s 337s self = 337s 337s def test_array_dtype_shape(self): 337s dt = "(2, 2)f4" 337s # setup some data 337s d = np.array([((0, 1), (1, 2)), ((1, 2), (2, 3)), ((2, 3), (3, 4))], dtype=dt) 337s 337s for a in (d, d[:0]): 337s for fill_value in None, 0: 337s z = self.create_array(shape=a.shape[:-2], chunks=2, dtype=dt, fill_value=fill_value) 337s assert len(a) == len(z) 337s if fill_value is not None: 337s assert fill_value == z.fill_value 337s z[...] = a 337s > assert_array_equal(a, z[...]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1101: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x04 \x00\x00\x00 \x00\x00\x000\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _________ TestArrayWithFSStoreNestedPartialRead.test_structured_array __________ 337s 337s self = 337s 337s def test_structured_array(self): 337s d = np.array( 337s [(b"aaa", 1, 4.2), (b"bbb", 2, 8.4), (b"ccc", 3, 12.6)], 337s dtype=[("foo", "S3"), ("bar", "i4"), ("baz", "f8")], 337s ) 337s fill_values = None, b"", (b"zzz", 42, 16.8) 337s > self.check_structured_array(d, fill_values) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1151: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 337s assert a[0] == z[0] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x0f\x1e\x00\x00\x00\x1e\x00\x00\x00.\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ____ TestArrayWithFSStoreNestedPartialRead.test_structured_array_subshapes _____ 337s 337s self = 337s 337s def test_structured_array_subshapes(self): 337s d = np.array( 337s [ 337s (0, ((0, 1, 2), (1, 2, 3)), b"aaa"), 337s (1, ((1, 2, 3), (2, 3, 4)), b"bbb"), 337s (2, ((2, 3, 4), (3, 4, 5)), b"ccc"), 337s ], 337s dtype=[("foo", "i8"), ("bar", "(2, 3)f4"), ("baz", "S3")], 337s ) 337s fill_values = None, b"", (0, ((0, 0, 0), (1, 1, 1)), b"zzz") 337s > self.check_structured_array(d, fill_values) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1163: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 337s assert a[0] == z[0] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013#F\x00\x00\x00F\x00\x00\x00V\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ______ TestArrayWithFSStoreNestedPartialRead.test_structured_array_nested ______ 337s 337s self = 337s 337s def test_structured_array_nested(self): 337s d = np.array( 337s [ 337s (0, (0, ((0, 1), (1, 2), (2, 3)), 0), b"aaa"), 337s (1, (1, ((1, 2), (2, 3), (3, 4)), 1), b"bbb"), 337s (2, (2, ((2, 3), (3, 4), (4, 5)), 2), b"ccc"), 337s ], 337s dtype=[ 337s ("foo", "i8"), 337s ("bar", [("foo", "i4"), ("bar", "(3, 2)f4"), ("baz", "u1")]), 337s ("baz", "S3"), 337s ], 337s ) 337s fill_values = None, b"", (0, (0, ((0, 0), (1, 1), (2, 2)), 0), b"zzz") 337s > self.check_structured_array(d, fill_values) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1179: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 337s assert a[0] == z[0] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013(P\x00\x00\x00P\x00\x00\x00`\x00\x00\x00',), kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ______________ TestArrayWithFSStoreNestedPartialRead.test_dtypes _______________ 337s 337s self = 337s 337s def test_dtypes(self): 337s # integers 337s for dtype in "u1", "u2", "u4", "u8", "i1", "i2", "i4", "i8": 337s z = self.create_array(shape=10, chunks=3, dtype=dtype) 337s assert z.dtype == np.dtype(dtype) 337s a = np.arange(z.shape[0], dtype=dtype) 337s z[:] = a 337s > assert_array_equal(a, z[:]) 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1188: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x01\x03\x00\x00\x00\x03\x00\x00\x00\x13\x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _______________ TestArrayWithFSStoreNestedPartialRead.test_iter ________________ 337s 337s self = 337s 337s def test_iter(self): 337s params = ( 337s ((1,), (1,)), 337s ((2,), (1,)), 337s ((1,), (2,)), 337s ((3,), (3,)), 337s ((1000,), (100,)), 337s ((100,), (1000,)), 337s ((1, 100), (1, 1)), 337s ((1, 0), (1, 1)), 337s ((0, 1), (1, 1)), 337s ((0, 1), (2, 1)), 337s ((100, 1), (3, 1)), 337s ((100, 100), (10, 10)), 337s ((10, 10, 10), (3, 3, 3)), 337s ) 337s for shape, chunks in params: 337s z = self.create_array(shape=shape, chunks=chunks, dtype=int) 337s a = np.arange(np.prod(shape)).reshape(shape) 337s z[:] = a 337s > for expect, actual in zip_longest(a, z): 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1531: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:637: in islice 337s chunk = self[j : j + chunk_size] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x08\x10\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s ______________ TestArrayWithFSStoreNestedPartialRead.test_islice _______________ 337s 337s self = 337s 337s def test_islice(self): 337s params = ( 337s ((1,), (1,), 0, 1), 337s ((2,), (1,), 0, 1), 337s ((1,), (2,), 0, 1), 337s ((3,), (3,), 1, 2), 337s ((1000,), (100,), 150, 1050), 337s ((100,), (1000,), 25, 75), 337s ((1, 100), (1, 1), 0, 1), 337s ((100, 1), (3, 1), 56, 100), 337s ((100, 100), (10, 10), 13, 99), 337s ((10, 10, 10), (3, 3, 3), 2, 4), 337s ) 337s for shape, chunks, start, end in params: 337s z = self.create_array(shape=shape, chunks=chunks, dtype=int) 337s a = np.arange(np.prod(shape)).reshape(shape) 337s z[:] = a 337s end_array = min(end, a.shape[0]) 337s > for expect, actual in zip_longest(a[start:end_array], z.islice(start, end)): 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1553: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:637: in islice 337s chunk = self[j : j + chunk_size] 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x013\x08\x10\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _____________ TestArrayWithFSStoreNestedPartialRead.test_non_cont ______________ 337s 337s self = 337s 337s def test_non_cont(self): 337s z = self.create_array(shape=(500, 500, 500), chunks=(50, 50, 50), dtype=" assert z[0, :, 0].any() 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2503: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:796: in __getitem__ 337s result = self.get_orthogonal_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x01!\x04 \xa1\x07\x00 \xa1\x07\x00\xf8\x07\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _ TestArrayWithFSStoreNestedPartialRead.test_read_nitems_less_than_blocksize_from_multiple_chunks _ 337s 337s self = 337s 337s def test_read_nitems_less_than_blocksize_from_multiple_chunks(self): 337s """Tests to make sure decompression doesn't fail when `nitems` is 337s less than a compressed block size, but covers multiple blocks 337s """ 337s z = self.create_array(shape=1000000, chunks=100_000) 337s z[40_000:80_000] = 1 337s path = None if self.version == 2 else z.path 337s b = Array(z.store, path=path, read_only=True, partial_decompress=True) 337s > assert (b[40_000:80_000] == 1).all() 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2513: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x01!\x08\x005\x0c\x00\x005\x0c\x00\xdc\x0c\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s _______ TestArrayWithFSStoreNestedPartialRead.test_read_from_all_blocks ________ 337s 337s self = 337s 337s def test_read_from_all_blocks(self): 337s """Tests to make sure `PartialReadBuffer.read_part` doesn't fail when 337s stop isn't in the `start_points` array 337s """ 337s z = self.create_array(shape=1000000, chunks=100_000) 337s z[2:99_000] = 1 337s path = None if self.version == 2 else z.path 337s b = Array(z.store, path=path, read_only=True, partial_decompress=True) 337s > assert (b[2:99_000] == 1).all() 337s 337s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2523: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 337s result = self.get_basic_selection(pure_selection, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 337s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 337s return self._get_selection(indexer=indexer, out=out, fields=fields) 337s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 337s self._chunk_getitems( 337s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 337s self._process_chunk( 337s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 337s cdata.prepare_chunk() 337s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 337s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s wrapped_ = , instance_ = None 337s args_ = (b'\x02\x01!\x08\x005\x0c\x00\x005\x0c\x00\xe0\x0c\x00\x00',) 337s kwargs_ = {} 337s 337s @wrapt.decorator 337s def wrapper_function(wrapped_, instance_, args_, kwargs_): 337s msg = self.get_deprecated_msg(wrapped_, instance_) 337s stacklevel = _routine_stacklevel + self.extra_stacklevel 337s if self.action: 337s with warnings.catch_warnings(): 337s warnings.simplefilter(self.action, self.category) 337s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s else: 337s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 337s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 337s 337s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 337s =============================== warnings summary =============================== 337s tests/test_core.py::TestArrayWithDBMStore::test_array_order 337s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in: 337s 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/zarr/indexing.py", line 355, in 337s chunk_coords = tuple(p.dim_chunk_ix for p in dim_projections) 337s 337s ResourceWarning: unclosed database in 337s 337s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 337s 337s tests/test_core.py::TestArrayWithDBMStore::test_object_arrays_danger 337s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in: 337s 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/zarr/indexing.py", line 356, in 337s chunk_selection = tuple(p.dim_chunk_sel for p in dim_projections) 337s 337s ResourceWarning: unclosed database in 337s 337s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 337s 337s tests/test_core.py::TestArrayWithSQLiteStore::test_array_1d_fill_value 337s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in: 337s 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/zarr/indexing.py", line 356, in 337s chunk_selection = tuple(p.dim_chunk_sel for p in dim_projections) 337s 337s ResourceWarning: unclosed database in 337s 337s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 337s 337s tests/test_core.py::TestArrayWithSQLiteStore::test_object_arrays_vlen_text 337s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in: 337s 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/zarr/indexing.py", line 240, in 337s n_ellipsis = sum(1 for i in selection if i is Ellipsis) 337s 337s ResourceWarning: unclosed database in 337s 337s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 337s 337s tests/test_core.py::TestArrayWithNoCompressor::test_array_2d 337s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in: 337s 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/zarr/indexing.py", line 355, in 337s chunk_coords = tuple(p.dim_chunk_ix for p in dim_projections) 337s 337s ResourceWarning: unclosed database in 337s 337s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 337s 337s tests/test_filters.py::test_array_with_scaleoffset_filter 337s /usr/lib/python3/dist-packages/numcodecs/fixedscaleoffset.py:97: RuntimeWarning: invalid value encountered in cast 337s return enc.astype(self.astype, copy=False) 337s 337s tests/test_storage.py::TestZipStore::test_store_and_retrieve_ndarray 337s /usr/lib/python3.13/zipfile/__init__.py:1638: UserWarning: Duplicate name: 'foo' 337s return self._open_to_write(zinfo, force_zip64=force_zip64) 337s 337s tests/test_sync.py::TestArrayWithProcessSynchronizer::test_parallel_setitem 337s tests/test_sync.py::TestArrayWithProcessSynchronizer::test_parallel_setitem 337s tests/test_sync.py::TestArrayWithProcessSynchronizer::test_parallel_append 337s tests/test_sync.py::TestArrayWithProcessSynchronizer::test_parallel_append 337s tests/test_sync.py::TestGroupWithProcessSynchronizer::test_parallel_create_group 337s tests/test_sync.py::TestGroupWithProcessSynchronizer::test_parallel_create_group 337s tests/test_sync.py::TestGroupWithProcessSynchronizer::test_parallel_require_group 337s tests/test_sync.py::TestGroupWithProcessSynchronizer::test_parallel_require_group 337s /usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: This process (pid=3095) is multi-threaded, use of fork() may lead to deadlocks in the child. 337s self.pid = os.fork() 337s 337s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 337s ============================= slowest 10 durations ============================= 337s 12.11s call tests/test_indexing.py::test_set_orthogonal_selection_3d 337s 2.28s call tests/test_storage.py::test_format_compatibility 337s 1.76s call tests/test_core.py::TestArrayWithSQLiteStore::test_iter 337s 1.57s call tests/test_indexing.py::test_set_orthogonal_selection_2d 337s 1.50s call tests/test_core.py::TestArrayWithSQLiteStore::test_islice 337s 1.48s call tests/test_core.py::TestArrayWithSQLiteStore::test_resize_2d 337s 1.44s call tests/test_core.py::TestArrayWithDBMStore::test_iter 337s 1.37s call tests/test_core.py::TestArrayWithSQLiteStore::test_append_2d_axis 337s 1.37s call tests/test_core.py::TestArrayWithSQLiteStore::test_append_2d 337s 1.35s call tests/test_core.py::TestArrayWithDBMStore::test_object_arrays_vlen_array 337s =========================== short test summary info ============================ 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_1d - D... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_1d_fill_value 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_1d_selections 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_2d - D... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_2d_edge_case 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_2d_partial 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_order 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_resize_1d - ... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_resize_2d - ... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_append_1d - ... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_append_2d - ... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_append_2d_axis 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_np_ufuncs - ... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_dtype_shape 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_structured_array 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_structured_array_subshapes 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_structured_array_nested 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_dtypes - Dep... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_iter - Depre... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_islice - Dep... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_non_cont - D... 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_read_nitems_less_than_blocksize_from_multiple_chunks 337s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_read_from_all_blocks 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_1d 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_1d_fill_value 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_1d_selections 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_2d 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_2d_edge_case 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_2d_partial 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_order 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_resize_1d 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_resize_2d 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_append_1d 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_append_2d 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_append_2d_axis 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_np_ufuncs 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_dtype_shape 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_structured_array 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_structured_array_subshapes 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_structured_array_nested 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_dtypes 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_iter 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_islice 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_non_cont 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_read_nitems_less_than_blocksize_from_multiple_chunks 337s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_read_from_all_blocks 337s = 46 failed, 2204 passed, 2004 skipped, 717 deselected, 4 xfailed, 15 warnings in 116.10s (0:01:56) = 339s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.oPgZDx/autopkgtest_tmp/build; python3.13 -m pytest -k "not test_hierarchy and not test_complex and not test_array_with_delta_filter and not test_utf8_encoding and not [static_flat] and not [static_nested] and not [static_flat_legacy] and not [static_nested_legacy] and not test_meta_prefix_6853 and not test_encode_decode_array_dtype_shape_v3" --pyargs zarr 339s I: pybuild base:311: cd /tmp/autopkgtest.oPgZDx/autopkgtest_tmp/build; python3.12 -m pytest -k "not test_hierarchy and not test_complex and not test_array_with_delta_filter and not test_utf8_encoding and not [static_flat] and not [static_nested] and not [static_flat_legacy] and not [static_nested_legacy] and not test_meta_prefix_6853 and not test_encode_decode_array_dtype_shape_v3" --pyargs zarr 343s ============================= test session starts ============================== 343s platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 343s rootdir: /tmp/autopkgtest.oPgZDx/autopkgtest_tmp/build 343s configfile: pyproject.toml 343s plugins: typeguard-4.4.1, timeout-2.3.1, doctestplus-1.3.0 343s collected 4975 items / 717 deselected / 4258 selected 343s 343s tests/test_attrs.py .................. [ 0%] 343s tests/test_convenience.py .....ss...................ssssssss.s.......... [ 1%] 344s ..................................................ssssssssssssssssssssss [ 3%] 344s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 4%] 344s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 6%] 344s ssssssssssssss [ 6%] 346s tests/test_core.py ..................................................... [ 8%] 348s ........................................................................ [ 9%] 352s ................................................................ssssssss [ 11%] 352s sssssssssssssssssssssssssssssssssssssss................................. [ 13%] 356s ........................................................................ [ 14%] 359s ........................................................................ [ 16%] 361s .............sssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 18%] 371s sssssssssssssssssssssssssssssssssss..................................... [ 19%] 377s ........................................................................ [ 21%] 381s ........................................................................ [ 23%] 383s ........................................................................ [ 25%] 385s ........................................................................ [ 26%] 387s ........................................................................ [ 28%] 391s ........................................................................ [ 30%] 397s .........................................................FF.FFFFF..FFFFF [ 31%] 405s ...F....FFFFF......s.FF....FFF.......................................... [ 33%] 412s ..........FF.FFFFF..FFFFF...F....FFFFF......s.FF....FFFsssssssssssssssss [ 35%] 412s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 36%] 412s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 38%] 412s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 40%] 412s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 41%] 412s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 43%] 412s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 45%] 412s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 47%] 412s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 48%] 413s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 50%] 413s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 52%] 413s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 53%] 413s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 55%] 413s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...... [ 57%] 413s [ 57%] 413s tests/test_creation.py ................................................. [ 58%] 413s ..................................ss..... [ 59%] 414s tests/test_dim_separator.py ..........................x....x [ 60%] 414s tests/test_filters.py ...... [ 60%] 432s tests/test_indexing.py ................................................. [ 61%] 432s ......xx...... [ 61%] 432s tests/test_info.py .. [ 61%] 432s tests/test_meta.py ......................... [ 62%] 432s tests/test_meta_array.py .sss.sss.sss.sss.sss.sss.sss.sss..ssssss..sssss [ 63%] 432s s..ssssss..ssssss [ 63%] 432s tests/test_n5.py ..... [ 63%] 432s tests/test_storage.py ...................s........................s..... [ 65%] 432s ...................s.................................................... [ 66%] 432s .......................ss..............s................................ [ 68%] 433s ........................................................................ [ 70%] 433s ....................ss.................................................. [ 71%] 433s .............s.......................................................... [ 73%] 433s ........................................................................ [ 75%] 434s .....ssssssssssssssssssssssss........................................... [ 76%] 434s .......ssssssssssssssssssssssssssssssssssssssssssssssss.............s... [ 78%] 435s ..............ssssssssssssssssssssssssss....... [ 79%] 435s tests/test_storage_v3.py sssssssssssssssssssssssssssssssssssssssssssssss [ 80%] 435s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 82%] 435s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 84%] 435s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 85%] 435s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 87%] 435s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 89%] 435s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 90%] 435s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 92%] 435s ssssssssssssss [ 93%] 436s tests/test_sync.py ..................................................... [ 94%] 437s ........................................................................ [ 95%] 441s ........................................................................ [ 97%] 443s ........................................................................ [ 99%] 443s ........... [ 99%] 443s tests/test_util.py .................. [100%] 443s 443s =================================== FAILURES =================================== 443s ________________ TestArrayWithFSStorePartialRead.test_array_1d _________________ 443s 443s self = 443s 443s def test_array_1d(self): 443s a = np.arange(1050) 443s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype) 443s 443s # check properties 443s assert len(a) == len(z) 443s assert a.ndim == z.ndim 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (100,) == z.chunks 443s assert a.nbytes == z.nbytes 443s assert 11 == z.nchunks 443s assert 0 == z.nchunks_initialized 443s assert (11,) == z.cdata_shape 443s 443s # check empty 443s b = z[:] 443s assert isinstance(b, np.ndarray) 443s assert a.shape == b.shape 443s assert a.dtype == b.dtype 443s 443s # check attributes 443s z.attrs["foo"] = "bar" 443s assert "bar" == z.attrs["foo"] 443s 443s # set data 443s z[:] = a 443s 443s # check properties 443s assert a.nbytes == z.nbytes 443s assert 11 == z.nchunks 443s assert 11 == z.nchunks_initialized 443s 443s # check slicing 443s > assert_array_equal(a, np.array(z)) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:288: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 443s return np.array(self[...], *args, **kwargs) 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00\xab\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ___________ TestArrayWithFSStorePartialRead.test_array_1d_fill_value ___________ 443s 443s self = 443s 443s def test_array_1d_fill_value(self): 443s for fill_value in -1, 0, 1, 10: 443s a = np.arange(1050) 443s f = np.empty_like(a) 443s f.fill(fill_value) 443s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype, fill_value=fill_value) 443s z[190:310] = a[190:310] 443s 443s > assert_array_equal(f[:190], z[:190]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:344: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00}\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ___________ TestArrayWithFSStorePartialRead.test_array_1d_selections ___________ 443s 443s self = 443s 443s def test_array_1d_selections(self): 443s # light test here, full tests in test_indexing 443s 443s # setup 443s a = np.arange(1050) 443s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype) 443s z[:] = a 443s 443s # get 443s > assert_array_equal(a[50:150], z.get_orthogonal_selection(slice(50, 150))) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:378: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00\xd2\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________________ TestArrayWithFSStorePartialRead.test_array_2d _________________ 443s 443s self = 443s 443s def test_array_2d(self): 443s a = np.arange(10000).reshape((1000, 10)) 443s z = self.create_array(shape=a.shape, chunks=(100, 2), dtype=a.dtype) 443s 443s # check properties 443s assert len(a) == len(z) 443s assert a.ndim == z.ndim 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (100, 2) == z.chunks 443s assert 0 == z.nchunks_initialized 443s assert (10, 5) == z.cdata_shape 443s 443s # set data 443s z[:] = a 443s 443s # check properties 443s assert a.nbytes == z.nbytes 443s assert 50 == z.nchunks_initialized 443s 443s # check array-like 443s > assert_array_equal(a, np.array(z)) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:440: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 443s return np.array(self[...], *args, **kwargs) 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08@\x06\x00\x00\x00\x01\x00\x00\xb2\x01\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ___________ TestArrayWithFSStorePartialRead.test_array_2d_edge_case ____________ 443s 443s self = 443s 443s def test_array_2d_edge_case(self): 443s # this fails with filters - chunks extend beyond edge of array, messes with delta 443s # filter if no fill value? 443s shape = 1000, 10 443s chunks = 300, 30 443s dtype = "i8" 443s z = self.create_array(shape=shape, dtype=dtype, chunks=chunks) 443s z[:] = 0 443s expect = np.zeros(shape, dtype=dtype) 443s > actual = z[:] 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:537: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08@\x19\x01\x00\x00\x01\x00\x00\xfe\x14\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ____________ TestArrayWithFSStorePartialRead.test_array_2d_partial _____________ 443s 443s self = 443s 443s def test_array_2d_partial(self): 443s z = self.create_array(shape=(1000, 10), chunks=(100, 2), dtype="i4", fill_value=0) 443s 443s # check partial assignment, single row 443s c = np.arange(z.shape[1]) 443s z[0, :] = c 443s with pytest.raises(ValueError): 443s # N.B., NumPy allows this, but we'll be strict for now 443s z[2:3] = c 443s with pytest.raises(ValueError): 443s # N.B., NumPy allows this, but we'll be strict for now 443s z[-1:] = c 443s z[2:3] = c[None, :] 443s z[-1:] = c[None, :] 443s > assert_array_equal(c, z[0, :]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:556: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:796: in __getitem__ 443s result = self.get_orthogonal_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x04 \x03\x00\x00\x00\x01\x00\x00f\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _______________ TestArrayWithFSStorePartialRead.test_array_order _______________ 443s 443s self = 443s 443s def test_array_order(self): 443s # 1D 443s a = np.arange(1050) 443s for order in "C", "F": 443s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype, order=order) 443s assert order == z.order 443s if order == "F": 443s assert z[:].flags.f_contiguous 443s else: 443s assert z[:].flags.c_contiguous 443s z[:] = a 443s > assert_array_equal(a, z[:]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:594: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00\xab\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________________ TestArrayWithFSStorePartialRead.test_resize_1d ________________ 443s 443s self = 443s 443s def test_resize_1d(self): 443s z = self.create_array(shape=105, chunks=10, dtype="i4", fill_value=0) 443s a = np.arange(105, dtype="i4") 443s z[:] = a 443s assert (105,) == z.shape 443s > assert (105,) == z[:].shape 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:679: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x04(\x00\x00\x00(\x00\x00\x008\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________________ TestArrayWithFSStorePartialRead.test_resize_2d ________________ 443s 443s self = 443s 443s def test_resize_2d(self): 443s z = self.create_array(shape=(105, 105), chunks=(10, 10), dtype="i4", fill_value=0) 443s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 443s z[:] = a 443s assert (105, 105) == z.shape 443s > assert (105, 105) == z[:].shape 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:714: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x00\x01\x00\x00\xbe\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________________ TestArrayWithFSStorePartialRead.test_append_1d ________________ 443s 443s self = 443s 443s def test_append_1d(self): 443s a = np.arange(105) 443s z = self.create_array(shape=a.shape, chunks=10, dtype=a.dtype) 443s z[:] = a 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (10,) == z.chunks 443s > assert_array_equal(a, z[:]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:776: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x08P\x00\x00\x00P\x00\x00\x00`\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________________ TestArrayWithFSStorePartialRead.test_append_2d ________________ 443s 443s self = 443s 443s def test_append_2d(self): 443s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 443s z = self.create_array(shape=a.shape, chunks=(10, 10), dtype=a.dtype) 443s z[:] = a 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (10, 10) == z.chunks 443s > actual = z[:] 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:804: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x00\x01\x00\x00\xbe\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStorePartialRead.test_append_2d_axis ______________ 443s 443s self = 443s 443s def test_append_2d_axis(self): 443s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 443s z = self.create_array(shape=a.shape, chunks=(10, 10), dtype=a.dtype) 443s z[:] = a 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (10, 10) == z.chunks 443s > assert_array_equal(a, z[:]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:825: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x00\x01\x00\x00\xbe\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________________ TestArrayWithFSStorePartialRead.test_np_ufuncs ________________ 443s 443s self = 443s 443s def test_np_ufuncs(self): 443s z = self.create_array(shape=(100, 100), chunks=(10, 10)) 443s a = np.arange(10000).reshape(100, 100) 443s z[:] = a 443s 443s > assert np.sum(a) == np.sum(z) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:917: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:2313: in sum 443s return _wrapreduction(a, np.add, 'sum', axis, dtype, out, keepdims=keepdims, 443s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:88: in _wrapreduction 443s return ufunc.reduce(obj, axis, dtype, out, **passkwargs) 443s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 443s return np.array(self[...], *args, **kwargs) 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00\x00\x01\x00\x00-\x01\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ____________ TestArrayWithFSStorePartialRead.test_array_dtype_shape ____________ 443s 443s self = 443s 443s def test_array_dtype_shape(self): 443s dt = "(2, 2)f4" 443s # setup some data 443s d = np.array([((0, 1), (1, 2)), ((1, 2), (2, 3)), ((2, 3), (3, 4))], dtype=dt) 443s 443s for a in (d, d[:0]): 443s for fill_value in None, 0: 443s z = self.create_array(shape=a.shape[:-2], chunks=2, dtype=dt, fill_value=fill_value) 443s assert len(a) == len(z) 443s if fill_value is not None: 443s assert fill_value == z.fill_value 443s z[...] = a 443s > assert_array_equal(a, z[...]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1101: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x04 \x00\x00\x00 \x00\x00\x000\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ____________ TestArrayWithFSStorePartialRead.test_structured_array _____________ 443s 443s self = 443s 443s def test_structured_array(self): 443s d = np.array( 443s [(b"aaa", 1, 4.2), (b"bbb", 2, 8.4), (b"ccc", 3, 12.6)], 443s dtype=[("foo", "S3"), ("bar", "i4"), ("baz", "f8")], 443s ) 443s fill_values = None, b"", (b"zzz", 42, 16.8) 443s > self.check_structured_array(d, fill_values) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1151: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 443s assert a[0] == z[0] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x0f\x1e\x00\x00\x00\x1e\x00\x00\x00.\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _______ TestArrayWithFSStorePartialRead.test_structured_array_subshapes ________ 443s 443s self = 443s 443s def test_structured_array_subshapes(self): 443s d = np.array( 443s [ 443s (0, ((0, 1, 2), (1, 2, 3)), b"aaa"), 443s (1, ((1, 2, 3), (2, 3, 4)), b"bbb"), 443s (2, ((2, 3, 4), (3, 4, 5)), b"ccc"), 443s ], 443s dtype=[("foo", "i8"), ("bar", "(2, 3)f4"), ("baz", "S3")], 443s ) 443s fill_values = None, b"", (0, ((0, 0, 0), (1, 1, 1)), b"zzz") 443s > self.check_structured_array(d, fill_values) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1163: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 443s assert a[0] == z[0] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013#F\x00\x00\x00F\x00\x00\x00V\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _________ TestArrayWithFSStorePartialRead.test_structured_array_nested _________ 443s 443s self = 443s 443s def test_structured_array_nested(self): 443s d = np.array( 443s [ 443s (0, (0, ((0, 1), (1, 2), (2, 3)), 0), b"aaa"), 443s (1, (1, ((1, 2), (2, 3), (3, 4)), 1), b"bbb"), 443s (2, (2, ((2, 3), (3, 4), (4, 5)), 2), b"ccc"), 443s ], 443s dtype=[ 443s ("foo", "i8"), 443s ("bar", [("foo", "i4"), ("bar", "(3, 2)f4"), ("baz", "u1")]), 443s ("baz", "S3"), 443s ], 443s ) 443s fill_values = None, b"", (0, (0, ((0, 0), (1, 1), (2, 2)), 0), b"zzz") 443s > self.check_structured_array(d, fill_values) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1179: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 443s assert a[0] == z[0] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013(P\x00\x00\x00P\x00\x00\x00`\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _________________ TestArrayWithFSStorePartialRead.test_dtypes __________________ 443s 443s self = 443s 443s def test_dtypes(self): 443s # integers 443s for dtype in "u1", "u2", "u4", "u8", "i1", "i2", "i4", "i8": 443s z = self.create_array(shape=10, chunks=3, dtype=dtype) 443s assert z.dtype == np.dtype(dtype) 443s a = np.arange(z.shape[0], dtype=dtype) 443s z[:] = a 443s > assert_array_equal(a, z[:]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1188: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x01\x03\x00\x00\x00\x03\x00\x00\x00\x13\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s __________________ TestArrayWithFSStorePartialRead.test_iter ___________________ 443s 443s self = 443s 443s def test_iter(self): 443s params = ( 443s ((1,), (1,)), 443s ((2,), (1,)), 443s ((1,), (2,)), 443s ((3,), (3,)), 443s ((1000,), (100,)), 443s ((100,), (1000,)), 443s ((1, 100), (1, 1)), 443s ((1, 0), (1, 1)), 443s ((0, 1), (1, 1)), 443s ((0, 1), (2, 1)), 443s ((100, 1), (3, 1)), 443s ((100, 100), (10, 10)), 443s ((10, 10, 10), (3, 3, 3)), 443s ) 443s for shape, chunks in params: 443s z = self.create_array(shape=shape, chunks=chunks, dtype=int) 443s a = np.arange(np.prod(shape)).reshape(shape) 443s z[:] = a 443s > for expect, actual in zip_longest(a, z): 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1531: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:637: in islice 443s chunk = self[j : j + chunk_size] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x08\x10\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _________________ TestArrayWithFSStorePartialRead.test_islice __________________ 443s 443s self = 443s 443s def test_islice(self): 443s params = ( 443s ((1,), (1,), 0, 1), 443s ((2,), (1,), 0, 1), 443s ((1,), (2,), 0, 1), 443s ((3,), (3,), 1, 2), 443s ((1000,), (100,), 150, 1050), 443s ((100,), (1000,), 25, 75), 443s ((1, 100), (1, 1), 0, 1), 443s ((100, 1), (3, 1), 56, 100), 443s ((100, 100), (10, 10), 13, 99), 443s ((10, 10, 10), (3, 3, 3), 2, 4), 443s ) 443s for shape, chunks, start, end in params: 443s z = self.create_array(shape=shape, chunks=chunks, dtype=int) 443s a = np.arange(np.prod(shape)).reshape(shape) 443s z[:] = a 443s end_array = min(end, a.shape[0]) 443s > for expect, actual in zip_longest(a[start:end_array], z.islice(start, end)): 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1553: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:637: in islice 443s chunk = self[j : j + chunk_size] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x08\x10\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________________ TestArrayWithFSStorePartialRead.test_non_cont _________________ 443s 443s self = 443s 443s def test_non_cont(self): 443s z = self.create_array(shape=(500, 500, 500), chunks=(50, 50, 50), dtype=" assert z[0, :, 0].any() 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2446: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:796: in __getitem__ 443s result = self.get_orthogonal_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x04 \xa1\x07\x00\x00\x01\x00\x00>\xb7\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _ TestArrayWithFSStorePartialRead.test_read_nitems_less_than_blocksize_from_multiple_chunks _ 443s 443s self = 443s 443s def test_read_nitems_less_than_blocksize_from_multiple_chunks(self): 443s """Tests to make sure decompression doesn't fail when `nitems` is 443s less than a compressed block size, but covers multiple blocks 443s """ 443s z = self.create_array(shape=1000000, chunks=100_000) 443s z[40_000:80_000] = 1 443s path = None if self.version == 2 else z.path 443s b = Array(z.store, path=path, read_only=True, partial_decompress=True) 443s > assert (b[40_000:80_000] == 1).all() 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2456: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08\x005\x0c\x00\x00\x01\x00\x00\xd3\x18\x01\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s __________ TestArrayWithFSStorePartialRead.test_read_from_all_blocks ___________ 443s 443s self = 443s 443s def test_read_from_all_blocks(self): 443s """Tests to make sure `PartialReadBuffer.read_part` doesn't fail when 443s stop isn't in the `start_points` array 443s """ 443s z = self.create_array(shape=1000000, chunks=100_000) 443s z[2:99_000] = 1 443s path = None if self.version == 2 else z.path 443s b = Array(z.store, path=path, read_only=True, partial_decompress=True) 443s > assert (b[2:99_000] == 1).all() 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2466: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08\x005\x0c\x00\x00\x01\x00\x00\xe7`\x01\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStoreNestedPartialRead.test_array_1d ______________ 443s 443s self = 443s 443s def test_array_1d(self): 443s a = np.arange(1050) 443s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype) 443s 443s # check properties 443s assert len(a) == len(z) 443s assert a.ndim == z.ndim 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (100,) == z.chunks 443s assert a.nbytes == z.nbytes 443s assert 11 == z.nchunks 443s assert 0 == z.nchunks_initialized 443s assert (11,) == z.cdata_shape 443s 443s # check empty 443s b = z[:] 443s assert isinstance(b, np.ndarray) 443s assert a.shape == b.shape 443s assert a.dtype == b.dtype 443s 443s # check attributes 443s z.attrs["foo"] = "bar" 443s assert "bar" == z.attrs["foo"] 443s 443s # set data 443s z[:] = a 443s 443s # check properties 443s assert a.nbytes == z.nbytes 443s assert 11 == z.nchunks 443s assert 11 == z.nchunks_initialized 443s 443s # check slicing 443s > assert_array_equal(a, np.array(z)) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:288: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 443s return np.array(self[...], *args, **kwargs) 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00n\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________ TestArrayWithFSStoreNestedPartialRead.test_array_1d_fill_value ________ 443s 443s self = 443s 443s def test_array_1d_fill_value(self): 443s for fill_value in -1, 0, 1, 10: 443s a = np.arange(1050) 443s f = np.empty_like(a) 443s f.fill(fill_value) 443s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype, fill_value=fill_value) 443s z[190:310] = a[190:310] 443s 443s > assert_array_equal(f[:190], z[:190]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:344: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00?\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________ TestArrayWithFSStoreNestedPartialRead.test_array_1d_selections ________ 443s 443s self = 443s 443s def test_array_1d_selections(self): 443s # light test here, full tests in test_indexing 443s 443s # setup 443s a = np.arange(1050) 443s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype) 443s z[:] = a 443s 443s # get 443s > assert_array_equal(a[50:150], z.get_orthogonal_selection(slice(50, 150))) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:378: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00\x8e\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStoreNestedPartialRead.test_array_2d ______________ 443s 443s self = 443s 443s def test_array_2d(self): 443s a = np.arange(10000).reshape((1000, 10)) 443s z = self.create_array(shape=a.shape, chunks=(100, 2), dtype=a.dtype) 443s 443s # check properties 443s assert len(a) == len(z) 443s assert a.ndim == z.ndim 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (100, 2) == z.chunks 443s assert 0 == z.nchunks_initialized 443s assert (10, 5) == z.cdata_shape 443s 443s # set data 443s z[:] = a 443s 443s # check properties 443s assert a.nbytes == z.nbytes 443s assert 50 == z.nchunks_initialized 443s 443s # check array-like 443s > assert_array_equal(a, np.array(z)) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:440: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 443s return np.array(self[...], *args, **kwargs) 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x01!\x08@\x06\x00\x00@\x06\x00\x00X\x01\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ________ TestArrayWithFSStoreNestedPartialRead.test_array_2d_edge_case _________ 443s 443s self = 443s 443s def test_array_2d_edge_case(self): 443s # this fails with filters - chunks extend beyond edge of array, messes with delta 443s # filter if no fill value? 443s shape = 1000, 10 443s chunks = 300, 30 443s dtype = "i8" 443s z = self.create_array(shape=shape, dtype=dtype, chunks=chunks) 443s z[:] = 0 443s expect = np.zeros(shape, dtype=dtype) 443s > actual = z[:] 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:537: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x01!\x08@\x19\x01\x00@\x19\x01\x00\xa4\x01\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _________ TestArrayWithFSStoreNestedPartialRead.test_array_2d_partial __________ 443s 443s self = 443s 443s def test_array_2d_partial(self): 443s z = self.create_array(shape=(1000, 10), chunks=(100, 2), dtype="i4", fill_value=0) 443s 443s # check partial assignment, single row 443s c = np.arange(z.shape[1]) 443s z[0, :] = c 443s with pytest.raises(ValueError): 443s # N.B., NumPy allows this, but we'll be strict for now 443s z[2:3] = c 443s with pytest.raises(ValueError): 443s # N.B., NumPy allows this, but we'll be strict for now 443s z[-1:] = c 443s z[2:3] = c[None, :] 443s z[-1:] = c[None, :] 443s > assert_array_equal(c, z[0, :]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:556: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:796: in __getitem__ 443s result = self.get_orthogonal_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x01!\x04 \x03\x00\x00 \x03\x00\x00Z\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ____________ TestArrayWithFSStoreNestedPartialRead.test_array_order ____________ 443s 443s self = 443s 443s def test_array_order(self): 443s # 1D 443s a = np.arange(1050) 443s for order in "C", "F": 443s z = self.create_array(shape=a.shape, chunks=100, dtype=a.dtype, order=order) 443s assert order == z.order 443s if order == "F": 443s assert z[:].flags.f_contiguous 443s else: 443s assert z[:].flags.c_contiguous 443s z[:] = a 443s > assert_array_equal(a, z[:]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:594: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00n\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStoreNestedPartialRead.test_resize_1d _____________ 443s 443s self = 443s 443s def test_resize_1d(self): 443s z = self.create_array(shape=105, chunks=10, dtype="i4", fill_value=0) 443s a = np.arange(105, dtype="i4") 443s z[:] = a 443s assert (105,) == z.shape 443s > assert (105,) == z[:].shape 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:679: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x04(\x00\x00\x00(\x00\x00\x008\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStoreNestedPartialRead.test_resize_2d _____________ 443s 443s self = 443s 443s def test_resize_2d(self): 443s z = self.create_array(shape=(105, 105), chunks=(10, 10), dtype="i4", fill_value=0) 443s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 443s z[:] = a 443s assert (105, 105) == z.shape 443s > assert (105, 105) == z[:].shape 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:714: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x90\x01\x00\x00\xa3\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStoreNestedPartialRead.test_append_1d _____________ 443s 443s self = 443s 443s def test_append_1d(self): 443s a = np.arange(105) 443s z = self.create_array(shape=a.shape, chunks=10, dtype=a.dtype) 443s z[:] = a 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (10,) == z.chunks 443s > assert_array_equal(a, z[:]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:776: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x08P\x00\x00\x00P\x00\x00\x00`\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStoreNestedPartialRead.test_append_2d _____________ 443s 443s self = 443s 443s def test_append_2d(self): 443s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 443s z = self.create_array(shape=a.shape, chunks=(10, 10), dtype=a.dtype) 443s z[:] = a 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (10, 10) == z.chunks 443s > actual = z[:] 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:804: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x90\x01\x00\x00\xa3\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s __________ TestArrayWithFSStoreNestedPartialRead.test_append_2d_axis ___________ 443s 443s self = 443s 443s def test_append_2d_axis(self): 443s a = np.arange(105 * 105, dtype="i4").reshape((105, 105)) 443s z = self.create_array(shape=a.shape, chunks=(10, 10), dtype=a.dtype) 443s z[:] = a 443s assert a.shape == z.shape 443s assert a.dtype == z.dtype 443s assert (10, 10) == z.chunks 443s > assert_array_equal(a, z[:]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:825: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x04\x90\x01\x00\x00\x90\x01\x00\x00\xa3\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStoreNestedPartialRead.test_np_ufuncs _____________ 443s 443s self = 443s 443s def test_np_ufuncs(self): 443s z = self.create_array(shape=(100, 100), chunks=(10, 10)) 443s a = np.arange(10000).reshape(100, 100) 443s z[:] = a 443s 443s > assert np.sum(a) == np.sum(z) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:917: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:2313: in sum 443s return _wrapreduction(a, np.add, 'sum', axis, dtype, out, keepdims=keepdims, 443s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:88: in _wrapreduction 443s return ufunc.reduce(obj, axis, dtype, out, **passkwargs) 443s /usr/lib/python3/dist-packages/zarr/core.py:580: in __array__ 443s return np.array(self[...], *args, **kwargs) 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x011\x08 \x03\x00\x00 \x03\x00\x00\xed\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _________ TestArrayWithFSStoreNestedPartialRead.test_array_dtype_shape _________ 443s 443s self = 443s 443s def test_array_dtype_shape(self): 443s dt = "(2, 2)f4" 443s # setup some data 443s d = np.array([((0, 1), (1, 2)), ((1, 2), (2, 3)), ((2, 3), (3, 4))], dtype=dt) 443s 443s for a in (d, d[:0]): 443s for fill_value in None, 0: 443s z = self.create_array(shape=a.shape[:-2], chunks=2, dtype=dt, fill_value=fill_value) 443s assert len(a) == len(z) 443s if fill_value is not None: 443s assert fill_value == z.fill_value 443s z[...] = a 443s > assert_array_equal(a, z[...]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1101: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x04 \x00\x00\x00 \x00\x00\x000\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _________ TestArrayWithFSStoreNestedPartialRead.test_structured_array __________ 443s 443s self = 443s 443s def test_structured_array(self): 443s d = np.array( 443s [(b"aaa", 1, 4.2), (b"bbb", 2, 8.4), (b"ccc", 3, 12.6)], 443s dtype=[("foo", "S3"), ("bar", "i4"), ("baz", "f8")], 443s ) 443s fill_values = None, b"", (b"zzz", 42, 16.8) 443s > self.check_structured_array(d, fill_values) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1151: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 443s assert a[0] == z[0] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x0f\x1e\x00\x00\x00\x1e\x00\x00\x00.\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ____ TestArrayWithFSStoreNestedPartialRead.test_structured_array_subshapes _____ 443s 443s self = 443s 443s def test_structured_array_subshapes(self): 443s d = np.array( 443s [ 443s (0, ((0, 1, 2), (1, 2, 3)), b"aaa"), 443s (1, ((1, 2, 3), (2, 3, 4)), b"bbb"), 443s (2, ((2, 3, 4), (3, 4, 5)), b"ccc"), 443s ], 443s dtype=[("foo", "i8"), ("bar", "(2, 3)f4"), ("baz", "S3")], 443s ) 443s fill_values = None, b"", (0, ((0, 0, 0), (1, 1, 1)), b"zzz") 443s > self.check_structured_array(d, fill_values) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1163: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 443s assert a[0] == z[0] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013#F\x00\x00\x00F\x00\x00\x00V\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ______ TestArrayWithFSStoreNestedPartialRead.test_structured_array_nested ______ 443s 443s self = 443s 443s def test_structured_array_nested(self): 443s d = np.array( 443s [ 443s (0, (0, ((0, 1), (1, 2), (2, 3)), 0), b"aaa"), 443s (1, (1, ((1, 2), (2, 3), (3, 4)), 1), b"bbb"), 443s (2, (2, ((2, 3), (3, 4), (4, 5)), 2), b"ccc"), 443s ], 443s dtype=[ 443s ("foo", "i8"), 443s ("bar", [("foo", "i4"), ("bar", "(3, 2)f4"), ("baz", "u1")]), 443s ("baz", "S3"), 443s ], 443s ) 443s fill_values = None, b"", (0, (0, ((0, 0), (1, 1), (2, 2)), 0), b"zzz") 443s > self.check_structured_array(d, fill_values) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1179: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1136: in check_structured_array 443s assert a[0] == z[0] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013(P\x00\x00\x00P\x00\x00\x00`\x00\x00\x00',), kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ______________ TestArrayWithFSStoreNestedPartialRead.test_dtypes _______________ 443s 443s self = 443s 443s def test_dtypes(self): 443s # integers 443s for dtype in "u1", "u2", "u4", "u8", "i1", "i2", "i4", "i8": 443s z = self.create_array(shape=10, chunks=3, dtype=dtype) 443s assert z.dtype == np.dtype(dtype) 443s a = np.arange(z.shape[0], dtype=dtype) 443s z[:] = a 443s > assert_array_equal(a, z[:]) 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1188: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x01\x03\x00\x00\x00\x03\x00\x00\x00\x13\x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _______________ TestArrayWithFSStoreNestedPartialRead.test_iter ________________ 443s 443s self = 443s 443s def test_iter(self): 443s params = ( 443s ((1,), (1,)), 443s ((2,), (1,)), 443s ((1,), (2,)), 443s ((3,), (3,)), 443s ((1000,), (100,)), 443s ((100,), (1000,)), 443s ((1, 100), (1, 1)), 443s ((1, 0), (1, 1)), 443s ((0, 1), (1, 1)), 443s ((0, 1), (2, 1)), 443s ((100, 1), (3, 1)), 443s ((100, 100), (10, 10)), 443s ((10, 10, 10), (3, 3, 3)), 443s ) 443s for shape, chunks in params: 443s z = self.create_array(shape=shape, chunks=chunks, dtype=int) 443s a = np.arange(np.prod(shape)).reshape(shape) 443s z[:] = a 443s > for expect, actual in zip_longest(a, z): 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1531: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:637: in islice 443s chunk = self[j : j + chunk_size] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x08\x10\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s ______________ TestArrayWithFSStoreNestedPartialRead.test_islice _______________ 443s 443s self = 443s 443s def test_islice(self): 443s params = ( 443s ((1,), (1,), 0, 1), 443s ((2,), (1,), 0, 1), 443s ((1,), (2,), 0, 1), 443s ((3,), (3,), 1, 2), 443s ((1000,), (100,), 150, 1050), 443s ((100,), (1000,), 25, 75), 443s ((1, 100), (1, 1), 0, 1), 443s ((100, 1), (3, 1), 56, 100), 443s ((100, 100), (10, 10), 13, 99), 443s ((10, 10, 10), (3, 3, 3), 2, 4), 443s ) 443s for shape, chunks, start, end in params: 443s z = self.create_array(shape=shape, chunks=chunks, dtype=int) 443s a = np.arange(np.prod(shape)).reshape(shape) 443s z[:] = a 443s end_array = min(end, a.shape[0]) 443s > for expect, actual in zip_longest(a[start:end_array], z.islice(start, end)): 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:1553: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:637: in islice 443s chunk = self[j : j + chunk_size] 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x013\x08\x10\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _____________ TestArrayWithFSStoreNestedPartialRead.test_non_cont ______________ 443s 443s self = 443s 443s def test_non_cont(self): 443s z = self.create_array(shape=(500, 500, 500), chunks=(50, 50, 50), dtype=" assert z[0, :, 0].any() 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2503: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:796: in __getitem__ 443s result = self.get_orthogonal_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1078: in get_orthogonal_selection 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x01!\x04 \xa1\x07\x00 \xa1\x07\x00\xf8\x07\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _ TestArrayWithFSStoreNestedPartialRead.test_read_nitems_less_than_blocksize_from_multiple_chunks _ 443s 443s self = 443s 443s def test_read_nitems_less_than_blocksize_from_multiple_chunks(self): 443s """Tests to make sure decompression doesn't fail when `nitems` is 443s less than a compressed block size, but covers multiple blocks 443s """ 443s z = self.create_array(shape=1000000, chunks=100_000) 443s z[40_000:80_000] = 1 443s path = None if self.version == 2 else z.path 443s b = Array(z.store, path=path, read_only=True, partial_decompress=True) 443s > assert (b[40_000:80_000] == 1).all() 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2513: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x01!\x08\x005\x0c\x00\x005\x0c\x00\xdc\x0c\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s _______ TestArrayWithFSStoreNestedPartialRead.test_read_from_all_blocks ________ 443s 443s self = 443s 443s def test_read_from_all_blocks(self): 443s """Tests to make sure `PartialReadBuffer.read_part` doesn't fail when 443s stop isn't in the `start_points` array 443s """ 443s z = self.create_array(shape=1000000, chunks=100_000) 443s z[2:99_000] = 1 443s path = None if self.version == 2 else z.path 443s b = Array(z.store, path=path, read_only=True, partial_decompress=True) 443s > assert (b[2:99_000] == 1).all() 443s 443s /usr/lib/python3/dist-packages/zarr/tests/test_core.py:2523: 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s /usr/lib/python3/dist-packages/zarr/core.py:798: in __getitem__ 443s result = self.get_basic_selection(pure_selection, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:924: in get_basic_selection 443s return self._get_basic_selection_nd(selection=selection, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:966: in _get_basic_selection_nd 443s return self._get_selection(indexer=indexer, out=out, fields=fields) 443s /usr/lib/python3/dist-packages/zarr/core.py:1341: in _get_selection 443s self._chunk_getitems( 443s /usr/lib/python3/dist-packages/zarr/core.py:2186: in _chunk_getitems 443s self._process_chunk( 443s /usr/lib/python3/dist-packages/zarr/core.py:2066: in _process_chunk 443s cdata.prepare_chunk() 443s /usr/lib/python3/dist-packages/zarr/util.py:609: in prepare_chunk 443s nbytes, self.cbytes, blocksize = cbuffer_sizes(header) 443s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 443s 443s wrapped_ = , instance_ = None 443s args_ = (b'\x02\x01!\x08\x005\x0c\x00\x005\x0c\x00\xe0\x0c\x00\x00',) 443s kwargs_ = {} 443s 443s @wrapt.decorator 443s def wrapper_function(wrapped_, instance_, args_, kwargs_): 443s msg = self.get_deprecated_msg(wrapped_, instance_) 443s stacklevel = _routine_stacklevel + self.extra_stacklevel 443s if self.action: 443s with warnings.catch_warnings(): 443s warnings.simplefilter(self.action, self.category) 443s warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s else: 443s > warnings.warn(msg, category=self.category, stacklevel=stacklevel) 443s E DeprecationWarning: Call to deprecated function (or staticmethod) _cbuffer_sizes. 443s 443s /usr/lib/python3/dist-packages/deprecated/classic.py:198: DeprecationWarning 443s =============================== warnings summary =============================== 443s tests/test_filters.py::test_array_with_scaleoffset_filter 443s /usr/lib/python3/dist-packages/numcodecs/fixedscaleoffset.py:97: RuntimeWarning: invalid value encountered in cast 443s return enc.astype(self.astype, copy=False) 443s 443s tests/test_storage.py::TestZipStore::test_store_and_retrieve_ndarray 443s /usr/lib/python3.12/zipfile/__init__.py:1607: UserWarning: Duplicate name: 'foo' 443s return self._open_to_write(zinfo, force_zip64=force_zip64) 443s 443s tests/test_sync.py::TestArrayWithProcessSynchronizer::test_parallel_setitem 443s tests/test_sync.py::TestArrayWithProcessSynchronizer::test_parallel_setitem 443s tests/test_sync.py::TestArrayWithProcessSynchronizer::test_parallel_append 443s tests/test_sync.py::TestArrayWithProcessSynchronizer::test_parallel_append 443s tests/test_sync.py::TestGroupWithProcessSynchronizer::test_parallel_create_group 443s tests/test_sync.py::TestGroupWithProcessSynchronizer::test_parallel_create_group 443s tests/test_sync.py::TestGroupWithProcessSynchronizer::test_parallel_require_group 443s tests/test_sync.py::TestGroupWithProcessSynchronizer::test_parallel_require_group 443s /usr/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=3140) is multi-threaded, use of fork() may lead to deadlocks in the child. 443s self.pid = os.fork() 443s 443s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 443s ============================= slowest 10 durations ============================= 443s 13.62s call tests/test_indexing.py::test_set_orthogonal_selection_3d 443s 2.08s call tests/test_core.py::TestArrayWithFSStorePartialRead::test_non_cont 443s 1.67s call tests/test_indexing.py::test_set_orthogonal_selection_2d 443s 1.58s call tests/test_core.py::TestArrayWithSQLiteStore::test_iter 443s 1.57s call tests/test_core.py::TestArrayWithSQLiteStore::test_islice 443s 1.31s call tests/test_core.py::TestArrayWithSQLiteStore::test_append_2d_axis 443s 1.19s call tests/test_core.py::TestArrayWithSQLiteStore::test_resize_2d 443s 1.18s call tests/test_core.py::TestArrayWithSQLiteStore::test_object_arrays_vlen_array 443s 1.15s call tests/test_core.py::TestArray::test_object_arrays_vlen_array 443s 1.13s call tests/test_core.py::TestArrayWithSQLiteStore::test_array_order 443s =========================== short test summary info ============================ 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_1d - D... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_1d_fill_value 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_1d_selections 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_2d - D... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_2d_edge_case 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_2d_partial 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_order 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_resize_1d - ... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_resize_2d - ... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_append_1d - ... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_append_2d - ... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_append_2d_axis 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_np_ufuncs - ... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_array_dtype_shape 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_structured_array 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_structured_array_subshapes 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_structured_array_nested 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_dtypes - Dep... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_iter - Depre... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_islice - Dep... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_non_cont - D... 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_read_nitems_less_than_blocksize_from_multiple_chunks 443s FAILED tests/test_core.py::TestArrayWithFSStorePartialRead::test_read_from_all_blocks 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_1d 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_1d_fill_value 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_1d_selections 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_2d 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_2d_edge_case 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_2d_partial 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_order 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_resize_1d 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_resize_2d 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_append_1d 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_append_2d 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_append_2d_axis 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_np_ufuncs 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_array_dtype_shape 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_structured_array 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_structured_array_subshapes 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_structured_array_nested 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_dtypes 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_iter 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_islice 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_non_cont 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_read_nitems_less_than_blocksize_from_multiple_chunks 443s FAILED tests/test_core.py::TestArrayWithFSStoreNestedPartialRead::test_read_from_all_blocks 443s = 46 failed, 2204 passed, 2004 skipped, 717 deselected, 4 xfailed, 10 warnings in 103.82s (0:01:43) = 445s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.oPgZDx/autopkgtest_tmp/build; python3.12 -m pytest -k "not test_hierarchy and not test_complex and not test_array_with_delta_filter and not test_utf8_encoding and not [static_flat] and not [static_nested] and not [static_flat_legacy] and not [static_nested_legacy] and not test_meta_prefix_6853 and not test_encode_decode_array_dtype_shape_v3" --pyargs zarr 445s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 445s make: *** [/tmp/CWa_K1hSHk/run:4: pybuild-autopkgtest] Error 25 445s pybuild-autopkgtest: error: /tmp/CWa_K1hSHk/run pybuild-autopkgtest returned exit code 2 446s autopkgtest [09:25:59]: test pybuild-autopkgtest: -----------------------] 446s autopkgtest [09:25:59]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 446s pybuild-autopkgtest FAIL non-zero exit status 25 447s autopkgtest [09:26:00]: @@@@@@@@@@@@@@@@@@@@ summary 447s pybuild-autopkgtest FAIL non-zero exit status 25 451s nova [W] Using flock in prodstack6-ppc64el 451s Creating nova instance adt-plucky-ppc64el-zarr-20250118-091832-juju-7f2275-prod-proposed-migration-environment-2-a0dae0fa-fc90-4cd4-ac29-df8e8fb964fe from image adt/ubuntu-plucky-ppc64el-server-20250118.img (UUID ae4ff9d6-d4c8-4087-90be-b2adeb15025d)... 451s nova [W] Timed out waiting for cfffab55-3c18-4358-90f9-96a75452ed1f to get deleted.