0s autopkgtest [04:28:22]: starting date and time: 2025-02-19 04:28:22+0000 0s autopkgtest [04:28:22]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [04:28:22]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work._cjd1uy_/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python-click --apt-upgrade black --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python-click/8.2.0-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-29.secgroup --name adt-plucky-s390x-black-20250219-042821-juju-7f2275-prod-proposed-migration-environment-20-6dbd76bb-3581-4fca-beee-cd17faaef19d --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -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/ 112s autopkgtest [04:30:14]: testbed dpkg architecture: s390x 112s autopkgtest [04:30:14]: testbed apt version: 2.9.29 113s autopkgtest [04:30:15]: @@@@@@@@@@@@@@@@@@@@ test bed setup 113s autopkgtest [04:30:15]: testbed release detected to be: None 114s autopkgtest [04:30:16]: updating testbed package index (apt update) 114s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 114s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 115s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 115s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 115s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 115s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [79.1 kB] 115s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [788 kB] 115s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.6 kB] 115s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [98.8 kB] 115s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted s390x Packages [760 B] 115s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [656 kB] 115s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [5192 B] 115s Fetched 1755 kB in 1s (1894 kB/s) 116s Reading package lists... 116s Reading package lists... 117s Building dependency tree... 117s Reading state information... 117s Calculating upgrade... 117s The following packages were automatically installed and are no longer required: 117s libnsl2 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 117s linux-headers-6.11.0-8 linux-headers-6.11.0-8-generic 117s linux-modules-6.11.0-8-generic linux-tools-6.11.0-8 117s linux-tools-6.11.0-8-generic 117s Use 'sudo apt autoremove' to remove them. 117s The following packages will be upgraded: 117s dhcpcd-base s390-tools s390-tools-data s390-tools-signed 117s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 117s Need to get 5637 kB of archives. 117s After this operation, 54.3 kB of additional disk space will be used. 117s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x dhcpcd-base s390x 1:10.1.0-7 [219 kB] 117s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x s390-tools-data all 2.37.0-0ubuntu2 [20.4 kB] 117s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x s390-tools s390x 2.37.0-0ubuntu2 [5385 kB] 118s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x s390-tools-signed all 2.37.0-0ubuntu2 [12.4 kB] 118s Fetched 5637 kB in 1s (7081 kB/s) 118s (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 ... 80980 files and directories currently installed.) 118s Preparing to unpack .../dhcpcd-base_1%3a10.1.0-7_s390x.deb ... 118s Unpacking dhcpcd-base (1:10.1.0-7) over (1:10.1.0-6) ... 118s Preparing to unpack .../s390-tools-data_2.37.0-0ubuntu2_all.deb ... 118s Unpacking s390-tools-data (2.37.0-0ubuntu2) over (2.37.0-0ubuntu1) ... 118s Preparing to unpack .../s390-tools_2.37.0-0ubuntu2_s390x.deb ... 118s Unpacking s390-tools (2.37.0-0ubuntu2) over (2.37.0-0ubuntu1) ... 118s Preparing to unpack .../s390-tools-signed_2.37.0-0ubuntu2_all.deb ... 118s Unpacking s390-tools-signed (2.37.0-0ubuntu2) over (2.37.0-0ubuntu1) ... 118s Setting up s390-tools-signed (2.37.0-0ubuntu2) ... 118s Setting up dhcpcd-base (1:10.1.0-7) ... 118s Setting up s390-tools-data (2.37.0-0ubuntu2) ... 118s Setting up s390-tools (2.37.0-0ubuntu2) ... 119s Processing triggers for man-db (2.13.0-1) ... 120s Processing triggers for initramfs-tools (0.145ubuntu2) ... 120s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 120s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 125s Using config file '/etc/zipl.conf' 125s Building bootmap in '/boot' 125s Adding IPL section 'ubuntu' (default) 125s Preparing boot device for LD-IPL: vda (0000). 125s Done. 125s Reading package lists... 125s Building dependency tree... 125s Reading state information... 125s The following packages will be REMOVED: 125s libnsl2* libpython3.12-minimal* libpython3.12-stdlib* libpython3.12t64* 125s linux-headers-6.11.0-8* linux-headers-6.11.0-8-generic* 125s linux-modules-6.11.0-8-generic* linux-tools-6.11.0-8* 125s linux-tools-6.11.0-8-generic* 126s 0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded. 126s After this operation, 167 MB disk space will be freed. 126s (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 ... 80981 files and directories currently installed.) 126s Removing linux-tools-6.11.0-8-generic (6.11.0-8.8) ... 126s Removing linux-tools-6.11.0-8 (6.11.0-8.8) ... 126s Removing libpython3.12t64:s390x (3.12.9-1) ... 126s Removing libpython3.12-stdlib:s390x (3.12.9-1) ... 126s Removing libnsl2:s390x (1.3.0-3build3) ... 126s Removing libpython3.12-minimal:s390x (3.12.9-1) ... 126s Removing linux-headers-6.11.0-8-generic (6.11.0-8.8) ... 126s Removing linux-headers-6.11.0-8 (6.11.0-8.8) ... 127s Removing linux-modules-6.11.0-8-generic (6.11.0-8.8) ... 127s Processing triggers for libc-bin (2.40-4ubuntu1) ... 127s (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 ... 55881 files and directories currently installed.) 127s Purging configuration files for libpython3.12-minimal:s390x (3.12.9-1) ... 127s Purging configuration files for linux-modules-6.11.0-8-generic (6.11.0-8.8) ... 127s autopkgtest [04:30:29]: upgrading testbed (apt dist-upgrade and autopurge) 128s Reading package lists... 128s Building dependency tree... 128s Reading state information... 128s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 128s Starting 2 pkgProblemResolver with broken count: 0 128s Done 128s Entering ResolveByKeep 128s 128s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 129s Reading package lists... 129s Building dependency tree... 129s Reading state information... 129s Starting pkgProblemResolver with broken count: 0 129s Starting 2 pkgProblemResolver with broken count: 0 129s Done 129s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 129s autopkgtest [04:30:31]: rebooting testbed after setup commands that affected boot 155s autopkgtest [04:30:57]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP Tue Feb 4 15:05:57 UTC 2025 157s autopkgtest [04:30:59]: @@@@@@@@@@@@@@@@@@@@ apt-source black 160s Get:1 http://ftpmaster.internal/ubuntu plucky/universe black 25.1.0-1 (dsc) [2714 B] 160s Get:2 http://ftpmaster.internal/ubuntu plucky/universe black 25.1.0-1 (tar) [1269 kB] 160s Get:3 http://ftpmaster.internal/ubuntu plucky/universe black 25.1.0-1 (diff) [11.6 kB] 160s gpgv: Signature made Wed Feb 5 09:46:38 2025 UTC 160s gpgv: using RSA key 724D609337113C710550D7473C26763F6C67E6E2 160s gpgv: Can't check signature: No public key 160s dpkg-source: warning: cannot verify inline signature for ./black_25.1.0-1.dsc: no acceptable signature found 160s autopkgtest [04:31:02]: testing package black version 25.1.0-1 161s autopkgtest [04:31:03]: build not needed 162s autopkgtest [04:31:04]: test pybuild-autopkgtest: preparing testbed 162s Reading package lists... 162s Building dependency tree... 162s Reading state information... 162s Starting pkgProblemResolver with broken count: 0 162s Starting 2 pkgProblemResolver with broken count: 0 162s Done 163s The following NEW packages will be installed: 163s autoconf automake autopoint autotools-dev black build-essential cpp cpp-14 163s cpp-14-s390x-linux-gnu cpp-s390x-linux-gnu debhelper debugedit dh-autoreconf 163s dh-python dh-strip-nondeterminism docutils-common dwz furo g++ g++-14 163s g++-14-s390x-linux-gnu g++-s390x-linux-gnu gcc gcc-14 gcc-14-s390x-linux-gnu 163s gcc-s390x-linux-gnu gettext intltool-debian libarchive-zip-perl libasan8 163s libcc1-0 libdebhelper-perl libexpat1-dev libfile-stripnondeterminism-perl 163s libgcc-14-dev libgomp1 libisl23 libitm1 libjs-jquery libjs-sphinxdoc 163s libjs-underscore libjson-perl libmpc3 libnsl2 libpython3-all-dev 163s libpython3-dev libpython3.12-dev libpython3.12-minimal libpython3.12-stdlib 163s libpython3.12t64 libpython3.13-dev libstdc++-14-dev libtool libubsan1 m4 163s po-debconf pybuild-plugin-autopkgtest pybuild-plugin-pyproject 163s python-black-doc python3-aiohappyeyeballs python3-aiohttp python3-aiosignal 163s python3-alabaster python3-all python3-all-dev python3-async-timeout 163s python3-bs4 python3-build python3-click python3-defusedxml python3-dev 163s python3-doc python3-docutils python3-frozenlist 163s python3-hatch-fancy-pypi-readme python3-hatch-mypyc python3-hatch-vcs 163s python3-hatchling python3-imagesize python3-iniconfig python3-installer 163s python3-mdit-py-plugins python3-multidict python3-mypy 163s python3-mypy-extensions python3-myst-parser python3-packaging 163s python3-pathspec python3-platformdirs python3-pluggy python3-psutil 163s python3-pyproject-hooks python3-pytest python3-regex python3-roman 163s python3-setuptools-scm python3-snowballstemmer python3-soupsieve 163s python3-sphinx python3-sphinx-copybutton python3-sphinxcontrib.programoutput 163s python3-toml python3-tomli python3-trove-classifiers python3-wheel 163s python3-yarl python3.12 python3.12-dev python3.12-minimal python3.13-dev 163s python3.13-doc sgml-base sphinx-basic-ng sphinx-common xml-core zlib1g-dev 163s 0 upgraded, 116 newly installed, 0 to remove and 0 not upgraded. 163s Need to get 113 MB of archives. 163s After this operation, 441 MB of additional disk space will be used. 163s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12-minimal s390x 3.12.9-1 [836 kB] 163s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x python3.12-minimal s390x 3.12.9-1 [2403 kB] 163s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x sgml-base all 1.31 [11.4 kB] 163s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libnsl2 s390x 1.3.0-3build3 [44.1 kB] 163s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12-stdlib s390x 3.12.9-1 [2071 kB] 163s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x python3.12 s390x 3.12.9-1 [671 kB] 163s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x m4 s390x 1.4.19-5 [259 kB] 163s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x autoconf all 2.72-3 [382 kB] 163s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x autotools-dev all 20220109.1 [44.9 kB] 163s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x automake all 1:1.17-3 [572 kB] 163s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x autopoint all 0.23.1-1 [619 kB] 163s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-click all 8.2.0-1 [81.9 kB] 163s Get:13 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-mypy-extensions all 1.0.0-1 [6148 B] 163s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.2-1 [51.5 kB] 164s Get:15 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pathspec all 0.12.1-1 [24.5 kB] 164s Get:16 http://ftpmaster.internal/ubuntu plucky/main s390x python3-platformdirs all 4.3.6-1 [16.8 kB] 164s Get:17 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-tomli s390x 2.2.1-2 [153 kB] 164s Get:18 http://ftpmaster.internal/ubuntu plucky/universe s390x black s390x 25.1.0-1 [1828 kB] 164s Get:19 http://ftpmaster.internal/ubuntu plucky/main s390x libisl23 s390x 0.27-1 [704 kB] 164s Get:20 http://ftpmaster.internal/ubuntu plucky/main s390x libmpc3 s390x 1.3.1-1build2 [57.8 kB] 164s Get:21 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-14-s390x-linux-gnu s390x 14.2.0-17ubuntu1 [9571 kB] 164s Get:22 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-14 s390x 14.2.0-17ubuntu1 [1030 B] 164s Get:23 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-s390x-linux-gnu s390x 4:14.2.0-1ubuntu1 [5556 B] 164s Get:24 http://ftpmaster.internal/ubuntu plucky/main s390x cpp s390x 4:14.2.0-1ubuntu1 [22.4 kB] 164s Get:25 http://ftpmaster.internal/ubuntu plucky/main s390x libcc1-0 s390x 15-20250213-1ubuntu1 [49.2 kB] 164s Get:26 http://ftpmaster.internal/ubuntu plucky/main s390x libgomp1 s390x 15-20250213-1ubuntu1 [151 kB] 164s Get:27 http://ftpmaster.internal/ubuntu plucky/main s390x libitm1 s390x 15-20250213-1ubuntu1 [31.2 kB] 164s Get:28 http://ftpmaster.internal/ubuntu plucky/main s390x libasan8 s390x 15-20250213-1ubuntu1 [2970 kB] 164s Get:29 http://ftpmaster.internal/ubuntu plucky/main s390x libubsan1 s390x 15-20250213-1ubuntu1 [1213 kB] 164s Get:30 http://ftpmaster.internal/ubuntu plucky/main s390x libgcc-14-dev s390x 14.2.0-17ubuntu1 [1037 kB] 164s Get:31 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-14-s390x-linux-gnu s390x 14.2.0-17ubuntu1 [18.7 MB] 165s Get:32 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-14 s390x 14.2.0-17ubuntu1 [526 kB] 165s Get:33 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-s390x-linux-gnu s390x 4:14.2.0-1ubuntu1 [1204 B] 165s Get:34 http://ftpmaster.internal/ubuntu plucky/main s390x gcc s390x 4:14.2.0-1ubuntu1 [5004 B] 165s Get:35 http://ftpmaster.internal/ubuntu plucky/main s390x libstdc++-14-dev s390x 14.2.0-17ubuntu1 [2611 kB] 165s Get:36 http://ftpmaster.internal/ubuntu plucky/main s390x g++-14-s390x-linux-gnu s390x 14.2.0-17ubuntu1 [11.0 MB] 166s Get:37 http://ftpmaster.internal/ubuntu plucky/main s390x g++-14 s390x 14.2.0-17ubuntu1 [21.8 kB] 166s Get:38 http://ftpmaster.internal/ubuntu plucky/main s390x g++-s390x-linux-gnu s390x 4:14.2.0-1ubuntu1 [956 B] 166s Get:39 http://ftpmaster.internal/ubuntu plucky/main s390x g++ s390x 4:14.2.0-1ubuntu1 [1080 B] 166s Get:40 http://ftpmaster.internal/ubuntu plucky/main s390x build-essential s390x 12.10ubuntu1 [4930 B] 166s Get:41 http://ftpmaster.internal/ubuntu plucky/main s390x libdebhelper-perl all 13.24.1ubuntu2 [95.4 kB] 166s Get:42 http://ftpmaster.internal/ubuntu plucky/main s390x libtool all 2.5.4-3build1 [168 kB] 166s Get:43 http://ftpmaster.internal/ubuntu plucky/main s390x dh-autoreconf all 20 [16.1 kB] 166s Get:44 http://ftpmaster.internal/ubuntu plucky/main s390x libarchive-zip-perl all 1.68-1 [90.2 kB] 166s Get:45 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-stripnondeterminism-perl all 1.14.1-2 [20.3 kB] 166s Get:46 http://ftpmaster.internal/ubuntu plucky/main s390x dh-strip-nondeterminism all 1.14.1-2 [5064 B] 166s Get:47 http://ftpmaster.internal/ubuntu plucky/main s390x debugedit s390x 1:5.1-2 [50.1 kB] 166s Get:48 http://ftpmaster.internal/ubuntu plucky/main s390x dwz s390x 0.15-1build6 [122 kB] 166s Get:49 http://ftpmaster.internal/ubuntu plucky/main s390x gettext s390x 0.23.1-1 [1065 kB] 166s Get:50 http://ftpmaster.internal/ubuntu plucky/main s390x intltool-debian all 0.35.0+20060710.6 [23.2 kB] 166s Get:51 http://ftpmaster.internal/ubuntu plucky/main s390x po-debconf all 1.0.21+nmu1 [233 kB] 166s Get:52 http://ftpmaster.internal/ubuntu plucky/main s390x debhelper all 13.24.1ubuntu2 [895 kB] 166s Get:53 http://ftpmaster.internal/ubuntu plucky/universe s390x dh-python all 6.20250108 [117 kB] 166s Get:54 http://ftpmaster.internal/ubuntu plucky/main s390x xml-core all 0.19 [20.3 kB] 166s Get:55 http://ftpmaster.internal/ubuntu plucky/main s390x docutils-common all 0.21.2+dfsg-2 [131 kB] 166s Get:56 http://ftpmaster.internal/ubuntu plucky/main s390x python3-soupsieve all 2.6-1 [33.0 kB] 166s Get:57 http://ftpmaster.internal/ubuntu plucky/main s390x python3-bs4 all 4.13.3-1 [136 kB] 166s Get:58 http://ftpmaster.internal/ubuntu plucky/main s390x python3-defusedxml all 0.7.1-3 [42.2 kB] 166s Get:59 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 166s Get:60 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 166s Get:61 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-sphinxdoc all 8.1.3-4 [30.9 kB] 166s Get:62 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-perl all 4.10000-1 [81.9 kB] 166s Get:63 http://ftpmaster.internal/ubuntu plucky/main s390x sphinx-common all 8.1.3-4 [663 kB] 166s Get:64 http://ftpmaster.internal/ubuntu plucky/main s390x python3-alabaster all 0.7.16-0.1 [18.5 kB] 166s Get:65 http://ftpmaster.internal/ubuntu plucky/main s390x python3-roman all 5.0-1 [10.3 kB] 166s Get:66 http://ftpmaster.internal/ubuntu plucky/main s390x python3-docutils all 0.21.2+dfsg-2 [409 kB] 166s Get:67 http://ftpmaster.internal/ubuntu plucky/main s390x python3-imagesize all 1.4.1-1 [6844 B] 166s Get:68 http://ftpmaster.internal/ubuntu plucky/main s390x python3-snowballstemmer all 2.2.0-4build1 [59.8 kB] 166s Get:69 http://ftpmaster.internal/ubuntu plucky/main s390x python3-sphinx all 8.1.3-4 [474 kB] 166s Get:70 http://ftpmaster.internal/ubuntu plucky/universe s390x sphinx-basic-ng all 1.0.0~beta2-1 [12.0 kB] 166s Get:71 http://ftpmaster.internal/ubuntu plucky/universe s390x furo all 2024.08.06+dfsg-1 [55.3 kB] 166s Get:72 http://ftpmaster.internal/ubuntu plucky/main s390x libexpat1-dev s390x 2.6.4-1 [146 kB] 166s Get:73 http://ftpmaster.internal/ubuntu plucky/main s390x zlib1g-dev s390x 1:1.3.dfsg+really1.3.1-1ubuntu1 [898 kB] 166s Get:74 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-dev s390x 3.13.2-1 [5596 kB] 166s Get:75 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3-dev s390x 3.13.1-1~exp2 [10.5 kB] 166s Get:76 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12t64 s390x 3.12.9-1 [2508 kB] 166s Get:77 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12-dev s390x 3.12.9-1 [5849 kB] 167s Get:78 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3-all-dev s390x 3.13.1-1~exp2 [922 B] 167s Get:79 http://ftpmaster.internal/ubuntu plucky/universe s390x pybuild-plugin-autopkgtest all 6.20250108 [1744 B] 167s Get:80 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 167s Get:81 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-toml all 0.10.2-1 [16.5 kB] 167s Get:82 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-wheel all 0.45.1-1 [57.7 kB] 167s Get:83 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-build all 1.2.2-1 [31.0 kB] 167s Get:84 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 167s Get:85 http://ftpmaster.internal/ubuntu plucky/universe s390x pybuild-plugin-pyproject all 6.20250108 [1726 B] 167s Get:86 http://ftpmaster.internal/ubuntu plucky/universe s390x python-black-doc all 25.1.0-1 [390 kB] 167s Get:87 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-aiohappyeyeballs all 2.4.6-1 [10.5 kB] 167s Get:88 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-multidict s390x 6.1.0-1build1 [38.4 kB] 167s Get:89 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-yarl s390x 1.13.1-1build1 [122 kB] 167s Get:90 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-async-timeout all 5.0.1-1 [6830 B] 167s Get:91 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-frozenlist s390x 1.5.0-1build1 [64.2 kB] 167s Get:92 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-aiosignal all 1.3.2-1 [5182 B] 167s Get:93 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-aiohttp s390x 3.10.11-1 [363 kB] 167s Get:94 http://ftpmaster.internal/ubuntu plucky/main s390x python3-all s390x 3.13.1-1~exp2 [898 B] 167s Get:95 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-dev s390x 3.13.2-1 [508 kB] 167s Get:96 http://ftpmaster.internal/ubuntu plucky/main s390x python3-dev s390x 3.13.1-1~exp2 [26.7 kB] 167s Get:97 http://ftpmaster.internal/ubuntu plucky/main s390x python3.12-dev s390x 3.12.9-1 [504 kB] 167s Get:98 http://ftpmaster.internal/ubuntu plucky/main s390x python3-all-dev s390x 3.13.1-1~exp2 [918 B] 167s Get:99 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-doc all 3.13.2-1 [14.2 MB] 167s Get:100 http://ftpmaster.internal/ubuntu plucky/main s390x python3-doc all 3.13.1-1~exp2 [10.4 kB] 167s Get:101 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 167s Get:102 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-trove-classifiers all 2025.1.15.22-1 [10.9 kB] 168s Get:103 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-hatchling all 1.27.0-1 [47.1 kB] 168s Get:104 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-hatch-fancy-pypi-readme all 24.1.0-1 [9326 B] 168s Get:105 http://ftpmaster.internal/ubuntu plucky/main s390x python3-psutil s390x 5.9.8-2build3 [195 kB] 168s Get:106 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-mypy s390x 1.15.0-2 [16.0 MB] 170s Get:107 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-hatch-mypyc all 0.16.0-5 [8314 B] 170s Get:108 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-setuptools-scm all 8.1.0-1 [32.2 kB] 170s Get:109 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-hatch-vcs all 0.4.0-1 [7904 B] 170s Get:110 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 170s Get:111 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-mdit-py-plugins all 0.4.2-1 [30.6 kB] 170s Get:112 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-myst-parser all 4.0.0-1 [64.9 kB] 170s Get:113 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.4-1 [252 kB] 170s Get:114 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-regex s390x 0.1.20241106-1 [317 kB] 170s Get:115 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-sphinx-copybutton all 0.5.2-2 [16.6 kB] 170s Get:116 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-sphinxcontrib.programoutput all 0.17-6 [15.2 kB] 171s Fetched 113 MB in 8s (14.5 MB/s) 171s Selecting previously unselected package libpython3.12-minimal:s390x. 171s (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 ... 55879 files and directories currently installed.) 171s Preparing to unpack .../000-libpython3.12-minimal_3.12.9-1_s390x.deb ... 171s Unpacking libpython3.12-minimal:s390x (3.12.9-1) ... 171s Selecting previously unselected package python3.12-minimal. 171s Preparing to unpack .../001-python3.12-minimal_3.12.9-1_s390x.deb ... 171s Unpacking python3.12-minimal (3.12.9-1) ... 171s Selecting previously unselected package sgml-base. 171s Preparing to unpack .../002-sgml-base_1.31_all.deb ... 171s Unpacking sgml-base (1.31) ... 171s Selecting previously unselected package libnsl2:s390x. 171s Preparing to unpack .../003-libnsl2_1.3.0-3build3_s390x.deb ... 171s Unpacking libnsl2:s390x (1.3.0-3build3) ... 171s Selecting previously unselected package libpython3.12-stdlib:s390x. 171s Preparing to unpack .../004-libpython3.12-stdlib_3.12.9-1_s390x.deb ... 171s Unpacking libpython3.12-stdlib:s390x (3.12.9-1) ... 171s Selecting previously unselected package python3.12. 171s Preparing to unpack .../005-python3.12_3.12.9-1_s390x.deb ... 171s Unpacking python3.12 (3.12.9-1) ... 171s Selecting previously unselected package m4. 171s Preparing to unpack .../006-m4_1.4.19-5_s390x.deb ... 171s Unpacking m4 (1.4.19-5) ... 171s Selecting previously unselected package autoconf. 171s Preparing to unpack .../007-autoconf_2.72-3_all.deb ... 171s Unpacking autoconf (2.72-3) ... 171s Selecting previously unselected package autotools-dev. 171s Preparing to unpack .../008-autotools-dev_20220109.1_all.deb ... 171s Unpacking autotools-dev (20220109.1) ... 171s Selecting previously unselected package automake. 171s Preparing to unpack .../009-automake_1%3a1.17-3_all.deb ... 171s Unpacking automake (1:1.17-3) ... 171s Selecting previously unselected package autopoint. 171s Preparing to unpack .../010-autopoint_0.23.1-1_all.deb ... 171s Unpacking autopoint (0.23.1-1) ... 171s Selecting previously unselected package python3-click. 171s Preparing to unpack .../011-python3-click_8.2.0-1_all.deb ... 171s Unpacking python3-click (8.2.0-1) ... 171s Selecting previously unselected package python3-mypy-extensions. 171s Preparing to unpack .../012-python3-mypy-extensions_1.0.0-1_all.deb ... 171s Unpacking python3-mypy-extensions (1.0.0-1) ... 171s Selecting previously unselected package python3-packaging. 171s Preparing to unpack .../013-python3-packaging_24.2-1_all.deb ... 171s Unpacking python3-packaging (24.2-1) ... 171s Selecting previously unselected package python3-pathspec. 171s Preparing to unpack .../014-python3-pathspec_0.12.1-1_all.deb ... 171s Unpacking python3-pathspec (0.12.1-1) ... 171s Selecting previously unselected package python3-platformdirs. 171s Preparing to unpack .../015-python3-platformdirs_4.3.6-1_all.deb ... 171s Unpacking python3-platformdirs (4.3.6-1) ... 171s Selecting previously unselected package python3-tomli. 171s Preparing to unpack .../016-python3-tomli_2.2.1-2_s390x.deb ... 171s Unpacking python3-tomli (2.2.1-2) ... 171s Selecting previously unselected package black. 171s Preparing to unpack .../017-black_25.1.0-1_s390x.deb ... 171s Unpacking black (25.1.0-1) ... 171s Selecting previously unselected package libisl23:s390x. 171s Preparing to unpack .../018-libisl23_0.27-1_s390x.deb ... 171s Unpacking libisl23:s390x (0.27-1) ... 171s Selecting previously unselected package libmpc3:s390x. 171s Preparing to unpack .../019-libmpc3_1.3.1-1build2_s390x.deb ... 171s Unpacking libmpc3:s390x (1.3.1-1build2) ... 171s Selecting previously unselected package cpp-14-s390x-linux-gnu. 171s Preparing to unpack .../020-cpp-14-s390x-linux-gnu_14.2.0-17ubuntu1_s390x.deb ... 171s Unpacking cpp-14-s390x-linux-gnu (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package cpp-14. 172s Preparing to unpack .../021-cpp-14_14.2.0-17ubuntu1_s390x.deb ... 172s Unpacking cpp-14 (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package cpp-s390x-linux-gnu. 172s Preparing to unpack .../022-cpp-s390x-linux-gnu_4%3a14.2.0-1ubuntu1_s390x.deb ... 172s Unpacking cpp-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 172s Selecting previously unselected package cpp. 172s Preparing to unpack .../023-cpp_4%3a14.2.0-1ubuntu1_s390x.deb ... 172s Unpacking cpp (4:14.2.0-1ubuntu1) ... 172s Selecting previously unselected package libcc1-0:s390x. 172s Preparing to unpack .../024-libcc1-0_15-20250213-1ubuntu1_s390x.deb ... 172s Unpacking libcc1-0:s390x (15-20250213-1ubuntu1) ... 172s Selecting previously unselected package libgomp1:s390x. 172s Preparing to unpack .../025-libgomp1_15-20250213-1ubuntu1_s390x.deb ... 172s Unpacking libgomp1:s390x (15-20250213-1ubuntu1) ... 172s Selecting previously unselected package libitm1:s390x. 172s Preparing to unpack .../026-libitm1_15-20250213-1ubuntu1_s390x.deb ... 172s Unpacking libitm1:s390x (15-20250213-1ubuntu1) ... 172s Selecting previously unselected package libasan8:s390x. 172s Preparing to unpack .../027-libasan8_15-20250213-1ubuntu1_s390x.deb ... 172s Unpacking libasan8:s390x (15-20250213-1ubuntu1) ... 172s Selecting previously unselected package libubsan1:s390x. 172s Preparing to unpack .../028-libubsan1_15-20250213-1ubuntu1_s390x.deb ... 172s Unpacking libubsan1:s390x (15-20250213-1ubuntu1) ... 172s Selecting previously unselected package libgcc-14-dev:s390x. 172s Preparing to unpack .../029-libgcc-14-dev_14.2.0-17ubuntu1_s390x.deb ... 172s Unpacking libgcc-14-dev:s390x (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package gcc-14-s390x-linux-gnu. 172s Preparing to unpack .../030-gcc-14-s390x-linux-gnu_14.2.0-17ubuntu1_s390x.deb ... 172s Unpacking gcc-14-s390x-linux-gnu (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package gcc-14. 172s Preparing to unpack .../031-gcc-14_14.2.0-17ubuntu1_s390x.deb ... 172s Unpacking gcc-14 (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package gcc-s390x-linux-gnu. 172s Preparing to unpack .../032-gcc-s390x-linux-gnu_4%3a14.2.0-1ubuntu1_s390x.deb ... 172s Unpacking gcc-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 172s Selecting previously unselected package gcc. 172s Preparing to unpack .../033-gcc_4%3a14.2.0-1ubuntu1_s390x.deb ... 172s Unpacking gcc (4:14.2.0-1ubuntu1) ... 172s Selecting previously unselected package libstdc++-14-dev:s390x. 172s Preparing to unpack .../034-libstdc++-14-dev_14.2.0-17ubuntu1_s390x.deb ... 172s Unpacking libstdc++-14-dev:s390x (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package g++-14-s390x-linux-gnu. 172s Preparing to unpack .../035-g++-14-s390x-linux-gnu_14.2.0-17ubuntu1_s390x.deb ... 172s Unpacking g++-14-s390x-linux-gnu (14.2.0-17ubuntu1) ... 173s Selecting previously unselected package g++-14. 173s Preparing to unpack .../036-g++-14_14.2.0-17ubuntu1_s390x.deb ... 173s Unpacking g++-14 (14.2.0-17ubuntu1) ... 173s Selecting previously unselected package g++-s390x-linux-gnu. 173s Preparing to unpack .../037-g++-s390x-linux-gnu_4%3a14.2.0-1ubuntu1_s390x.deb ... 173s Unpacking g++-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 173s Selecting previously unselected package g++. 173s Preparing to unpack .../038-g++_4%3a14.2.0-1ubuntu1_s390x.deb ... 173s Unpacking g++ (4:14.2.0-1ubuntu1) ... 173s Selecting previously unselected package build-essential. 173s Preparing to unpack .../039-build-essential_12.10ubuntu1_s390x.deb ... 173s Unpacking build-essential (12.10ubuntu1) ... 173s Selecting previously unselected package libdebhelper-perl. 173s Preparing to unpack .../040-libdebhelper-perl_13.24.1ubuntu2_all.deb ... 173s Unpacking libdebhelper-perl (13.24.1ubuntu2) ... 173s Selecting previously unselected package libtool. 173s Preparing to unpack .../041-libtool_2.5.4-3build1_all.deb ... 173s Unpacking libtool (2.5.4-3build1) ... 173s Selecting previously unselected package dh-autoreconf. 173s Preparing to unpack .../042-dh-autoreconf_20_all.deb ... 173s Unpacking dh-autoreconf (20) ... 173s Selecting previously unselected package libarchive-zip-perl. 173s Preparing to unpack .../043-libarchive-zip-perl_1.68-1_all.deb ... 173s Unpacking libarchive-zip-perl (1.68-1) ... 173s Selecting previously unselected package libfile-stripnondeterminism-perl. 173s Preparing to unpack .../044-libfile-stripnondeterminism-perl_1.14.1-2_all.deb ... 173s Unpacking libfile-stripnondeterminism-perl (1.14.1-2) ... 173s Selecting previously unselected package dh-strip-nondeterminism. 173s Preparing to unpack .../045-dh-strip-nondeterminism_1.14.1-2_all.deb ... 173s Unpacking dh-strip-nondeterminism (1.14.1-2) ... 173s Selecting previously unselected package debugedit. 173s Preparing to unpack .../046-debugedit_1%3a5.1-2_s390x.deb ... 173s Unpacking debugedit (1:5.1-2) ... 173s Selecting previously unselected package dwz. 173s Preparing to unpack .../047-dwz_0.15-1build6_s390x.deb ... 173s Unpacking dwz (0.15-1build6) ... 173s Selecting previously unselected package gettext. 173s Preparing to unpack .../048-gettext_0.23.1-1_s390x.deb ... 173s Unpacking gettext (0.23.1-1) ... 173s Selecting previously unselected package intltool-debian. 173s Preparing to unpack .../049-intltool-debian_0.35.0+20060710.6_all.deb ... 173s Unpacking intltool-debian (0.35.0+20060710.6) ... 173s Selecting previously unselected package po-debconf. 173s Preparing to unpack .../050-po-debconf_1.0.21+nmu1_all.deb ... 173s Unpacking po-debconf (1.0.21+nmu1) ... 173s Selecting previously unselected package debhelper. 173s Preparing to unpack .../051-debhelper_13.24.1ubuntu2_all.deb ... 173s Unpacking debhelper (13.24.1ubuntu2) ... 173s Selecting previously unselected package dh-python. 173s Preparing to unpack .../052-dh-python_6.20250108_all.deb ... 173s Unpacking dh-python (6.20250108) ... 173s Selecting previously unselected package xml-core. 173s Preparing to unpack .../053-xml-core_0.19_all.deb ... 173s Unpacking xml-core (0.19) ... 173s Selecting previously unselected package docutils-common. 173s Preparing to unpack .../054-docutils-common_0.21.2+dfsg-2_all.deb ... 173s Unpacking docutils-common (0.21.2+dfsg-2) ... 173s Selecting previously unselected package python3-soupsieve. 173s Preparing to unpack .../055-python3-soupsieve_2.6-1_all.deb ... 173s Unpacking python3-soupsieve (2.6-1) ... 173s Selecting previously unselected package python3-bs4. 173s Preparing to unpack .../056-python3-bs4_4.13.3-1_all.deb ... 173s Unpacking python3-bs4 (4.13.3-1) ... 173s Selecting previously unselected package python3-defusedxml. 173s Preparing to unpack .../057-python3-defusedxml_0.7.1-3_all.deb ... 173s Unpacking python3-defusedxml (0.7.1-3) ... 173s Selecting previously unselected package libjs-jquery. 173s Preparing to unpack .../058-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 173s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 173s Selecting previously unselected package libjs-underscore. 173s Preparing to unpack .../059-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 173s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 173s Selecting previously unselected package libjs-sphinxdoc. 173s Preparing to unpack .../060-libjs-sphinxdoc_8.1.3-4_all.deb ... 173s Unpacking libjs-sphinxdoc (8.1.3-4) ... 173s Selecting previously unselected package libjson-perl. 173s Preparing to unpack .../061-libjson-perl_4.10000-1_all.deb ... 173s Unpacking libjson-perl (4.10000-1) ... 173s Selecting previously unselected package sphinx-common. 173s Preparing to unpack .../062-sphinx-common_8.1.3-4_all.deb ... 173s Unpacking sphinx-common (8.1.3-4) ... 173s Selecting previously unselected package python3-alabaster. 173s Preparing to unpack .../063-python3-alabaster_0.7.16-0.1_all.deb ... 173s Unpacking python3-alabaster (0.7.16-0.1) ... 173s Selecting previously unselected package python3-roman. 173s Preparing to unpack .../064-python3-roman_5.0-1_all.deb ... 173s Unpacking python3-roman (5.0-1) ... 173s Selecting previously unselected package python3-docutils. 173s Preparing to unpack .../065-python3-docutils_0.21.2+dfsg-2_all.deb ... 173s Unpacking python3-docutils (0.21.2+dfsg-2) ... 173s Selecting previously unselected package python3-imagesize. 173s Preparing to unpack .../066-python3-imagesize_1.4.1-1_all.deb ... 173s Unpacking python3-imagesize (1.4.1-1) ... 173s Selecting previously unselected package python3-snowballstemmer. 173s Preparing to unpack .../067-python3-snowballstemmer_2.2.0-4build1_all.deb ... 173s Unpacking python3-snowballstemmer (2.2.0-4build1) ... 173s Selecting previously unselected package python3-sphinx. 173s Preparing to unpack .../068-python3-sphinx_8.1.3-4_all.deb ... 173s Unpacking python3-sphinx (8.1.3-4) ... 173s Selecting previously unselected package sphinx-basic-ng. 173s Preparing to unpack .../069-sphinx-basic-ng_1.0.0~beta2-1_all.deb ... 173s Unpacking sphinx-basic-ng (1.0.0~beta2-1) ... 173s Selecting previously unselected package furo. 173s Preparing to unpack .../070-furo_2024.08.06+dfsg-1_all.deb ... 173s Unpacking furo (2024.08.06+dfsg-1) ... 173s Selecting previously unselected package libexpat1-dev:s390x. 173s Preparing to unpack .../071-libexpat1-dev_2.6.4-1_s390x.deb ... 173s Unpacking libexpat1-dev:s390x (2.6.4-1) ... 173s Selecting previously unselected package zlib1g-dev:s390x. 173s Preparing to unpack .../072-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_s390x.deb ... 173s Unpacking zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 173s Selecting previously unselected package libpython3.13-dev:s390x. 173s Preparing to unpack .../073-libpython3.13-dev_3.13.2-1_s390x.deb ... 173s Unpacking libpython3.13-dev:s390x (3.13.2-1) ... 173s Selecting previously unselected package libpython3-dev:s390x. 173s Preparing to unpack .../074-libpython3-dev_3.13.1-1~exp2_s390x.deb ... 173s Unpacking libpython3-dev:s390x (3.13.1-1~exp2) ... 173s Selecting previously unselected package libpython3.12t64:s390x. 173s Preparing to unpack .../075-libpython3.12t64_3.12.9-1_s390x.deb ... 173s Unpacking libpython3.12t64:s390x (3.12.9-1) ... 173s Selecting previously unselected package libpython3.12-dev:s390x. 173s Preparing to unpack .../076-libpython3.12-dev_3.12.9-1_s390x.deb ... 173s Unpacking libpython3.12-dev:s390x (3.12.9-1) ... 174s Selecting previously unselected package libpython3-all-dev:s390x. 174s Preparing to unpack .../077-libpython3-all-dev_3.13.1-1~exp2_s390x.deb ... 174s Unpacking libpython3-all-dev:s390x (3.13.1-1~exp2) ... 174s Selecting previously unselected package pybuild-plugin-autopkgtest. 174s Preparing to unpack .../078-pybuild-plugin-autopkgtest_6.20250108_all.deb ... 174s Unpacking pybuild-plugin-autopkgtest (6.20250108) ... 174s Selecting previously unselected package python3-pyproject-hooks. 174s Preparing to unpack .../079-python3-pyproject-hooks_1.2.0-1_all.deb ... 174s Unpacking python3-pyproject-hooks (1.2.0-1) ... 174s Selecting previously unselected package python3-toml. 174s Preparing to unpack .../080-python3-toml_0.10.2-1_all.deb ... 174s Unpacking python3-toml (0.10.2-1) ... 174s Selecting previously unselected package python3-wheel. 174s Preparing to unpack .../081-python3-wheel_0.45.1-1_all.deb ... 174s Unpacking python3-wheel (0.45.1-1) ... 174s Selecting previously unselected package python3-build. 174s Preparing to unpack .../082-python3-build_1.2.2-1_all.deb ... 174s Unpacking python3-build (1.2.2-1) ... 174s Selecting previously unselected package python3-installer. 174s Preparing to unpack .../083-python3-installer_0.7.0+dfsg1-3_all.deb ... 174s Unpacking python3-installer (0.7.0+dfsg1-3) ... 174s Selecting previously unselected package pybuild-plugin-pyproject. 174s Preparing to unpack .../084-pybuild-plugin-pyproject_6.20250108_all.deb ... 174s Unpacking pybuild-plugin-pyproject (6.20250108) ... 174s Selecting previously unselected package python-black-doc. 174s Preparing to unpack .../085-python-black-doc_25.1.0-1_all.deb ... 174s Unpacking python-black-doc (25.1.0-1) ... 174s Selecting previously unselected package python3-aiohappyeyeballs. 174s Preparing to unpack .../086-python3-aiohappyeyeballs_2.4.6-1_all.deb ... 174s Unpacking python3-aiohappyeyeballs (2.4.6-1) ... 174s Selecting previously unselected package python3-multidict. 174s Preparing to unpack .../087-python3-multidict_6.1.0-1build1_s390x.deb ... 174s Unpacking python3-multidict (6.1.0-1build1) ... 174s Selecting previously unselected package python3-yarl. 174s Preparing to unpack .../088-python3-yarl_1.13.1-1build1_s390x.deb ... 174s Unpacking python3-yarl (1.13.1-1build1) ... 174s Selecting previously unselected package python3-async-timeout. 174s Preparing to unpack .../089-python3-async-timeout_5.0.1-1_all.deb ... 174s Unpacking python3-async-timeout (5.0.1-1) ... 174s Selecting previously unselected package python3-frozenlist. 174s Preparing to unpack .../090-python3-frozenlist_1.5.0-1build1_s390x.deb ... 174s Unpacking python3-frozenlist (1.5.0-1build1) ... 174s Selecting previously unselected package python3-aiosignal. 174s Preparing to unpack .../091-python3-aiosignal_1.3.2-1_all.deb ... 174s Unpacking python3-aiosignal (1.3.2-1) ... 174s Selecting previously unselected package python3-aiohttp. 174s Preparing to unpack .../092-python3-aiohttp_3.10.11-1_s390x.deb ... 174s Unpacking python3-aiohttp (3.10.11-1) ... 174s Selecting previously unselected package python3-all. 174s Preparing to unpack .../093-python3-all_3.13.1-1~exp2_s390x.deb ... 174s Unpacking python3-all (3.13.1-1~exp2) ... 174s Selecting previously unselected package python3.13-dev. 174s Preparing to unpack .../094-python3.13-dev_3.13.2-1_s390x.deb ... 174s Unpacking python3.13-dev (3.13.2-1) ... 174s Selecting previously unselected package python3-dev. 174s Preparing to unpack .../095-python3-dev_3.13.1-1~exp2_s390x.deb ... 174s Unpacking python3-dev (3.13.1-1~exp2) ... 174s Selecting previously unselected package python3.12-dev. 174s Preparing to unpack .../096-python3.12-dev_3.12.9-1_s390x.deb ... 174s Unpacking python3.12-dev (3.12.9-1) ... 174s Selecting previously unselected package python3-all-dev. 174s Preparing to unpack .../097-python3-all-dev_3.13.1-1~exp2_s390x.deb ... 174s Unpacking python3-all-dev (3.13.1-1~exp2) ... 174s Selecting previously unselected package python3.13-doc. 174s Preparing to unpack .../098-python3.13-doc_3.13.2-1_all.deb ... 174s Unpacking python3.13-doc (3.13.2-1) ... 174s Selecting previously unselected package python3-doc. 174s Preparing to unpack .../099-python3-doc_3.13.1-1~exp2_all.deb ... 174s Unpacking python3-doc (3.13.1-1~exp2) ... 174s Selecting previously unselected package python3-pluggy. 174s Preparing to unpack .../100-python3-pluggy_1.5.0-1_all.deb ... 174s Unpacking python3-pluggy (1.5.0-1) ... 174s Selecting previously unselected package python3-trove-classifiers. 174s Preparing to unpack .../101-python3-trove-classifiers_2025.1.15.22-1_all.deb ... 174s Unpacking python3-trove-classifiers (2025.1.15.22-1) ... 174s Selecting previously unselected package python3-hatchling. 174s Preparing to unpack .../102-python3-hatchling_1.27.0-1_all.deb ... 174s Unpacking python3-hatchling (1.27.0-1) ... 174s Selecting previously unselected package python3-hatch-fancy-pypi-readme. 174s Preparing to unpack .../103-python3-hatch-fancy-pypi-readme_24.1.0-1_all.deb ... 174s Unpacking python3-hatch-fancy-pypi-readme (24.1.0-1) ... 174s Selecting previously unselected package python3-psutil. 174s Preparing to unpack .../104-python3-psutil_5.9.8-2build3_s390x.deb ... 174s Unpacking python3-psutil (5.9.8-2build3) ... 174s Selecting previously unselected package python3-mypy. 174s Preparing to unpack .../105-python3-mypy_1.15.0-2_s390x.deb ... 174s Unpacking python3-mypy (1.15.0-2) ... 175s Selecting previously unselected package python3-hatch-mypyc. 175s Preparing to unpack .../106-python3-hatch-mypyc_0.16.0-5_all.deb ... 175s Unpacking python3-hatch-mypyc (0.16.0-5) ... 175s Selecting previously unselected package python3-setuptools-scm. 175s Preparing to unpack .../107-python3-setuptools-scm_8.1.0-1_all.deb ... 175s Unpacking python3-setuptools-scm (8.1.0-1) ... 175s Selecting previously unselected package python3-hatch-vcs. 175s Preparing to unpack .../108-python3-hatch-vcs_0.4.0-1_all.deb ... 175s Unpacking python3-hatch-vcs (0.4.0-1) ... 175s Selecting previously unselected package python3-iniconfig. 175s Preparing to unpack .../109-python3-iniconfig_1.1.1-2_all.deb ... 175s Unpacking python3-iniconfig (1.1.1-2) ... 175s Selecting previously unselected package python3-mdit-py-plugins. 175s Preparing to unpack .../110-python3-mdit-py-plugins_0.4.2-1_all.deb ... 175s Unpacking python3-mdit-py-plugins (0.4.2-1) ... 175s Selecting previously unselected package python3-myst-parser. 175s Preparing to unpack .../111-python3-myst-parser_4.0.0-1_all.deb ... 175s Unpacking python3-myst-parser (4.0.0-1) ... 175s Selecting previously unselected package python3-pytest. 175s Preparing to unpack .../112-python3-pytest_8.3.4-1_all.deb ... 175s Unpacking python3-pytest (8.3.4-1) ... 175s Selecting previously unselected package python3-regex. 175s Preparing to unpack .../113-python3-regex_0.1.20241106-1_s390x.deb ... 175s Unpacking python3-regex (0.1.20241106-1) ... 175s Selecting previously unselected package python3-sphinx-copybutton. 175s Preparing to unpack .../114-python3-sphinx-copybutton_0.5.2-2_all.deb ... 175s Unpacking python3-sphinx-copybutton (0.5.2-2) ... 175s Selecting previously unselected package python3-sphinxcontrib.programoutput. 175s Preparing to unpack .../115-python3-sphinxcontrib.programoutput_0.17-6_all.deb ... 175s Unpacking python3-sphinxcontrib.programoutput (0.17-6) ... 175s Setting up dh-python (6.20250108) ... 175s Setting up python3-iniconfig (1.1.1-2) ... 175s Setting up python3-tomli (2.2.1-2) ... 175s Setting up python3-defusedxml (0.7.1-3) ... 175s Setting up libarchive-zip-perl (1.68-1) ... 175s Setting up python3-alabaster (0.7.16-0.1) ... 176s Setting up python3-mypy-extensions (1.0.0-1) ... 176s Setting up libdebhelper-perl (13.24.1ubuntu2) ... 176s Setting up libpython3.12-minimal:s390x (3.12.9-1) ... 176s Setting up python3-mdit-py-plugins (0.4.2-1) ... 176s Setting up m4 (1.4.19-5) ... 176s Setting up libgomp1:s390x (15-20250213-1ubuntu1) ... 176s Setting up python3-click (8.2.0-1) ... 176s Setting up python3-wheel (0.45.1-1) ... 176s Setting up python3-platformdirs (4.3.6-1) ... 176s Setting up python3-psutil (5.9.8-2build3) ... 177s Setting up python3-multidict (6.1.0-1build1) ... 177s Setting up python3-frozenlist (1.5.0-1build1) ... 177s Setting up python3-aiosignal (1.3.2-1) ... 177s Setting up python3-async-timeout (5.0.1-1) ... 177s Setting up python3-roman (5.0-1) ... 178s Setting up autotools-dev (20220109.1) ... 178s Setting up python3-packaging (24.2-1) ... 178s Setting up libexpat1-dev:s390x (2.6.4-1) ... 178s Setting up python3-pyproject-hooks (1.2.0-1) ... 178s Setting up python3-snowballstemmer (2.2.0-4build1) ... 178s Setting up libmpc3:s390x (1.3.1-1build2) ... 178s Setting up python3-mypy (1.15.0-2) ... 182s Setting up autopoint (0.23.1-1) ... 182s Setting up python3-aiohappyeyeballs (2.4.6-1) ... 182s Setting up python3-regex (0.1.20241106-1) ... 182s Setting up python3-toml (0.10.2-1) ... 183s Setting up python3-installer (0.7.0+dfsg1-3) ... 183s Setting up autoconf (2.72-3) ... 183s Setting up python3-pluggy (1.5.0-1) ... 183s Setting up libubsan1:s390x (15-20250213-1ubuntu1) ... 183s Setting up zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 183s Setting up dwz (0.15-1build6) ... 183s Setting up python3-trove-classifiers (2025.1.15.22-1) ... 183s Setting up libasan8:s390x (15-20250213-1ubuntu1) ... 183s Setting up libjson-perl (4.10000-1) ... 183s Setting up libnsl2:s390x (1.3.0-3build3) ... 183s Setting up debugedit (1:5.1-2) ... 183s Setting up sgml-base (1.31) ... 183s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 183s Setting up libisl23:s390x (0.27-1) ... 183s Setting up python3-build (1.2.2-1) ... 183s Setting up python3-pathspec (0.12.1-1) ... 183s Setting up python3-yarl (1.13.1-1build1) ... 183s Setting up python3-soupsieve (2.6-1) ... 184s Setting up libcc1-0:s390x (15-20250213-1ubuntu1) ... 184s Setting up libitm1:s390x (15-20250213-1ubuntu1) ... 184s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 184s Setting up python3-imagesize (1.4.1-1) ... 184s Setting up automake (1:1.17-3) ... 184s update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (automake) in auto mode 184s Setting up libfile-stripnondeterminism-perl (1.14.1-2) ... 184s Setting up python3.12-minimal (3.12.9-1) ... 185s Setting up gettext (0.23.1-1) ... 185s Setting up libpython3.12-stdlib:s390x (3.12.9-1) ... 185s Setting up pybuild-plugin-pyproject (6.20250108) ... 185s Setting up python3-pytest (8.3.4-1) ... 185s Setting up python3.12 (3.12.9-1) ... 186s Setting up python3-aiohttp (3.10.11-1) ... 187s Setting up python3-all (3.13.1-1~exp2) ... 187s Setting up black (25.1.0-1) ... 187s Setting up python3-setuptools-scm (8.1.0-1) ... 187s Setting up python3-bs4 (4.13.3-1) ... 188s Setting up intltool-debian (0.35.0+20060710.6) ... 188s Setting up libpython3.12t64:s390x (3.12.9-1) ... 188s Setting up python3.13-doc (3.13.2-1) ... 188s Setting up libpython3.13-dev:s390x (3.13.2-1) ... 188s Setting up libjs-sphinxdoc (8.1.3-4) ... 188s Setting up cpp-14-s390x-linux-gnu (14.2.0-17ubuntu1) ... 188s Setting up cpp-14 (14.2.0-17ubuntu1) ... 188s Setting up dh-strip-nondeterminism (1.14.1-2) ... 188s Setting up xml-core (0.19) ... 188s Setting up python-black-doc (25.1.0-1) ... 188s Setting up python3-hatchling (1.27.0-1) ... 188s Setting up libgcc-14-dev:s390x (14.2.0-17ubuntu1) ... 188s Setting up libstdc++-14-dev:s390x (14.2.0-17ubuntu1) ... 188s Setting up python3-doc (3.13.1-1~exp2) ... 188s Setting up python3-hatch-vcs (0.4.0-1) ... 188s Setting up libpython3-dev:s390x (3.13.1-1~exp2) ... 188s Setting up cpp-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 188s Setting up python3-hatch-mypyc (0.16.0-5) ... 188s Setting up python3.13-dev (3.13.2-1) ... 188s Setting up po-debconf (1.0.21+nmu1) ... 188s Setting up libpython3.12-dev:s390x (3.12.9-1) ... 188s Setting up python3-hatch-fancy-pypi-readme (24.1.0-1) ... 189s Setting up gcc-14-s390x-linux-gnu (14.2.0-17ubuntu1) ... 189s Setting up gcc-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 189s Setting up libpython3-all-dev:s390x (3.13.1-1~exp2) ... 189s Setting up sphinx-common (8.1.3-4) ... 189s Setting up python3-dev (3.13.1-1~exp2) ... 189s Setting up g++-14-s390x-linux-gnu (14.2.0-17ubuntu1) ... 189s Setting up python3.12-dev (3.12.9-1) ... 189s Setting up cpp (4:14.2.0-1ubuntu1) ... 189s Setting up python3-all-dev (3.13.1-1~exp2) ... 189s Setting up g++-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 189s Setting up gcc-14 (14.2.0-17ubuntu1) ... 189s Setting up g++-14 (14.2.0-17ubuntu1) ... 189s Setting up libtool (2.5.4-3build1) ... 189s Setting up gcc (4:14.2.0-1ubuntu1) ... 189s Setting up dh-autoreconf (20) ... 189s Setting up g++ (4:14.2.0-1ubuntu1) ... 189s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 189s Setting up build-essential (12.10ubuntu1) ... 189s Setting up debhelper (13.24.1ubuntu2) ... 189s Setting up pybuild-plugin-autopkgtest (6.20250108) ... 189s Processing triggers for install-info (7.1.1-1) ... 189s Processing triggers for libc-bin (2.40-4ubuntu1) ... 189s Processing triggers for systemd (257.2-3ubuntu1) ... 189s Processing triggers for man-db (2.13.0-1) ... 190s Processing triggers for sgml-base (1.31) ... 190s Setting up docutils-common (0.21.2+dfsg-2) ... 190s Processing triggers for sgml-base (1.31) ... 190s Setting up python3-docutils (0.21.2+dfsg-2) ... 191s Setting up python3-sphinx (8.1.3-4) ... 192s Setting up python3-myst-parser (4.0.0-1) ... 193s Setting up python3-sphinx-copybutton (0.5.2-2) ... 193s Setting up python3-sphinxcontrib.programoutput (0.17-6) ... 193s Setting up sphinx-basic-ng (1.0.0~beta2-1) ... 193s Setting up furo (2024.08.06+dfsg-1) ... 194s autopkgtest [04:31:36]: test pybuild-autopkgtest: pybuild-autopkgtest 194s autopkgtest [04:31:36]: test pybuild-autopkgtest: [----------------------- 195s pybuild-autopkgtest 195s date: invalid date '@' 195s I: pybuild base:311: cd /tmp/autopkgtest.9YMIed/autopkgtest_tmp/build; python3.12 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)" 196s ============================= test session starts ============================== 196s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 196s rootdir: /tmp/autopkgtest.9YMIed/autopkgtest_tmp/build 196s configfile: pyproject.toml 196s plugins: typeguard-4.4.1 196s collected 386 items / 16 deselected / 1 skipped / 370 selected 196s 197s tests/test_black.py FF.FFF...........FF............FF.F....F.FF.F....... [ 14%] 200s ....FFF.FF......FFFF.FFFF.FF..F..FFFFF.....F..........FF................ [ 33%] 200s ..... [ 34%] 200s tests/test_blackd.py ssssssssssssssssssss [ 40%] 200s tests/test_docs.py s [ 40%] 205s tests/test_format.py ................................................... [ 54%] 218s ........................................................................ [ 73%] 231s ............................................................ [ 90%] 231s tests/test_no_ipynb.py .. [ 90%] 231s tests/test_ranges.py ............................... [ 98%] 231s tests/test_schema.py . [ 99%] 231s tests/test_tokenize.py .. [ 99%] 231s tests/test_trans.py . [100%] 231s 231s =================================== FAILURES =================================== 231s ____________________ BlackTestCase.test_async_as_identifier ____________________ 231s 231s self = 231s 231s @patch("black.dump_to_file", dump_to_stderr) 231s def test_async_as_identifier(self) -> None: 231s source_path = get_case_path("miscellaneous", "async_as_identifier") 231s _, source, expected = read_data_from_file(source_path) 231s actual = fs(source) 231s self.assertFormatEqual(expected, actual) 231s major, minor = sys.version_info[:2] 231s if major < 3 or (major <= 3 and minor < 7): 231s black.assert_equivalent(source, actual) 231s black.assert_stable(source, actual, DEFAULT_MODE) 231s # ensure black can parse this when the target is 3.6 231s > self.invokeBlack([str(source_path), "--target-version", "py36"]) 231s 231s tests/test_black.py:431: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ____________________ BlackTestCase.test_bpo_2142_workaround ____________________ 231s 231s self = 231s 231s def test_bpo_2142_workaround(self) -> None: 231s # https://bugs.python.org/issue2142 231s 231s source, _ = read_data("miscellaneous", "missing_final_newline") 231s # read_data adds a trailing newline 231s source = source.rstrip() 231s expected, _ = read_data("miscellaneous", "missing_final_newline.diff") 231s tmp_file = Path(black.dump_to_file(source, ensure_final_newline=False)) 231s diff_header = re.compile( 231s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 231s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 231s ) 231s try: 231s > result = BlackRunner().invoke(black.main, ["--diff", str(tmp_file)]) 231s 231s tests/test_black.py:1825: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ______________________ BlackTestCase.test_broken_symlink _______________________ 231s 231s self = 231s 231s def test_broken_symlink(self) -> None: 231s with cache_dir() as workspace: 231s symlink = workspace / "broken_link.py" 231s try: 231s symlink.symlink_to("nonexistent.py") 231s except (OSError, NotImplementedError) as e: 231s self.skipTest(f"Can't create symlinks: {e}") 231s > self.invokeBlack([str(workspace.resolve())]) 231s 231s tests/test_black.py:1127: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________________ BlackTestCase.test_check_diff_use_together __________________ 231s 231s self = 231s 231s @event_loop() 231s def test_check_diff_use_together(self) -> None: 231s with cache_dir(): 231s # Files which will be reformatted. 231s src1 = get_case_path("miscellaneous", "string_quotes") 231s > self.invokeBlack([str(src1), "--diff", "--check"], exit_code=1) 231s 231s tests/test_black.py:1105: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _______________________ BlackTestCase.test_cli_unstable ________________________ 231s 231s self = 231s 231s def test_cli_unstable(self) -> None: 231s > self.invokeBlack(["--unstable", "-c", "0"], exit_code=0) 231s 231s tests/test_black.py:1390: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ______________________ BlackTestCase.test_expression_diff ______________________ 231s 231s self = 231s 231s def test_expression_diff(self) -> None: 231s source, _ = read_data("cases", "expression.py") 231s expected, _ = read_data("cases", "expression.diff") 231s tmp_file = Path(black.dump_to_file(source)) 231s diff_header = re.compile( 231s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 231s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 231s ) 231s try: 231s > result = BlackRunner().invoke( 231s black.main, ["--diff", str(tmp_file), f"--config={EMPTY_CONFIG}"] 231s ) 231s 231s tests/test_black.py:292: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ________________ BlackTestCase.test_expression_diff_with_color _________________ 231s 231s self = 231s 231s def test_expression_diff_with_color(self) -> None: 231s source, _ = read_data("cases", "expression.py") 231s expected, _ = read_data("cases", "expression.diff") 231s tmp_file = Path(black.dump_to_file(source)) 231s try: 231s > result = BlackRunner().invoke( 231s black.main, 231s ["--diff", "--color", str(tmp_file), f"--config={EMPTY_CONFIG}"], 231s ) 231s 231s tests/test_black.py:314: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _____________________ BlackTestCase.test_invalid_cli_regex _____________________ 231s 231s self = 231s 231s def test_invalid_cli_regex(self) -> None: 231s for option in ["--include", "--exclude", "--extend-exclude", "--force-exclude"]: 231s > self.invokeBlack(["-", option, "**()(!!*)"], exit_code=2) 231s 231s tests/test_black.py:1407: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ________________ BlackTestCase.test_invalid_config_return_code _________________ 231s 231s self = 231s 231s def test_invalid_config_return_code(self) -> None: 231s tmp_file = Path(black.dump_to_file()) 231s try: 231s tmp_config = Path(black.dump_to_file()) 231s tmp_config.unlink() 231s args = ["--config", str(tmp_config), str(tmp_file)] 231s > self.invokeBlack(args, exit_code=2, ignore_config=False) 231s 231s tests/test_black.py:1495: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _______________ BlackTestCase.test_line_ranges_in_pyproject_toml _______________ 231s 231s self = 231s 231s def test_line_ranges_in_pyproject_toml(self) -> None: 231s config = THIS_DIR / "data" / "invalid_line_ranges.toml" 231s > result = BlackRunner().invoke( 231s black.main, ["--code", "print()", "--config", str(config)] 231s ) 231s 231s tests/test_black.py:2053: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________________ BlackTestCase.test_line_ranges_with_stdin ___________________ 231s 231s self = 231s 231s def test_line_ranges_with_stdin(self) -> None: 231s code = textwrap.dedent("""\ 231s if a == b: 231s print ( "OK" ) 231s """) 231s > runner = BlackRunner() 231s 231s tests/test_black.py:1999: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ___________________ BlackTestCase.test_multi_file_force_py36 ___________________ 231s 231s self = 231s 231s @event_loop() 231s def test_multi_file_force_py36(self) -> None: 231s reg_mode = DEFAULT_MODE 231s py36_mode = replace(DEFAULT_MODE, target_versions=PY36_VERSIONS) 231s source, expected = read_data("miscellaneous", "force_py36") 231s with cache_dir() as workspace: 231s paths = [ 231s (workspace / "file1.py").resolve(), 231s (workspace / "file2.py").resolve(), 231s ] 231s for path in paths: 231s path.write_text(source, encoding="utf-8") 231s > self.invokeBlack([str(p) for p in paths] + PY36_ARGS) 231s 231s tests/test_black.py:1206: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ___________________ BlackTestCase.test_multi_file_force_pyi ____________________ 231s 231s self = 231s 231s @event_loop() 231s def test_multi_file_force_pyi(self) -> None: 231s reg_mode = DEFAULT_MODE 231s pyi_mode = replace(DEFAULT_MODE, is_pyi=True) 231s contents, expected = read_data("miscellaneous", "force_pyi") 231s with cache_dir() as workspace: 231s paths = [ 231s (workspace / "file1.py").resolve(), 231s (workspace / "file2.py").resolve(), 231s ] 231s for path in paths: 231s path.write_text(contents, encoding="utf-8") 231s > self.invokeBlack([str(p) for p in paths] + ["--pyi"]) 231s 231s tests/test_black.py:1158: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _______________________ BlackTestCase.test_no_src_fails ________________________ 231s 231s self = 231s 231s def test_no_src_fails(self) -> None: 231s with cache_dir(): 231s > self.invokeBlack([], exit_code=1) 231s 231s tests/test_black.py:1114: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________________________ BlackTestCase.test_piping ___________________________ 231s 231s self = 231s 231s def test_piping(self) -> None: 231s _, source, expected = read_data_from_file( 231s PROJECT_ROOT / "src/black/__init__.py" 231s ) 231s > result = BlackRunner().invoke( 231s black.main, 231s [ 231s "-", 231s "--fast", 231s f"--line-length={black.DEFAULT_LINE_LENGTH}", 231s f"--config={EMPTY_CONFIG}", 231s ], 231s input=BytesIO(source.encode("utf-8")), 231s ) 231s 231s tests/test_black.py:179: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ________________________ BlackTestCase.test_piping_diff ________________________ 231s 231s self = 231s 231s def test_piping_diff(self) -> None: 231s diff_header = re.compile( 231s r"(STDIN|STDOUT)\t\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d" 231s r"\+\d\d:\d\d" 231s ) 231s source, _ = read_data("cases", "expression.py") 231s expected, _ = read_data("cases", "expression.diff") 231s args = [ 231s "-", 231s "--fast", 231s f"--line-length={black.DEFAULT_LINE_LENGTH}", 231s "--diff", 231s f"--config={EMPTY_CONFIG}", 231s ] 231s > result = BlackRunner().invoke( 231s black.main, args, input=BytesIO(source.encode("utf-8")) 231s ) 231s 231s tests/test_black.py:209: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________________ BlackTestCase.test_piping_diff_with_color ___________________ 231s 231s self = 231s 231s def test_piping_diff_with_color(self) -> None: 231s source, _ = read_data("cases", "expression.py") 231s args = [ 231s "-", 231s "--fast", 231s f"--line-length={black.DEFAULT_LINE_LENGTH}", 231s "--diff", 231s "--color", 231s f"--config={EMPTY_CONFIG}", 231s ] 231s > result = BlackRunner().invoke( 231s black.main, args, input=BytesIO(source.encode("utf-8")) 231s ) 231s 231s tests/test_black.py:227: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _____________ BlackTestCase.test_preserves_line_endings_via_stdin ______________ 231s 231s self = 231s 231s def test_preserves_line_endings_via_stdin(self) -> None: 231s for nl in ["\n", "\r\n"]: 231s contents = nl.join(["def f( ):", " pass"]) 231s > runner = BlackRunner() 231s 231s tests/test_black.py:1453: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _________________________ BlackTestCase.test_python37 __________________________ 231s 231s self = 231s 231s @patch("black.dump_to_file", dump_to_stderr) 231s def test_python37(self) -> None: 231s source_path = get_case_path("cases", "python37") 231s _, source, expected = read_data_from_file(source_path) 231s actual = fs(source) 231s self.assertFormatEqual(expected, actual) 231s major, minor = sys.version_info[:2] 231s if major > 3 or (major == 3 and minor >= 7): 231s black.assert_equivalent(source, actual) 231s black.assert_stable(source, actual, DEFAULT_MODE) 231s # ensure black can parse this when the target is 3.7 231s > self.invokeBlack([str(source_path), "--target-version", "py37"]) 231s 231s tests/test_black.py:446: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _____ BlackTestCase.test_required_version_does_not_match_on_minor_version ______ 231s 231s self = 231s 231s def test_required_version_does_not_match_on_minor_version(self) -> None: 231s > self.invokeBlack( 231s ["--required-version", black.__version__.split(".")[0] + ".999", "-c", "0"], 231s exit_code=1, 231s ignore_config=True, 231s ) 231s 231s tests/test_black.py:1424: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________ BlackTestCase.test_required_version_does_not_match_version __________ 231s 231s self = 231s 231s def test_required_version_does_not_match_version(self) -> None: 231s > result = BlackRunner().invoke( 231s black.main, 231s ["--required-version", "20.99b", "-c", "0"], 231s ) 231s 231s tests/test_black.py:1431: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _________ BlackTestCase.test_required_version_matches_partial_version __________ 231s 231s self = 231s 231s def test_required_version_matches_partial_version(self) -> None: 231s > self.invokeBlack( 231s ["--required-version", black.__version__.split(".")[0], "-c", "0"], 231s exit_code=0, 231s ignore_config=True, 231s ) 231s 231s tests/test_black.py:1417: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _____________ BlackTestCase.test_required_version_matches_version ______________ 231s 231s self = 231s 231s def test_required_version_matches_version(self) -> None: 231s > self.invokeBlack( 231s ["--required-version", black.__version__, "-c", "0"], 231s exit_code=0, 231s ignore_config=True, 231s ) 231s 231s tests/test_black.py:1410: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________________ BlackTestCase.test_single_file_force_py36 ___________________ 231s 231s self = 231s 231s def test_single_file_force_py36(self) -> None: 231s reg_mode = DEFAULT_MODE 231s py36_mode = replace(DEFAULT_MODE, target_versions=PY36_VERSIONS) 231s source, expected = read_data("miscellaneous", "force_py36") 231s with cache_dir() as workspace: 231s path = (workspace / "file.py").resolve() 231s path.write_text(source, encoding="utf-8") 231s > self.invokeBlack([str(path), *PY36_ARGS]) 231s 231s tests/test_black.py:1185: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ___________________ BlackTestCase.test_single_file_force_pyi ___________________ 231s 231s self = 231s 231s def test_single_file_force_pyi(self) -> None: 231s pyi_mode = replace(DEFAULT_MODE, is_pyi=True) 231s contents, expected = read_data("miscellaneous", "force_pyi") 231s with cache_dir() as workspace: 231s path = (workspace / "file.py").resolve() 231s path.write_text(contents, encoding="utf-8") 231s > self.invokeBlack([str(path), "--pyi"]) 231s 231s tests/test_black.py:1135: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _________________ BlackTestCase.test_skip_magic_trailing_comma _________________ 231s 231s self = 231s 231s def test_skip_magic_trailing_comma(self) -> None: 231s source, _ = read_data("cases", "expression") 231s expected, _ = read_data( 231s "miscellaneous", "expression_skip_magic_trailing_comma.diff" 231s ) 231s tmp_file = Path(black.dump_to_file(source)) 231s diff_header = re.compile( 231s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 231s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 231s ) 231s try: 231s > result = BlackRunner().invoke( 231s black.main, ["-C", "--diff", str(tmp_file), f"--config={EMPTY_CONFIG}"] 231s ) 231s 231s tests/test_black.py:401: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________________ BlackTestCase.test_skip_source_first_line ___________________ 231s 231s self = 231s 231s def test_skip_source_first_line(self) -> None: 231s source, _ = read_data("miscellaneous", "invalid_header") 231s tmp_file = Path(black.dump_to_file(source)) 231s # Full source should fail (invalid syntax at header) 231s > self.invokeBlack([str(tmp_file), "--diff", "--check"], exit_code=123) 231s 231s tests/test_black.py:371: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _________________ BlackTestCase.test_spellcheck_pyproject_toml _________________ 231s 231s self = 231s 231s def test_spellcheck_pyproject_toml(self) -> None: 231s test_toml_file = THIS_DIR / "data" / "incorrect_spelling.toml" 231s > result = BlackRunner().invoke( 231s black.main, 231s [ 231s "--code=print('hello world')", 231s "--verbose", 231s f"--config={str(test_toml_file)}", 231s ], 231s ) 231s 231s tests/test_black.py:1514: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ____________________ BlackTestCase.test_src_and_code_fails _____________________ 231s 231s self = 231s 231s def test_src_and_code_fails(self) -> None: 231s with cache_dir(): 231s > self.invokeBlack([".", "-c", "0"], exit_code=1) 231s 231s tests/test_black.py:1118: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________ BlackTestCase.test_works_in_mono_process_only_environment ___________ 231s 231s self = 231s 231s @event_loop() 231s @patch("concurrent.futures.ProcessPoolExecutor", MagicMock(side_effect=OSError)) 231s def test_works_in_mono_process_only_environment(self) -> None: 231s with cache_dir() as workspace: 231s for f in [ 231s (workspace / "one.py").resolve(), 231s (workspace / "two.py").resolve(), 231s ]: 231s f.write_text('print("hello")\n', encoding="utf-8") 231s > self.invokeBlack([str(workspace)]) 231s 231s tests/test_black.py:1098: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ______________________ TestCaching.test_cache_broken_file ______________________ 231s 231s self = 231s 231s def test_cache_broken_file(self) -> None: 231s mode = DEFAULT_MODE 231s with cache_dir() as workspace: 231s cache_file = get_cache_file(mode) 231s cache_file.write_text("this is not a pickle", encoding="utf-8") 231s assert black.Cache.read(mode).file_data == {} 231s src = (workspace / "test.py").resolve() 231s src.write_text("print('hello')", encoding="utf-8") 231s > invokeBlack([str(src)]) 231s 231s tests/test_black.py:2134: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ______________ TestCaching.test_cache_single_file_already_cached _______________ 231s 231s self = 231s 231s def test_cache_single_file_already_cached(self) -> None: 231s mode = DEFAULT_MODE 231s with cache_dir() as workspace: 231s src = (workspace / "test.py").resolve() 231s src.write_text("print('hello')", encoding="utf-8") 231s cache = black.Cache.read(mode) 231s cache.write([src]) 231s > invokeBlack([str(src)]) 231s 231s tests/test_black.py:2145: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ____________________ TestCaching.test_cache_multiple_files _____________________ 231s 231s self = 231s 231s @event_loop() 231s def test_cache_multiple_files(self) -> None: 231s mode = DEFAULT_MODE 231s with ( 231s cache_dir() as workspace, 231s patch("concurrent.futures.ProcessPoolExecutor", new=ThreadPoolExecutor), 231s ): 231s one = (workspace / "one.py").resolve() 231s one.write_text("print('hello')", encoding="utf-8") 231s two = (workspace / "two.py").resolve() 231s two.write_text("print('hello')", encoding="utf-8") 231s cache = black.Cache.read(mode) 231s cache.write([one]) 231s > invokeBlack([str(workspace)]) 231s 231s tests/test_black.py:2161: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ________ TestCaching.test_output_locking_when_writeback_diff[no-color] _________ 231s 231s self = , color = False 231s 231s @pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"]) 231s @event_loop() 231s def test_output_locking_when_writeback_diff(self, color: bool) -> None: 231s with cache_dir() as workspace: 231s for tag in range(0, 4): 231s src = (workspace / f"test{tag}.py").resolve() 231s src.write_text("print('hello')", encoding="utf-8") 231s with patch( 231s "black.concurrency.Manager", wraps=multiprocessing.Manager 231s ) as mgr: 231s cmd = ["--diff", str(workspace)] 231s if color: 231s cmd.append("--color") 231s > invokeBlack(cmd, exit_code=0) 231s 231s tests/test_black.py:2201: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _______ TestCaching.test_output_locking_when_writeback_diff[with-color] ________ 231s 231s self = , color = True 231s 231s @pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"]) 231s @event_loop() 231s def test_output_locking_when_writeback_diff(self, color: bool) -> None: 231s with cache_dir() as workspace: 231s for tag in range(0, 4): 231s src = (workspace / f"test{tag}.py").resolve() 231s src.write_text("print('hello')", encoding="utf-8") 231s with patch( 231s "black.concurrency.Manager", wraps=multiprocessing.Manager 231s ) as mgr: 231s cmd = ["--diff", str(workspace)] 231s if color: 231s cmd.append("--color") 231s > invokeBlack(cmd, exit_code=0) 231s 231s tests/test_black.py:2201: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s ____________ TestCaching.test_failed_formatting_does_not_get_cached ____________ 231s 231s self = 231s 231s @event_loop() 231s def test_failed_formatting_does_not_get_cached(self) -> None: 231s mode = DEFAULT_MODE 231s with ( 231s cache_dir() as workspace, 231s patch("concurrent.futures.ProcessPoolExecutor", new=ThreadPoolExecutor), 231s ): 231s failing = (workspace / "failing.py").resolve() 231s failing.write_text("not actually python", encoding="utf-8") 231s clean = (workspace / "clean.py").resolve() 231s clean.write_text('print("hello")\n', encoding="utf-8") 231s > invokeBlack([str(workspace)], exit_code=123) 231s 231s tests/test_black.py:2315: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s tests/test_black.py:123: in invokeBlack 231s runner = BlackRunner() 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s __________________ TestFileCollection.test_invalid_gitignore ___________________ 231s 231s self = 231s 231s def test_invalid_gitignore(self) -> None: 231s path = THIS_DIR / "data" / "invalid_gitignore_tests" 231s empty_config = path / "pyproject.toml" 231s > result = BlackRunner().invoke( 231s black.main, ["--verbose", "--config", str(empty_config), str(path)] 231s ) 231s 231s tests/test_black.py:2518: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s _______________ TestFileCollection.test_invalid_nested_gitignore _______________ 231s 231s self = 231s 231s def test_invalid_nested_gitignore(self) -> None: 231s path = THIS_DIR / "data" / "invalid_nested_gitignore_tests" 231s empty_config = path / "pyproject.toml" 231s > result = BlackRunner().invoke( 231s black.main, ["--verbose", "--config", str(empty_config), str(path)] 231s ) 231s 231s tests/test_black.py:2534: 231s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 231s 231s self = 231s 231s def __init__(self) -> None: 231s > super().__init__(mix_stderr=False) 231s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 231s 231s tests/test_black.py:117: TypeError 231s =========================== short test summary info ============================ 231s FAILED tests/test_black.py::BlackTestCase::test_async_as_identifier - TypeErr... 231s FAILED tests/test_black.py::BlackTestCase::test_bpo_2142_workaround - TypeErr... 231s FAILED tests/test_black.py::BlackTestCase::test_broken_symlink - TypeError: C... 231s FAILED tests/test_black.py::BlackTestCase::test_check_diff_use_together - Typ... 231s FAILED tests/test_black.py::BlackTestCase::test_cli_unstable - TypeError: Cli... 231s FAILED tests/test_black.py::BlackTestCase::test_expression_diff - TypeError: ... 231s FAILED tests/test_black.py::BlackTestCase::test_expression_diff_with_color - ... 231s FAILED tests/test_black.py::BlackTestCase::test_invalid_cli_regex - TypeError... 231s FAILED tests/test_black.py::BlackTestCase::test_invalid_config_return_code - ... 231s FAILED tests/test_black.py::BlackTestCase::test_line_ranges_in_pyproject_toml 231s FAILED tests/test_black.py::BlackTestCase::test_line_ranges_with_stdin - Type... 231s FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_py36 - TypeE... 231s FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_pyi - TypeEr... 231s FAILED tests/test_black.py::BlackTestCase::test_no_src_fails - TypeError: Cli... 231s FAILED tests/test_black.py::BlackTestCase::test_piping - TypeError: CliRunner... 231s FAILED tests/test_black.py::BlackTestCase::test_piping_diff - TypeError: CliR... 231s FAILED tests/test_black.py::BlackTestCase::test_piping_diff_with_color - Type... 231s FAILED tests/test_black.py::BlackTestCase::test_preserves_line_endings_via_stdin 231s FAILED tests/test_black.py::BlackTestCase::test_python37 - TypeError: CliRunn... 231s FAILED tests/test_black.py::BlackTestCase::test_required_version_does_not_match_on_minor_version 231s FAILED tests/test_black.py::BlackTestCase::test_required_version_does_not_match_version 231s FAILED tests/test_black.py::BlackTestCase::test_required_version_matches_partial_version 231s FAILED tests/test_black.py::BlackTestCase::test_required_version_matches_version 231s FAILED tests/test_black.py::BlackTestCase::test_single_file_force_py36 - Type... 231s FAILED tests/test_black.py::BlackTestCase::test_single_file_force_pyi - TypeE... 231s FAILED tests/test_black.py::BlackTestCase::test_skip_magic_trailing_comma - T... 231s FAILED tests/test_black.py::BlackTestCase::test_skip_source_first_line - Type... 231s FAILED tests/test_black.py::BlackTestCase::test_spellcheck_pyproject_toml - T... 231s FAILED tests/test_black.py::BlackTestCase::test_src_and_code_fails - TypeErro... 231s FAILED tests/test_black.py::BlackTestCase::test_works_in_mono_process_only_environment 231s FAILED tests/test_black.py::TestCaching::test_cache_broken_file - TypeError: ... 231s FAILED tests/test_black.py::TestCaching::test_cache_single_file_already_cached 231s FAILED tests/test_black.py::TestCaching::test_cache_multiple_files - TypeErro... 231s FAILED tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff[no-color] 231s FAILED tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff[with-color] 231s FAILED tests/test_black.py::TestCaching::test_failed_formatting_does_not_get_cached 231s FAILED tests/test_black.py::TestFileCollection::test_invalid_gitignore - Type... 231s FAILED tests/test_black.py::TestFileCollection::test_invalid_nested_gitignore 231s ========== 38 failed, 311 passed, 22 skipped, 16 deselected in 35.85s ========== 232s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.9YMIed/autopkgtest_tmp/build; python3.12 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)" 232s I: pybuild base:311: cd /tmp/autopkgtest.9YMIed/autopkgtest_tmp/build; python3.13 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)" 232s ============================= test session starts ============================== 232s platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 232s rootdir: /tmp/autopkgtest.9YMIed/autopkgtest_tmp/build 232s configfile: pyproject.toml 232s plugins: typeguard-4.4.1 232s collected 386 items / 16 deselected / 1 skipped / 370 selected 232s 233s tests/test_black.py FF.FFF...........FF............FF.F....F.FF.F....... [ 14%] 235s ....FFF.FF......FFFF.FFFF.FF..F..FFFFF.....F..........FF................ [ 33%] 235s ..... [ 34%] 235s tests/test_blackd.py ssssssssssssssssssss [ 40%] 235s tests/test_docs.py s [ 40%] 240s tests/test_format.py ................................................... [ 54%] 252s ........................................................................ [ 73%] 264s ............................................................ [ 90%] 264s tests/test_no_ipynb.py .. [ 90%] 264s tests/test_ranges.py ............................... [ 98%] 264s tests/test_schema.py . [ 99%] 264s tests/test_tokenize.py .. [ 99%] 264s tests/test_trans.py . [100%] 264s 264s =================================== FAILURES =================================== 264s ____________________ BlackTestCase.test_async_as_identifier ____________________ 264s 264s self = 264s 264s @patch("black.dump_to_file", dump_to_stderr) 264s def test_async_as_identifier(self) -> None: 264s source_path = get_case_path("miscellaneous", "async_as_identifier") 264s _, source, expected = read_data_from_file(source_path) 264s actual = fs(source) 264s self.assertFormatEqual(expected, actual) 264s major, minor = sys.version_info[:2] 264s if major < 3 or (major <= 3 and minor < 7): 264s black.assert_equivalent(source, actual) 264s black.assert_stable(source, actual, DEFAULT_MODE) 264s # ensure black can parse this when the target is 3.6 264s > self.invokeBlack([str(source_path), "--target-version", "py36"]) 264s 264s tests/test_black.py:431: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ____________________ BlackTestCase.test_bpo_2142_workaround ____________________ 264s 264s self = 264s 264s def test_bpo_2142_workaround(self) -> None: 264s # https://bugs.python.org/issue2142 264s 264s source, _ = read_data("miscellaneous", "missing_final_newline") 264s # read_data adds a trailing newline 264s source = source.rstrip() 264s expected, _ = read_data("miscellaneous", "missing_final_newline.diff") 264s tmp_file = Path(black.dump_to_file(source, ensure_final_newline=False)) 264s diff_header = re.compile( 264s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 264s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 264s ) 264s try: 264s > result = BlackRunner().invoke(black.main, ["--diff", str(tmp_file)]) 264s 264s tests/test_black.py:1825: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ______________________ BlackTestCase.test_broken_symlink _______________________ 264s 264s self = 264s 264s def test_broken_symlink(self) -> None: 264s with cache_dir() as workspace: 264s symlink = workspace / "broken_link.py" 264s try: 264s symlink.symlink_to("nonexistent.py") 264s except (OSError, NotImplementedError) as e: 264s self.skipTest(f"Can't create symlinks: {e}") 264s > self.invokeBlack([str(workspace.resolve())]) 264s 264s tests/test_black.py:1127: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________________ BlackTestCase.test_check_diff_use_together __________________ 264s 264s self = 264s 264s @event_loop() 264s def test_check_diff_use_together(self) -> None: 264s with cache_dir(): 264s # Files which will be reformatted. 264s src1 = get_case_path("miscellaneous", "string_quotes") 264s > self.invokeBlack([str(src1), "--diff", "--check"], exit_code=1) 264s 264s tests/test_black.py:1105: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _______________________ BlackTestCase.test_cli_unstable ________________________ 264s 264s self = 264s 264s def test_cli_unstable(self) -> None: 264s > self.invokeBlack(["--unstable", "-c", "0"], exit_code=0) 264s 264s tests/test_black.py:1390: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ______________________ BlackTestCase.test_expression_diff ______________________ 264s 264s self = 264s 264s def test_expression_diff(self) -> None: 264s source, _ = read_data("cases", "expression.py") 264s expected, _ = read_data("cases", "expression.diff") 264s tmp_file = Path(black.dump_to_file(source)) 264s diff_header = re.compile( 264s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 264s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 264s ) 264s try: 264s > result = BlackRunner().invoke( 264s black.main, ["--diff", str(tmp_file), f"--config={EMPTY_CONFIG}"] 264s ) 264s 264s tests/test_black.py:292: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ________________ BlackTestCase.test_expression_diff_with_color _________________ 264s 264s self = 264s 264s def test_expression_diff_with_color(self) -> None: 264s source, _ = read_data("cases", "expression.py") 264s expected, _ = read_data("cases", "expression.diff") 264s tmp_file = Path(black.dump_to_file(source)) 264s try: 264s > result = BlackRunner().invoke( 264s black.main, 264s ["--diff", "--color", str(tmp_file), f"--config={EMPTY_CONFIG}"], 264s ) 264s 264s tests/test_black.py:314: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _____________________ BlackTestCase.test_invalid_cli_regex _____________________ 264s 264s self = 264s 264s def test_invalid_cli_regex(self) -> None: 264s for option in ["--include", "--exclude", "--extend-exclude", "--force-exclude"]: 264s > self.invokeBlack(["-", option, "**()(!!*)"], exit_code=2) 264s 264s tests/test_black.py:1407: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ________________ BlackTestCase.test_invalid_config_return_code _________________ 264s 264s self = 264s 264s def test_invalid_config_return_code(self) -> None: 264s tmp_file = Path(black.dump_to_file()) 264s try: 264s tmp_config = Path(black.dump_to_file()) 264s tmp_config.unlink() 264s args = ["--config", str(tmp_config), str(tmp_file)] 264s > self.invokeBlack(args, exit_code=2, ignore_config=False) 264s 264s tests/test_black.py:1495: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _______________ BlackTestCase.test_line_ranges_in_pyproject_toml _______________ 264s 264s self = 264s 264s def test_line_ranges_in_pyproject_toml(self) -> None: 264s config = THIS_DIR / "data" / "invalid_line_ranges.toml" 264s > result = BlackRunner().invoke( 264s black.main, ["--code", "print()", "--config", str(config)] 264s ) 264s 264s tests/test_black.py:2053: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________________ BlackTestCase.test_line_ranges_with_stdin ___________________ 264s 264s self = 264s 264s def test_line_ranges_with_stdin(self) -> None: 264s code = textwrap.dedent("""\ 264s if a == b: 264s print ( "OK" ) 264s """) 264s > runner = BlackRunner() 264s 264s tests/test_black.py:1999: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ___________________ BlackTestCase.test_multi_file_force_py36 ___________________ 264s 264s self = 264s 264s @event_loop() 264s def test_multi_file_force_py36(self) -> None: 264s reg_mode = DEFAULT_MODE 264s py36_mode = replace(DEFAULT_MODE, target_versions=PY36_VERSIONS) 264s source, expected = read_data("miscellaneous", "force_py36") 264s with cache_dir() as workspace: 264s paths = [ 264s (workspace / "file1.py").resolve(), 264s (workspace / "file2.py").resolve(), 264s ] 264s for path in paths: 264s path.write_text(source, encoding="utf-8") 264s > self.invokeBlack([str(p) for p in paths] + PY36_ARGS) 264s 264s tests/test_black.py:1206: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ___________________ BlackTestCase.test_multi_file_force_pyi ____________________ 264s 264s self = 264s 264s @event_loop() 264s def test_multi_file_force_pyi(self) -> None: 264s reg_mode = DEFAULT_MODE 264s pyi_mode = replace(DEFAULT_MODE, is_pyi=True) 264s contents, expected = read_data("miscellaneous", "force_pyi") 264s with cache_dir() as workspace: 264s paths = [ 264s (workspace / "file1.py").resolve(), 264s (workspace / "file2.py").resolve(), 264s ] 264s for path in paths: 264s path.write_text(contents, encoding="utf-8") 264s > self.invokeBlack([str(p) for p in paths] + ["--pyi"]) 264s 264s tests/test_black.py:1158: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _______________________ BlackTestCase.test_no_src_fails ________________________ 264s 264s self = 264s 264s def test_no_src_fails(self) -> None: 264s with cache_dir(): 264s > self.invokeBlack([], exit_code=1) 264s 264s tests/test_black.py:1114: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________________________ BlackTestCase.test_piping ___________________________ 264s 264s self = 264s 264s def test_piping(self) -> None: 264s _, source, expected = read_data_from_file( 264s PROJECT_ROOT / "src/black/__init__.py" 264s ) 264s > result = BlackRunner().invoke( 264s black.main, 264s [ 264s "-", 264s "--fast", 264s f"--line-length={black.DEFAULT_LINE_LENGTH}", 264s f"--config={EMPTY_CONFIG}", 264s ], 264s input=BytesIO(source.encode("utf-8")), 264s ) 264s 264s tests/test_black.py:179: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ________________________ BlackTestCase.test_piping_diff ________________________ 264s 264s self = 264s 264s def test_piping_diff(self) -> None: 264s diff_header = re.compile( 264s r"(STDIN|STDOUT)\t\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d" 264s r"\+\d\d:\d\d" 264s ) 264s source, _ = read_data("cases", "expression.py") 264s expected, _ = read_data("cases", "expression.diff") 264s args = [ 264s "-", 264s "--fast", 264s f"--line-length={black.DEFAULT_LINE_LENGTH}", 264s "--diff", 264s f"--config={EMPTY_CONFIG}", 264s ] 264s > result = BlackRunner().invoke( 264s black.main, args, input=BytesIO(source.encode("utf-8")) 264s ) 264s 264s tests/test_black.py:209: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________________ BlackTestCase.test_piping_diff_with_color ___________________ 264s 264s self = 264s 264s def test_piping_diff_with_color(self) -> None: 264s source, _ = read_data("cases", "expression.py") 264s args = [ 264s "-", 264s "--fast", 264s f"--line-length={black.DEFAULT_LINE_LENGTH}", 264s "--diff", 264s "--color", 264s f"--config={EMPTY_CONFIG}", 264s ] 264s > result = BlackRunner().invoke( 264s black.main, args, input=BytesIO(source.encode("utf-8")) 264s ) 264s 264s tests/test_black.py:227: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _____________ BlackTestCase.test_preserves_line_endings_via_stdin ______________ 264s 264s self = 264s 264s def test_preserves_line_endings_via_stdin(self) -> None: 264s for nl in ["\n", "\r\n"]: 264s contents = nl.join(["def f( ):", " pass"]) 264s > runner = BlackRunner() 264s 264s tests/test_black.py:1453: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _________________________ BlackTestCase.test_python37 __________________________ 264s 264s self = 264s 264s @patch("black.dump_to_file", dump_to_stderr) 264s def test_python37(self) -> None: 264s source_path = get_case_path("cases", "python37") 264s _, source, expected = read_data_from_file(source_path) 264s actual = fs(source) 264s self.assertFormatEqual(expected, actual) 264s major, minor = sys.version_info[:2] 264s if major > 3 or (major == 3 and minor >= 7): 264s black.assert_equivalent(source, actual) 264s black.assert_stable(source, actual, DEFAULT_MODE) 264s # ensure black can parse this when the target is 3.7 264s > self.invokeBlack([str(source_path), "--target-version", "py37"]) 264s 264s tests/test_black.py:446: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _____ BlackTestCase.test_required_version_does_not_match_on_minor_version ______ 264s 264s self = 264s 264s def test_required_version_does_not_match_on_minor_version(self) -> None: 264s > self.invokeBlack( 264s ["--required-version", black.__version__.split(".")[0] + ".999", "-c", "0"], 264s exit_code=1, 264s ignore_config=True, 264s ) 264s 264s tests/test_black.py:1424: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________ BlackTestCase.test_required_version_does_not_match_version __________ 264s 264s self = 264s 264s def test_required_version_does_not_match_version(self) -> None: 264s > result = BlackRunner().invoke( 264s black.main, 264s ["--required-version", "20.99b", "-c", "0"], 264s ) 264s 264s tests/test_black.py:1431: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _________ BlackTestCase.test_required_version_matches_partial_version __________ 264s 264s self = 264s 264s def test_required_version_matches_partial_version(self) -> None: 264s > self.invokeBlack( 264s ["--required-version", black.__version__.split(".")[0], "-c", "0"], 264s exit_code=0, 264s ignore_config=True, 264s ) 264s 264s tests/test_black.py:1417: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _____________ BlackTestCase.test_required_version_matches_version ______________ 264s 264s self = 264s 264s def test_required_version_matches_version(self) -> None: 264s > self.invokeBlack( 264s ["--required-version", black.__version__, "-c", "0"], 264s exit_code=0, 264s ignore_config=True, 264s ) 264s 264s tests/test_black.py:1410: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________________ BlackTestCase.test_single_file_force_py36 ___________________ 264s 264s self = 264s 264s def test_single_file_force_py36(self) -> None: 264s reg_mode = DEFAULT_MODE 264s py36_mode = replace(DEFAULT_MODE, target_versions=PY36_VERSIONS) 264s source, expected = read_data("miscellaneous", "force_py36") 264s with cache_dir() as workspace: 264s path = (workspace / "file.py").resolve() 264s path.write_text(source, encoding="utf-8") 264s > self.invokeBlack([str(path), *PY36_ARGS]) 264s 264s tests/test_black.py:1185: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ___________________ BlackTestCase.test_single_file_force_pyi ___________________ 264s 264s self = 264s 264s def test_single_file_force_pyi(self) -> None: 264s pyi_mode = replace(DEFAULT_MODE, is_pyi=True) 264s contents, expected = read_data("miscellaneous", "force_pyi") 264s with cache_dir() as workspace: 264s path = (workspace / "file.py").resolve() 264s path.write_text(contents, encoding="utf-8") 264s > self.invokeBlack([str(path), "--pyi"]) 264s 264s tests/test_black.py:1135: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _________________ BlackTestCase.test_skip_magic_trailing_comma _________________ 264s 264s self = 264s 264s def test_skip_magic_trailing_comma(self) -> None: 264s source, _ = read_data("cases", "expression") 264s expected, _ = read_data( 264s "miscellaneous", "expression_skip_magic_trailing_comma.diff" 264s ) 264s tmp_file = Path(black.dump_to_file(source)) 264s diff_header = re.compile( 264s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 264s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 264s ) 264s try: 264s > result = BlackRunner().invoke( 264s black.main, ["-C", "--diff", str(tmp_file), f"--config={EMPTY_CONFIG}"] 264s ) 264s 264s tests/test_black.py:401: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________________ BlackTestCase.test_skip_source_first_line ___________________ 264s 264s self = 264s 264s def test_skip_source_first_line(self) -> None: 264s source, _ = read_data("miscellaneous", "invalid_header") 264s tmp_file = Path(black.dump_to_file(source)) 264s # Full source should fail (invalid syntax at header) 264s > self.invokeBlack([str(tmp_file), "--diff", "--check"], exit_code=123) 264s 264s tests/test_black.py:371: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _________________ BlackTestCase.test_spellcheck_pyproject_toml _________________ 264s 264s self = 264s 264s def test_spellcheck_pyproject_toml(self) -> None: 264s test_toml_file = THIS_DIR / "data" / "incorrect_spelling.toml" 264s > result = BlackRunner().invoke( 264s black.main, 264s [ 264s "--code=print('hello world')", 264s "--verbose", 264s f"--config={str(test_toml_file)}", 264s ], 264s ) 264s 264s tests/test_black.py:1514: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ____________________ BlackTestCase.test_src_and_code_fails _____________________ 264s 264s self = 264s 264s def test_src_and_code_fails(self) -> None: 264s with cache_dir(): 264s > self.invokeBlack([".", "-c", "0"], exit_code=1) 264s 264s tests/test_black.py:1118: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________ BlackTestCase.test_works_in_mono_process_only_environment ___________ 264s 264s self = 264s 264s @event_loop() 264s @patch("concurrent.futures.ProcessPoolExecutor", MagicMock(side_effect=OSError)) 264s def test_works_in_mono_process_only_environment(self) -> None: 264s with cache_dir() as workspace: 264s for f in [ 264s (workspace / "one.py").resolve(), 264s (workspace / "two.py").resolve(), 264s ]: 264s f.write_text('print("hello")\n', encoding="utf-8") 264s > self.invokeBlack([str(workspace)]) 264s 264s tests/test_black.py:1098: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ______________________ TestCaching.test_cache_broken_file ______________________ 264s 264s self = 264s 264s def test_cache_broken_file(self) -> None: 264s mode = DEFAULT_MODE 264s with cache_dir() as workspace: 264s cache_file = get_cache_file(mode) 264s cache_file.write_text("this is not a pickle", encoding="utf-8") 264s assert black.Cache.read(mode).file_data == {} 264s src = (workspace / "test.py").resolve() 264s src.write_text("print('hello')", encoding="utf-8") 264s > invokeBlack([str(src)]) 264s 264s tests/test_black.py:2134: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ______________ TestCaching.test_cache_single_file_already_cached _______________ 264s 264s self = 264s 264s def test_cache_single_file_already_cached(self) -> None: 264s mode = DEFAULT_MODE 264s with cache_dir() as workspace: 264s src = (workspace / "test.py").resolve() 264s src.write_text("print('hello')", encoding="utf-8") 264s cache = black.Cache.read(mode) 264s cache.write([src]) 264s > invokeBlack([str(src)]) 264s 264s tests/test_black.py:2145: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ____________________ TestCaching.test_cache_multiple_files _____________________ 264s 264s self = 264s 264s @event_loop() 264s def test_cache_multiple_files(self) -> None: 264s mode = DEFAULT_MODE 264s with ( 264s cache_dir() as workspace, 264s patch("concurrent.futures.ProcessPoolExecutor", new=ThreadPoolExecutor), 264s ): 264s one = (workspace / "one.py").resolve() 264s one.write_text("print('hello')", encoding="utf-8") 264s two = (workspace / "two.py").resolve() 264s two.write_text("print('hello')", encoding="utf-8") 264s cache = black.Cache.read(mode) 264s cache.write([one]) 264s > invokeBlack([str(workspace)]) 264s 264s tests/test_black.py:2161: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ________ TestCaching.test_output_locking_when_writeback_diff[no-color] _________ 264s 264s self = , color = False 264s 264s @pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"]) 264s @event_loop() 264s def test_output_locking_when_writeback_diff(self, color: bool) -> None: 264s with cache_dir() as workspace: 264s for tag in range(0, 4): 264s src = (workspace / f"test{tag}.py").resolve() 264s src.write_text("print('hello')", encoding="utf-8") 264s with patch( 264s "black.concurrency.Manager", wraps=multiprocessing.Manager 264s ) as mgr: 264s cmd = ["--diff", str(workspace)] 264s if color: 264s cmd.append("--color") 264s > invokeBlack(cmd, exit_code=0) 264s 264s tests/test_black.py:2201: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _______ TestCaching.test_output_locking_when_writeback_diff[with-color] ________ 264s 264s self = , color = True 264s 264s @pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"]) 264s @event_loop() 264s def test_output_locking_when_writeback_diff(self, color: bool) -> None: 264s with cache_dir() as workspace: 264s for tag in range(0, 4): 264s src = (workspace / f"test{tag}.py").resolve() 264s src.write_text("print('hello')", encoding="utf-8") 264s with patch( 264s "black.concurrency.Manager", wraps=multiprocessing.Manager 264s ) as mgr: 264s cmd = ["--diff", str(workspace)] 264s if color: 264s cmd.append("--color") 264s > invokeBlack(cmd, exit_code=0) 264s 264s tests/test_black.py:2201: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s ____________ TestCaching.test_failed_formatting_does_not_get_cached ____________ 264s 264s self = 264s 264s @event_loop() 264s def test_failed_formatting_does_not_get_cached(self) -> None: 264s mode = DEFAULT_MODE 264s with ( 264s cache_dir() as workspace, 264s patch("concurrent.futures.ProcessPoolExecutor", new=ThreadPoolExecutor), 264s ): 264s failing = (workspace / "failing.py").resolve() 264s failing.write_text("not actually python", encoding="utf-8") 264s clean = (workspace / "clean.py").resolve() 264s clean.write_text('print("hello")\n', encoding="utf-8") 264s > invokeBlack([str(workspace)], exit_code=123) 264s 264s tests/test_black.py:2315: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s tests/test_black.py:123: in invokeBlack 264s runner = BlackRunner() 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s __________________ TestFileCollection.test_invalid_gitignore ___________________ 264s 264s self = 264s 264s def test_invalid_gitignore(self) -> None: 264s path = THIS_DIR / "data" / "invalid_gitignore_tests" 264s empty_config = path / "pyproject.toml" 264s > result = BlackRunner().invoke( 264s black.main, ["--verbose", "--config", str(empty_config), str(path)] 264s ) 264s 264s tests/test_black.py:2518: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s _______________ TestFileCollection.test_invalid_nested_gitignore _______________ 264s 264s self = 264s 264s def test_invalid_nested_gitignore(self) -> None: 264s path = THIS_DIR / "data" / "invalid_nested_gitignore_tests" 264s empty_config = path / "pyproject.toml" 264s > result = BlackRunner().invoke( 264s black.main, ["--verbose", "--config", str(empty_config), str(path)] 264s ) 264s 264s tests/test_black.py:2534: 264s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 264s 264s self = 264s 264s def __init__(self) -> None: 264s > super().__init__(mix_stderr=False) 264s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 264s 264s tests/test_black.py:117: TypeError 264s =========================== short test summary info ============================ 264s FAILED tests/test_black.py::BlackTestCase::test_async_as_identifier - TypeErr... 264s FAILED tests/test_black.py::BlackTestCase::test_bpo_2142_workaround - TypeErr... 264s FAILED tests/test_black.py::BlackTestCase::test_broken_symlink - TypeError: C... 264s FAILED tests/test_black.py::BlackTestCase::test_check_diff_use_together - Typ... 264s FAILED tests/test_black.py::BlackTestCase::test_cli_unstable - TypeError: Cli... 264s FAILED tests/test_black.py::BlackTestCase::test_expression_diff - TypeError: ... 264s FAILED tests/test_black.py::BlackTestCase::test_expression_diff_with_color - ... 264s FAILED tests/test_black.py::BlackTestCase::test_invalid_cli_regex - TypeError... 264s FAILED tests/test_black.py::BlackTestCase::test_invalid_config_return_code - ... 264s FAILED tests/test_black.py::BlackTestCase::test_line_ranges_in_pyproject_toml 264s FAILED tests/test_black.py::BlackTestCase::test_line_ranges_with_stdin - Type... 264s FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_py36 - TypeE... 264s FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_pyi - TypeEr... 264s FAILED tests/test_black.py::BlackTestCase::test_no_src_fails - TypeError: Cli... 264s FAILED tests/test_black.py::BlackTestCase::test_piping - TypeError: CliRunner... 264s FAILED tests/test_black.py::BlackTestCase::test_piping_diff - TypeError: CliR... 264s FAILED tests/test_black.py::BlackTestCase::test_piping_diff_with_color - Type... 264s FAILED tests/test_black.py::BlackTestCase::test_preserves_line_endings_via_stdin 264s FAILED tests/test_black.py::BlackTestCase::test_python37 - TypeError: CliRunn... 264s FAILED tests/test_black.py::BlackTestCase::test_required_version_does_not_match_on_minor_version 264s FAILED tests/test_black.py::BlackTestCase::test_required_version_does_not_match_version 264s FAILED tests/test_black.py::BlackTestCase::test_required_version_matches_partial_version 264s FAILED tests/test_black.py::BlackTestCase::test_required_version_matches_version 264s FAILED tests/test_black.py::BlackTestCase::test_single_file_force_py36 - Type... 264s FAILED tests/test_black.py::BlackTestCase::test_single_file_force_pyi - TypeE... 264s FAILED tests/test_black.py::BlackTestCase::test_skip_magic_trailing_comma - T... 264s FAILED tests/test_black.py::BlackTestCase::test_skip_source_first_line - Type... 264s FAILED tests/test_black.py::BlackTestCase::test_spellcheck_pyproject_toml - T... 264s FAILED tests/test_black.py::BlackTestCase::test_src_and_code_fails - TypeErro... 264s FAILED tests/test_black.py::BlackTestCase::test_works_in_mono_process_only_environment 264s FAILED tests/test_black.py::TestCaching::test_cache_broken_file - TypeError: ... 264s FAILED tests/test_black.py::TestCaching::test_cache_single_file_already_cached 264s FAILED tests/test_black.py::TestCaching::test_cache_multiple_files - TypeErro... 264s FAILED tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff[no-color] 264s FAILED tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff[with-color] 264s FAILED tests/test_black.py::TestCaching::test_failed_formatting_does_not_get_cached 264s FAILED tests/test_black.py::TestFileCollection::test_invalid_gitignore - Type... 264s FAILED tests/test_black.py::TestFileCollection::test_invalid_nested_gitignore 264s ========== 38 failed, 311 passed, 22 skipped, 16 deselected in 32.46s ========== 268s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.9YMIed/autopkgtest_tmp/build; python3.13 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)" 268s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.12 3.13" returned exit code 13 268s make: *** [/tmp/AHUaBAOqmL/run:4: pybuild-autopkgtest] Error 25 268s pybuild-autopkgtest: error: /tmp/AHUaBAOqmL/run pybuild-autopkgtest returned exit code 2 268s autopkgtest [04:32:50]: test pybuild-autopkgtest: -----------------------] 269s autopkgtest [04:32:51]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 269s pybuild-autopkgtest FAIL non-zero exit status 25 270s autopkgtest [04:32:52]: @@@@@@@@@@@@@@@@@@@@ summary 270s pybuild-autopkgtest FAIL non-zero exit status 25 287s nova [W] Using flock in prodstack6-s390x 287s Creating nova instance adt-plucky-s390x-black-20250219-042821-juju-7f2275-prod-proposed-migration-environment-20-6dbd76bb-3581-4fca-beee-cd17faaef19d from image adt/ubuntu-plucky-s390x-server-20250218.img (UUID d4b3949f-1d31-4fe6-9e99-080adec067af)... 287s nova [W] Timed out waiting for 5e3753bb-c1aa-44ee-9780-d1be2fbd5031 to get deleted.