0s autopkgtest [03:45:12]: starting date and time: 2025-02-19 03:45:12+0000 0s autopkgtest [03:45:12]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [03:45:12]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work._b0vlgt8/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 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-arm64-27.secgroup --name adt-plucky-arm64-black-20250219-034511-juju-7f2275-prod-proposed-migration-environment-15-b17c37eb-e869-490b-a4ee-115fc4452f1e --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration -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/ 132s autopkgtest [03:47:24]: testbed dpkg architecture: arm64 132s autopkgtest [03:47:24]: testbed apt version: 2.9.29 133s autopkgtest [03:47:25]: @@@@@@@@@@@@@@@@@@@@ test bed setup 133s autopkgtest [03:47:25]: testbed release detected to be: None 134s autopkgtest [03:47:26]: updating testbed package index (apt update) 134s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 134s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 134s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 135s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 135s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 135s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.6 kB] 135s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [788 kB] 135s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [79.1 kB] 135s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [97.6 kB] 135s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 Packages [7960 B] 135s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [698 kB] 135s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [12.1 kB] 135s Fetched 1811 kB in 1s (1815 kB/s) 136s Reading package lists... 137s + lsb_release --codename --short 137s + RELEASE=plucky 137s + cat 137s + [ plucky != trusty ] 137s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y --allow-downgrades -o Dpkg::Options::=--force-confnew dist-upgrade 137s Reading package lists... 137s Building dependency tree... 137s Reading state information... 138s Calculating upgrade... 138s The following packages will be upgraded: 138s dhcpcd-base 138s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 138s Need to get 216 kB of archives. 138s After this operation, 0 B of additional disk space will be used. 138s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 dhcpcd-base arm64 1:10.1.0-7 [216 kB] 139s Fetched 216 kB in 0s (525 kB/s) 140s (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 ... 116620 files and directories currently installed.) 140s Preparing to unpack .../dhcpcd-base_1%3a10.1.0-7_arm64.deb ... 140s Unpacking dhcpcd-base (1:10.1.0-7) over (1:10.1.0-6) ... 140s Setting up dhcpcd-base (1:10.1.0-7) ... 140s Processing triggers for man-db (2.13.0-1) ... 141s + rm /etc/apt/preferences.d/force-downgrade-to-release.pref 141s + /usr/lib/apt/apt-helper analyze-pattern ?true 141s + uname -r 141s + sed s/\./\\./g 141s + running_kernel_pattern=^linux-.*6\.12\.0-15-generic.* 141s + apt list ?obsolete 141s + tail -n+2 141s + + grep -v ^linux-.*6\.12\.0-15-generic.* 141s cut -d/ -f1 141s + true 141s + obsolete_pkgs= 141s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y purge --autoremove 141s Reading package lists... 142s Building dependency tree... 142s Reading state information... 144s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 144s + grep -q trusty /etc/lsb-release 144s + [ ! -d /usr/share/doc/unattended-upgrades ] 144s + [ ! -d /usr/share/doc/lxd ] 144s + [ ! -d /usr/share/doc/lxd-client ] 144s + [ ! -d /usr/share/doc/snapd ] 144s + type iptables 144s + cat 144s + chmod 755 /etc/rc.local 144s + . /etc/rc.local 144s + iptables -w -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 144s + iptables -A OUTPUT -d 10.255.255.1/32 -p tcp -j DROP 144s + iptables -A OUTPUT -d 10.255.255.2/32 -p tcp -j DROP 144s + uname -m 144s + [ aarch64 = ppc64le ] 144s + [ -d /run/systemd/system ] 144s + systemd-detect-virt --quiet --vm 144s + mkdir -p /etc/systemd/system/systemd-random-seed.service.d/ 144s + cat 144s + grep -q lz4 /etc/initramfs-tools/initramfs.conf 144s + echo COMPRESS=lz4 144s autopkgtest [03:47:36]: upgrading testbed (apt dist-upgrade and autopurge) 144s Reading package lists... 145s Building dependency tree... 145s Reading state information... 146s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 146s Starting 2 pkgProblemResolver with broken count: 0 146s Done 148s Entering ResolveByKeep 148s 149s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 150s Reading package lists... 150s Building dependency tree... 150s Reading state information... 150s Starting pkgProblemResolver with broken count: 0 151s Starting 2 pkgProblemResolver with broken count: 0 151s Done 151s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 154s autopkgtest [03:47:46]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 4 15:49:33 UTC 2025 154s autopkgtest [03:47:46]: @@@@@@@@@@@@@@@@@@@@ apt-source black 157s Get:1 http://ftpmaster.internal/ubuntu plucky/universe black 25.1.0-1 (dsc) [2714 B] 157s Get:2 http://ftpmaster.internal/ubuntu plucky/universe black 25.1.0-1 (tar) [1269 kB] 157s Get:3 http://ftpmaster.internal/ubuntu plucky/universe black 25.1.0-1 (diff) [11.6 kB] 157s gpgv: Signature made Wed Feb 5 09:46:38 2025 UTC 157s gpgv: using RSA key 724D609337113C710550D7473C26763F6C67E6E2 157s gpgv: Can't check signature: No public key 157s dpkg-source: warning: cannot verify inline signature for ./black_25.1.0-1.dsc: no acceptable signature found 157s autopkgtest [03:47:49]: testing package black version 25.1.0-1 158s autopkgtest [03:47:50]: build not needed 158s autopkgtest [03:47:50]: test pybuild-autopkgtest: preparing testbed 159s Reading package lists... 159s Building dependency tree... 159s Reading state information... 159s Starting pkgProblemResolver with broken count: 0 159s Starting 2 pkgProblemResolver with broken count: 0 159s Done 161s The following NEW packages will be installed: 161s autoconf automake autopoint autotools-dev black build-essential cpp cpp-14 161s cpp-14-aarch64-linux-gnu cpp-aarch64-linux-gnu debhelper debugedit 161s dh-autoreconf dh-python dh-strip-nondeterminism docutils-common dwz furo g++ 161s g++-14 g++-14-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-14 161s gcc-14-aarch64-linux-gnu gcc-aarch64-linux-gnu gettext intltool-debian 161s libarchive-zip-perl libasan8 libcc1-0 libdebhelper-perl libexpat1-dev 161s libfile-stripnondeterminism-perl libgcc-14-dev libgomp1 libhwasan0 libisl23 161s libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl liblsan0 161s libmpc3 libpython3-all-dev libpython3-dev libpython3.12-dev 161s libpython3.13-dev libstdc++-14-dev libtool libtsan2 libubsan1 m4 po-debconf 161s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python-black-doc 161s python3-aiohappyeyeballs python3-aiohttp python3-aiosignal python3-alabaster 161s python3-all python3-all-dev python3-async-timeout python3-bs4 python3-build 161s python3-click python3-defusedxml python3-dev python3-doc python3-docutils 161s python3-frozenlist python3-hatch-fancy-pypi-readme python3-hatch-mypyc 161s python3-hatch-vcs python3-hatchling python3-imagesize python3-iniconfig 161s python3-installer python3-mdit-py-plugins python3-multidict python3-mypy 161s python3-mypy-extensions python3-myst-parser python3-packaging 161s python3-pathspec python3-platformdirs python3-pluggy python3-psutil 161s python3-pyproject-hooks python3-pytest python3-regex python3-roman 161s python3-setuptools-scm python3-snowballstemmer python3-soupsieve 161s python3-sphinx python3-sphinx-copybutton python3-sphinxcontrib.programoutput 161s python3-toml python3-tomli python3-trove-classifiers python3-wheel 161s python3-yarl python3.12 python3.12-dev python3.12-minimal python3.13-dev 161s python3.13-doc sgml-base sphinx-basic-ng sphinx-common xml-core zlib1g-dev 161s 0 upgraded, 115 newly installed, 0 to remove and 0 not upgraded. 161s Need to get 116 MB of archives. 161s After this operation, 495 MB of additional disk space will be used. 161s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12-minimal arm64 3.12.9-1 [2236 kB] 162s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 sgml-base all 1.31 [11.4 kB] 162s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12 arm64 3.12.9-1 [671 kB] 162s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 m4 arm64 1.4.19-5 [244 kB] 162s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 autoconf all 2.72-3 [382 kB] 162s Get:6 http://ftpmaster.internal/ubuntu plucky/main arm64 autotools-dev all 20220109.1 [44.9 kB] 162s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 automake all 1:1.17-3 [572 kB] 162s Get:8 http://ftpmaster.internal/ubuntu plucky/main arm64 autopoint all 0.23.1-1 [619 kB] 162s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-click all 8.2.0-1 [81.9 kB] 162s Get:10 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-mypy-extensions all 1.0.0-1 [6148 B] 162s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-packaging all 24.2-1 [51.5 kB] 162s Get:12 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pathspec all 0.12.1-1 [24.5 kB] 162s Get:13 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-platformdirs all 4.3.6-1 [16.8 kB] 162s Get:14 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-tomli arm64 2.2.1-2 [141 kB] 162s Get:15 http://ftpmaster.internal/ubuntu plucky/universe arm64 black arm64 25.1.0-1 [1679 kB] 162s Get:16 http://ftpmaster.internal/ubuntu plucky/main arm64 libisl23 arm64 0.27-1 [676 kB] 162s Get:17 http://ftpmaster.internal/ubuntu plucky/main arm64 libmpc3 arm64 1.3.1-1build2 [56.8 kB] 162s Get:18 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu1 [10.6 MB] 163s Get:19 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-14 arm64 14.2.0-17ubuntu1 [1032 B] 163s Get:20 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [5558 B] 163s Get:21 http://ftpmaster.internal/ubuntu plucky/main arm64 cpp arm64 4:14.2.0-1ubuntu1 [22.4 kB] 163s Get:22 http://ftpmaster.internal/ubuntu plucky/main arm64 libcc1-0 arm64 15-20250213-1ubuntu1 [44.2 kB] 163s Get:23 http://ftpmaster.internal/ubuntu plucky/main arm64 libgomp1 arm64 15-20250213-1ubuntu1 [146 kB] 163s Get:24 http://ftpmaster.internal/ubuntu plucky/main arm64 libitm1 arm64 15-20250213-1ubuntu1 [28.0 kB] 163s Get:25 http://ftpmaster.internal/ubuntu plucky/main arm64 libasan8 arm64 15-20250213-1ubuntu1 [2928 kB] 163s Get:26 http://ftpmaster.internal/ubuntu plucky/main arm64 liblsan0 arm64 15-20250213-1ubuntu1 [1319 kB] 163s Get:27 http://ftpmaster.internal/ubuntu plucky/main arm64 libtsan2 arm64 15-20250213-1ubuntu1 [2695 kB] 163s Get:28 http://ftpmaster.internal/ubuntu plucky/main arm64 libubsan1 arm64 15-20250213-1ubuntu1 [1178 kB] 163s Get:29 http://ftpmaster.internal/ubuntu plucky/main arm64 libhwasan0 arm64 15-20250213-1ubuntu1 [1642 kB] 163s Get:30 http://ftpmaster.internal/ubuntu plucky/main arm64 libgcc-14-dev arm64 14.2.0-17ubuntu1 [2593 kB] 163s Get:31 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu1 [20.9 MB] 164s Get:32 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-14 arm64 14.2.0-17ubuntu1 [526 kB] 164s Get:33 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [1200 B] 164s Get:34 http://ftpmaster.internal/ubuntu plucky/main arm64 gcc arm64 4:14.2.0-1ubuntu1 [4998 B] 164s Get:35 http://ftpmaster.internal/ubuntu plucky/main arm64 libstdc++-14-dev arm64 14.2.0-17ubuntu1 [2499 kB] 164s Get:36 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-14-aarch64-linux-gnu arm64 14.2.0-17ubuntu1 [12.1 MB] 164s Get:37 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-14 arm64 14.2.0-17ubuntu1 [21.8 kB] 164s Get:38 http://ftpmaster.internal/ubuntu plucky/main arm64 g++-aarch64-linux-gnu arm64 4:14.2.0-1ubuntu1 [956 B] 164s Get:39 http://ftpmaster.internal/ubuntu plucky/main arm64 g++ arm64 4:14.2.0-1ubuntu1 [1080 B] 164s Get:40 http://ftpmaster.internal/ubuntu plucky/main arm64 build-essential arm64 12.10ubuntu1 [4932 B] 164s Get:41 http://ftpmaster.internal/ubuntu plucky/main arm64 libdebhelper-perl all 13.24.1ubuntu2 [95.4 kB] 164s Get:42 http://ftpmaster.internal/ubuntu plucky/main arm64 libtool all 2.5.4-3build1 [168 kB] 164s Get:43 http://ftpmaster.internal/ubuntu plucky/main arm64 dh-autoreconf all 20 [16.1 kB] 164s Get:44 http://ftpmaster.internal/ubuntu plucky/main arm64 libarchive-zip-perl all 1.68-1 [90.2 kB] 164s Get:45 http://ftpmaster.internal/ubuntu plucky/main arm64 libfile-stripnondeterminism-perl all 1.14.1-2 [20.3 kB] 164s Get:46 http://ftpmaster.internal/ubuntu plucky/main arm64 dh-strip-nondeterminism all 1.14.1-2 [5064 B] 164s Get:47 http://ftpmaster.internal/ubuntu plucky/main arm64 debugedit arm64 1:5.1-2 [46.1 kB] 164s Get:48 http://ftpmaster.internal/ubuntu plucky/main arm64 dwz arm64 0.15-1build6 [113 kB] 164s Get:49 http://ftpmaster.internal/ubuntu plucky/main arm64 gettext arm64 0.23.1-1 [998 kB] 164s Get:50 http://ftpmaster.internal/ubuntu plucky/main arm64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 164s Get:51 http://ftpmaster.internal/ubuntu plucky/main arm64 po-debconf all 1.0.21+nmu1 [233 kB] 164s Get:52 http://ftpmaster.internal/ubuntu plucky/main arm64 debhelper all 13.24.1ubuntu2 [895 kB] 164s Get:53 http://ftpmaster.internal/ubuntu plucky/universe arm64 dh-python all 6.20250108 [117 kB] 164s Get:54 http://ftpmaster.internal/ubuntu plucky/main arm64 xml-core all 0.19 [20.3 kB] 164s Get:55 http://ftpmaster.internal/ubuntu plucky/main arm64 docutils-common all 0.21.2+dfsg-2 [131 kB] 164s Get:56 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-soupsieve all 2.6-1 [33.0 kB] 164s Get:57 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-bs4 all 4.13.3-1 [136 kB] 164s Get:58 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-defusedxml all 0.7.1-3 [42.2 kB] 164s Get:59 http://ftpmaster.internal/ubuntu plucky/main arm64 libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 164s Get:60 http://ftpmaster.internal/ubuntu plucky/main arm64 libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 164s Get:61 http://ftpmaster.internal/ubuntu plucky/main arm64 libjs-sphinxdoc all 8.1.3-4 [30.9 kB] 164s Get:62 http://ftpmaster.internal/ubuntu plucky/main arm64 libjson-perl all 4.10000-1 [81.9 kB] 164s Get:63 http://ftpmaster.internal/ubuntu plucky/main arm64 sphinx-common all 8.1.3-4 [663 kB] 164s Get:64 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-alabaster all 0.7.16-0.1 [18.5 kB] 164s Get:65 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-roman all 5.0-1 [10.3 kB] 165s Get:66 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-docutils all 0.21.2+dfsg-2 [409 kB] 165s Get:67 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-imagesize all 1.4.1-1 [6844 B] 165s Get:68 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-snowballstemmer all 2.2.0-4build1 [59.8 kB] 165s Get:69 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-sphinx all 8.1.3-4 [474 kB] 165s Get:70 http://ftpmaster.internal/ubuntu plucky/universe arm64 sphinx-basic-ng all 1.0.0~beta2-1 [12.0 kB] 165s Get:71 http://ftpmaster.internal/ubuntu plucky/universe arm64 furo all 2024.08.06+dfsg-1 [55.3 kB] 165s Get:72 http://ftpmaster.internal/ubuntu plucky/main arm64 libexpat1-dev arm64 2.6.4-1 [129 kB] 165s Get:73 http://ftpmaster.internal/ubuntu plucky/main arm64 zlib1g-dev arm64 1:1.3.dfsg+really1.3.1-1ubuntu1 [894 kB] 165s Get:74 http://ftpmaster.internal/ubuntu plucky/main arm64 libpython3.13-dev arm64 3.13.2-1 [5399 kB] 165s Get:75 http://ftpmaster.internal/ubuntu plucky/main arm64 libpython3-dev arm64 3.13.1-1~exp2 [10.5 kB] 165s Get:76 http://ftpmaster.internal/ubuntu plucky/main arm64 libpython3.12-dev arm64 3.12.9-1 [5569 kB] 165s Get:77 http://ftpmaster.internal/ubuntu plucky/main arm64 libpython3-all-dev arm64 3.13.1-1~exp2 [922 B] 165s Get:78 http://ftpmaster.internal/ubuntu plucky/universe arm64 pybuild-plugin-autopkgtest all 6.20250108 [1744 B] 165s Get:79 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 165s Get:80 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-toml all 0.10.2-1 [16.5 kB] 165s Get:81 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-wheel all 0.45.1-1 [57.7 kB] 165s Get:82 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-build all 1.2.2-1 [31.0 kB] 165s Get:83 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 165s Get:84 http://ftpmaster.internal/ubuntu plucky/universe arm64 pybuild-plugin-pyproject all 6.20250108 [1726 B] 165s Get:85 http://ftpmaster.internal/ubuntu plucky/universe arm64 python-black-doc all 25.1.0-1 [390 kB] 165s Get:86 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-aiohappyeyeballs all 2.4.6-1 [10.5 kB] 165s Get:87 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-multidict arm64 6.1.0-1build1 [38.3 kB] 165s Get:88 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-yarl arm64 1.13.1-1build1 [110 kB] 165s Get:89 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-async-timeout all 5.0.1-1 [6830 B] 165s Get:90 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-frozenlist arm64 1.5.0-1build1 [59.0 kB] 165s Get:91 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-aiosignal all 1.3.2-1 [5182 B] 165s Get:92 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-aiohttp arm64 3.10.11-1 [334 kB] 165s Get:93 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-all arm64 3.13.1-1~exp2 [894 B] 165s Get:94 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.13-dev arm64 3.13.2-1 [508 kB] 165s Get:95 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-dev arm64 3.13.1-1~exp2 [26.7 kB] 165s Get:96 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12-dev arm64 3.12.9-1 [505 kB] 165s Get:97 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-all-dev arm64 3.13.1-1~exp2 [918 B] 165s Get:98 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.13-doc all 3.13.2-1 [14.2 MB] 166s Get:99 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-doc all 3.13.1-1~exp2 [10.4 kB] 166s Get:100 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pluggy all 1.5.0-1 [21.0 kB] 166s Get:101 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-trove-classifiers all 2025.1.15.22-1 [10.9 kB] 166s Get:102 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-hatchling all 1.27.0-1 [47.1 kB] 166s Get:103 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-hatch-fancy-pypi-readme all 24.1.0-1 [9326 B] 166s Get:104 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-psutil arm64 5.9.8-2build3 [196 kB] 166s Get:105 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-mypy arm64 1.15.0-2 [14.8 MB] 167s Get:106 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-hatch-mypyc all 0.16.0-5 [8314 B] 167s Get:107 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-setuptools-scm all 8.1.0-1 [32.2 kB] 167s Get:108 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-hatch-vcs all 0.4.0-1 [7904 B] 167s Get:109 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-iniconfig all 1.1.1-2 [6024 B] 167s Get:110 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-mdit-py-plugins all 0.4.2-1 [30.6 kB] 167s Get:111 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-myst-parser all 4.0.0-1 [64.9 kB] 167s Get:112 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pytest all 8.3.4-1 [252 kB] 167s Get:113 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-regex arm64 0.1.20241106-1 [296 kB] 167s Get:114 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-sphinx-copybutton all 0.5.2-2 [16.6 kB] 167s Get:115 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-sphinxcontrib.programoutput all 0.17-6 [15.2 kB] 167s Fetched 116 MB in 6s (20.7 MB/s) 167s Selecting previously unselected package python3.12-minimal. 167s (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 ... 116620 files and directories currently installed.) 167s Preparing to unpack .../000-python3.12-minimal_3.12.9-1_arm64.deb ... 167s Unpacking python3.12-minimal (3.12.9-1) ... 168s Selecting previously unselected package sgml-base. 168s Preparing to unpack .../001-sgml-base_1.31_all.deb ... 168s Unpacking sgml-base (1.31) ... 168s Selecting previously unselected package python3.12. 168s Preparing to unpack .../002-python3.12_3.12.9-1_arm64.deb ... 168s Unpacking python3.12 (3.12.9-1) ... 168s Selecting previously unselected package m4. 168s Preparing to unpack .../003-m4_1.4.19-5_arm64.deb ... 168s Unpacking m4 (1.4.19-5) ... 168s Selecting previously unselected package autoconf. 168s Preparing to unpack .../004-autoconf_2.72-3_all.deb ... 168s Unpacking autoconf (2.72-3) ... 168s Selecting previously unselected package autotools-dev. 168s Preparing to unpack .../005-autotools-dev_20220109.1_all.deb ... 168s Unpacking autotools-dev (20220109.1) ... 168s Selecting previously unselected package automake. 168s Preparing to unpack .../006-automake_1%3a1.17-3_all.deb ... 168s Unpacking automake (1:1.17-3) ... 168s Selecting previously unselected package autopoint. 168s Preparing to unpack .../007-autopoint_0.23.1-1_all.deb ... 168s Unpacking autopoint (0.23.1-1) ... 168s Selecting previously unselected package python3-click. 168s Preparing to unpack .../008-python3-click_8.2.0-1_all.deb ... 168s Unpacking python3-click (8.2.0-1) ... 168s Selecting previously unselected package python3-mypy-extensions. 168s Preparing to unpack .../009-python3-mypy-extensions_1.0.0-1_all.deb ... 168s Unpacking python3-mypy-extensions (1.0.0-1) ... 168s Selecting previously unselected package python3-packaging. 168s Preparing to unpack .../010-python3-packaging_24.2-1_all.deb ... 168s Unpacking python3-packaging (24.2-1) ... 168s Selecting previously unselected package python3-pathspec. 168s Preparing to unpack .../011-python3-pathspec_0.12.1-1_all.deb ... 168s Unpacking python3-pathspec (0.12.1-1) ... 169s Selecting previously unselected package python3-platformdirs. 169s Preparing to unpack .../012-python3-platformdirs_4.3.6-1_all.deb ... 169s Unpacking python3-platformdirs (4.3.6-1) ... 169s Selecting previously unselected package python3-tomli. 169s Preparing to unpack .../013-python3-tomli_2.2.1-2_arm64.deb ... 169s Unpacking python3-tomli (2.2.1-2) ... 169s Selecting previously unselected package black. 169s Preparing to unpack .../014-black_25.1.0-1_arm64.deb ... 169s Unpacking black (25.1.0-1) ... 169s Selecting previously unselected package libisl23:arm64. 169s Preparing to unpack .../015-libisl23_0.27-1_arm64.deb ... 169s Unpacking libisl23:arm64 (0.27-1) ... 169s Selecting previously unselected package libmpc3:arm64. 169s Preparing to unpack .../016-libmpc3_1.3.1-1build2_arm64.deb ... 169s Unpacking libmpc3:arm64 (1.3.1-1build2) ... 169s Selecting previously unselected package cpp-14-aarch64-linux-gnu. 169s Preparing to unpack .../017-cpp-14-aarch64-linux-gnu_14.2.0-17ubuntu1_arm64.deb ... 169s Unpacking cpp-14-aarch64-linux-gnu (14.2.0-17ubuntu1) ... 169s Selecting previously unselected package cpp-14. 170s Preparing to unpack .../018-cpp-14_14.2.0-17ubuntu1_arm64.deb ... 170s Unpacking cpp-14 (14.2.0-17ubuntu1) ... 170s Selecting previously unselected package cpp-aarch64-linux-gnu. 170s Preparing to unpack .../019-cpp-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 170s Unpacking cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 170s Selecting previously unselected package cpp. 170s Preparing to unpack .../020-cpp_4%3a14.2.0-1ubuntu1_arm64.deb ... 170s Unpacking cpp (4:14.2.0-1ubuntu1) ... 170s Selecting previously unselected package libcc1-0:arm64. 170s Preparing to unpack .../021-libcc1-0_15-20250213-1ubuntu1_arm64.deb ... 170s Unpacking libcc1-0:arm64 (15-20250213-1ubuntu1) ... 170s Selecting previously unselected package libgomp1:arm64. 170s Preparing to unpack .../022-libgomp1_15-20250213-1ubuntu1_arm64.deb ... 170s Unpacking libgomp1:arm64 (15-20250213-1ubuntu1) ... 170s Selecting previously unselected package libitm1:arm64. 170s Preparing to unpack .../023-libitm1_15-20250213-1ubuntu1_arm64.deb ... 170s Unpacking libitm1:arm64 (15-20250213-1ubuntu1) ... 170s Selecting previously unselected package libasan8:arm64. 170s Preparing to unpack .../024-libasan8_15-20250213-1ubuntu1_arm64.deb ... 170s Unpacking libasan8:arm64 (15-20250213-1ubuntu1) ... 170s Selecting previously unselected package liblsan0:arm64. 170s Preparing to unpack .../025-liblsan0_15-20250213-1ubuntu1_arm64.deb ... 170s Unpacking liblsan0:arm64 (15-20250213-1ubuntu1) ... 170s Selecting previously unselected package libtsan2:arm64. 170s Preparing to unpack .../026-libtsan2_15-20250213-1ubuntu1_arm64.deb ... 170s Unpacking libtsan2:arm64 (15-20250213-1ubuntu1) ... 170s Selecting previously unselected package libubsan1:arm64. 170s Preparing to unpack .../027-libubsan1_15-20250213-1ubuntu1_arm64.deb ... 170s Unpacking libubsan1:arm64 (15-20250213-1ubuntu1) ... 170s Selecting previously unselected package libhwasan0:arm64. 170s Preparing to unpack .../028-libhwasan0_15-20250213-1ubuntu1_arm64.deb ... 170s Unpacking libhwasan0:arm64 (15-20250213-1ubuntu1) ... 171s Selecting previously unselected package libgcc-14-dev:arm64. 171s Preparing to unpack .../029-libgcc-14-dev_14.2.0-17ubuntu1_arm64.deb ... 171s Unpacking libgcc-14-dev:arm64 (14.2.0-17ubuntu1) ... 171s Selecting previously unselected package gcc-14-aarch64-linux-gnu. 171s Preparing to unpack .../030-gcc-14-aarch64-linux-gnu_14.2.0-17ubuntu1_arm64.deb ... 171s Unpacking gcc-14-aarch64-linux-gnu (14.2.0-17ubuntu1) ... 171s Selecting previously unselected package gcc-14. 171s Preparing to unpack .../031-gcc-14_14.2.0-17ubuntu1_arm64.deb ... 171s Unpacking gcc-14 (14.2.0-17ubuntu1) ... 171s Selecting previously unselected package gcc-aarch64-linux-gnu. 172s Preparing to unpack .../032-gcc-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 172s Unpacking gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 172s Selecting previously unselected package gcc. 172s Preparing to unpack .../033-gcc_4%3a14.2.0-1ubuntu1_arm64.deb ... 172s Unpacking gcc (4:14.2.0-1ubuntu1) ... 172s Selecting previously unselected package libstdc++-14-dev:arm64. 172s Preparing to unpack .../034-libstdc++-14-dev_14.2.0-17ubuntu1_arm64.deb ... 172s Unpacking libstdc++-14-dev:arm64 (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package g++-14-aarch64-linux-gnu. 172s Preparing to unpack .../035-g++-14-aarch64-linux-gnu_14.2.0-17ubuntu1_arm64.deb ... 172s Unpacking g++-14-aarch64-linux-gnu (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package g++-14. 172s Preparing to unpack .../036-g++-14_14.2.0-17ubuntu1_arm64.deb ... 172s Unpacking g++-14 (14.2.0-17ubuntu1) ... 172s Selecting previously unselected package g++-aarch64-linux-gnu. 172s Preparing to unpack .../037-g++-aarch64-linux-gnu_4%3a14.2.0-1ubuntu1_arm64.deb ... 172s Unpacking g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 173s Selecting previously unselected package g++. 173s Preparing to unpack .../038-g++_4%3a14.2.0-1ubuntu1_arm64.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_arm64.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_arm64.deb ... 173s Unpacking debugedit (1:5.1-2) ... 173s Selecting previously unselected package dwz. 173s Preparing to unpack .../047-dwz_0.15-1build6_arm64.deb ... 173s Unpacking dwz (0.15-1build6) ... 173s Selecting previously unselected package gettext. 174s Preparing to unpack .../048-gettext_0.23.1-1_arm64.deb ... 174s Unpacking gettext (0.23.1-1) ... 174s Selecting previously unselected package intltool-debian. 174s Preparing to unpack .../049-intltool-debian_0.35.0+20060710.6_all.deb ... 174s Unpacking intltool-debian (0.35.0+20060710.6) ... 174s Selecting previously unselected package po-debconf. 174s Preparing to unpack .../050-po-debconf_1.0.21+nmu1_all.deb ... 174s Unpacking po-debconf (1.0.21+nmu1) ... 174s Selecting previously unselected package debhelper. 174s Preparing to unpack .../051-debhelper_13.24.1ubuntu2_all.deb ... 174s Unpacking debhelper (13.24.1ubuntu2) ... 174s Selecting previously unselected package dh-python. 174s Preparing to unpack .../052-dh-python_6.20250108_all.deb ... 174s Unpacking dh-python (6.20250108) ... 174s Selecting previously unselected package xml-core. 174s Preparing to unpack .../053-xml-core_0.19_all.deb ... 174s Unpacking xml-core (0.19) ... 174s Selecting previously unselected package docutils-common. 174s Preparing to unpack .../054-docutils-common_0.21.2+dfsg-2_all.deb ... 174s Unpacking docutils-common (0.21.2+dfsg-2) ... 174s Selecting previously unselected package python3-soupsieve. 174s Preparing to unpack .../055-python3-soupsieve_2.6-1_all.deb ... 174s Unpacking python3-soupsieve (2.6-1) ... 174s Selecting previously unselected package python3-bs4. 174s Preparing to unpack .../056-python3-bs4_4.13.3-1_all.deb ... 174s Unpacking python3-bs4 (4.13.3-1) ... 174s Selecting previously unselected package python3-defusedxml. 174s Preparing to unpack .../057-python3-defusedxml_0.7.1-3_all.deb ... 174s Unpacking python3-defusedxml (0.7.1-3) ... 175s Selecting previously unselected package libjs-jquery. 175s Preparing to unpack .../058-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 175s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 175s Selecting previously unselected package libjs-underscore. 175s Preparing to unpack .../059-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 175s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 175s Selecting previously unselected package libjs-sphinxdoc. 175s Preparing to unpack .../060-libjs-sphinxdoc_8.1.3-4_all.deb ... 175s Unpacking libjs-sphinxdoc (8.1.3-4) ... 175s Selecting previously unselected package libjson-perl. 175s Preparing to unpack .../061-libjson-perl_4.10000-1_all.deb ... 175s Unpacking libjson-perl (4.10000-1) ... 175s Selecting previously unselected package sphinx-common. 175s Preparing to unpack .../062-sphinx-common_8.1.3-4_all.deb ... 175s Unpacking sphinx-common (8.1.3-4) ... 175s Selecting previously unselected package python3-alabaster. 175s Preparing to unpack .../063-python3-alabaster_0.7.16-0.1_all.deb ... 175s Unpacking python3-alabaster (0.7.16-0.1) ... 175s Selecting previously unselected package python3-roman. 175s Preparing to unpack .../064-python3-roman_5.0-1_all.deb ... 175s Unpacking python3-roman (5.0-1) ... 175s Selecting previously unselected package python3-docutils. 175s Preparing to unpack .../065-python3-docutils_0.21.2+dfsg-2_all.deb ... 175s Unpacking python3-docutils (0.21.2+dfsg-2) ... 175s Selecting previously unselected package python3-imagesize. 176s Preparing to unpack .../066-python3-imagesize_1.4.1-1_all.deb ... 176s Unpacking python3-imagesize (1.4.1-1) ... 176s Selecting previously unselected package python3-snowballstemmer. 176s Preparing to unpack .../067-python3-snowballstemmer_2.2.0-4build1_all.deb ... 176s Unpacking python3-snowballstemmer (2.2.0-4build1) ... 176s Selecting previously unselected package python3-sphinx. 176s Preparing to unpack .../068-python3-sphinx_8.1.3-4_all.deb ... 176s Unpacking python3-sphinx (8.1.3-4) ... 176s Selecting previously unselected package sphinx-basic-ng. 176s Preparing to unpack .../069-sphinx-basic-ng_1.0.0~beta2-1_all.deb ... 176s Unpacking sphinx-basic-ng (1.0.0~beta2-1) ... 176s Selecting previously unselected package furo. 176s Preparing to unpack .../070-furo_2024.08.06+dfsg-1_all.deb ... 176s Unpacking furo (2024.08.06+dfsg-1) ... 176s Selecting previously unselected package libexpat1-dev:arm64. 176s Preparing to unpack .../071-libexpat1-dev_2.6.4-1_arm64.deb ... 176s Unpacking libexpat1-dev:arm64 (2.6.4-1) ... 176s Selecting previously unselected package zlib1g-dev:arm64. 176s Preparing to unpack .../072-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_arm64.deb ... 176s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 176s Selecting previously unselected package libpython3.13-dev:arm64. 176s Preparing to unpack .../073-libpython3.13-dev_3.13.2-1_arm64.deb ... 176s Unpacking libpython3.13-dev:arm64 (3.13.2-1) ... 177s Selecting previously unselected package libpython3-dev:arm64. 177s Preparing to unpack .../074-libpython3-dev_3.13.1-1~exp2_arm64.deb ... 177s Unpacking libpython3-dev:arm64 (3.13.1-1~exp2) ... 177s Selecting previously unselected package libpython3.12-dev:arm64. 177s Preparing to unpack .../075-libpython3.12-dev_3.12.9-1_arm64.deb ... 177s Unpacking libpython3.12-dev:arm64 (3.12.9-1) ... 177s Selecting previously unselected package libpython3-all-dev:arm64. 177s Preparing to unpack .../076-libpython3-all-dev_3.13.1-1~exp2_arm64.deb ... 177s Unpacking libpython3-all-dev:arm64 (3.13.1-1~exp2) ... 177s Selecting previously unselected package pybuild-plugin-autopkgtest. 177s Preparing to unpack .../077-pybuild-plugin-autopkgtest_6.20250108_all.deb ... 177s Unpacking pybuild-plugin-autopkgtest (6.20250108) ... 177s Selecting previously unselected package python3-pyproject-hooks. 177s Preparing to unpack .../078-python3-pyproject-hooks_1.2.0-1_all.deb ... 177s Unpacking python3-pyproject-hooks (1.2.0-1) ... 177s Selecting previously unselected package python3-toml. 177s Preparing to unpack .../079-python3-toml_0.10.2-1_all.deb ... 177s Unpacking python3-toml (0.10.2-1) ... 177s Selecting previously unselected package python3-wheel. 177s Preparing to unpack .../080-python3-wheel_0.45.1-1_all.deb ... 177s Unpacking python3-wheel (0.45.1-1) ... 177s Selecting previously unselected package python3-build. 177s Preparing to unpack .../081-python3-build_1.2.2-1_all.deb ... 177s Unpacking python3-build (1.2.2-1) ... 177s Selecting previously unselected package python3-installer. 177s Preparing to unpack .../082-python3-installer_0.7.0+dfsg1-3_all.deb ... 177s Unpacking python3-installer (0.7.0+dfsg1-3) ... 177s Selecting previously unselected package pybuild-plugin-pyproject. 177s Preparing to unpack .../083-pybuild-plugin-pyproject_6.20250108_all.deb ... 177s Unpacking pybuild-plugin-pyproject (6.20250108) ... 177s Selecting previously unselected package python-black-doc. 177s Preparing to unpack .../084-python-black-doc_25.1.0-1_all.deb ... 177s Unpacking python-black-doc (25.1.0-1) ... 178s Selecting previously unselected package python3-aiohappyeyeballs. 178s Preparing to unpack .../085-python3-aiohappyeyeballs_2.4.6-1_all.deb ... 178s Unpacking python3-aiohappyeyeballs (2.4.6-1) ... 178s Selecting previously unselected package python3-multidict. 178s Preparing to unpack .../086-python3-multidict_6.1.0-1build1_arm64.deb ... 178s Unpacking python3-multidict (6.1.0-1build1) ... 178s Selecting previously unselected package python3-yarl. 178s Preparing to unpack .../087-python3-yarl_1.13.1-1build1_arm64.deb ... 178s Unpacking python3-yarl (1.13.1-1build1) ... 178s Selecting previously unselected package python3-async-timeout. 178s Preparing to unpack .../088-python3-async-timeout_5.0.1-1_all.deb ... 178s Unpacking python3-async-timeout (5.0.1-1) ... 178s Selecting previously unselected package python3-frozenlist. 178s Preparing to unpack .../089-python3-frozenlist_1.5.0-1build1_arm64.deb ... 178s Unpacking python3-frozenlist (1.5.0-1build1) ... 178s Selecting previously unselected package python3-aiosignal. 178s Preparing to unpack .../090-python3-aiosignal_1.3.2-1_all.deb ... 178s Unpacking python3-aiosignal (1.3.2-1) ... 178s Selecting previously unselected package python3-aiohttp. 178s Preparing to unpack .../091-python3-aiohttp_3.10.11-1_arm64.deb ... 178s Unpacking python3-aiohttp (3.10.11-1) ... 178s Selecting previously unselected package python3-all. 178s Preparing to unpack .../092-python3-all_3.13.1-1~exp2_arm64.deb ... 178s Unpacking python3-all (3.13.1-1~exp2) ... 178s Selecting previously unselected package python3.13-dev. 178s Preparing to unpack .../093-python3.13-dev_3.13.2-1_arm64.deb ... 178s Unpacking python3.13-dev (3.13.2-1) ... 178s Selecting previously unselected package python3-dev. 178s Preparing to unpack .../094-python3-dev_3.13.1-1~exp2_arm64.deb ... 178s Unpacking python3-dev (3.13.1-1~exp2) ... 178s Selecting previously unselected package python3.12-dev. 178s Preparing to unpack .../095-python3.12-dev_3.12.9-1_arm64.deb ... 178s Unpacking python3.12-dev (3.12.9-1) ... 178s Selecting previously unselected package python3-all-dev. 178s Preparing to unpack .../096-python3-all-dev_3.13.1-1~exp2_arm64.deb ... 178s Unpacking python3-all-dev (3.13.1-1~exp2) ... 178s Selecting previously unselected package python3.13-doc. 178s Preparing to unpack .../097-python3.13-doc_3.13.2-1_all.deb ... 178s Unpacking python3.13-doc (3.13.2-1) ... 179s Selecting previously unselected package python3-doc. 179s Preparing to unpack .../098-python3-doc_3.13.1-1~exp2_all.deb ... 179s Unpacking python3-doc (3.13.1-1~exp2) ... 179s Selecting previously unselected package python3-pluggy. 179s Preparing to unpack .../099-python3-pluggy_1.5.0-1_all.deb ... 179s Unpacking python3-pluggy (1.5.0-1) ... 179s Selecting previously unselected package python3-trove-classifiers. 179s Preparing to unpack .../100-python3-trove-classifiers_2025.1.15.22-1_all.deb ... 179s Unpacking python3-trove-classifiers (2025.1.15.22-1) ... 179s Selecting previously unselected package python3-hatchling. 179s Preparing to unpack .../101-python3-hatchling_1.27.0-1_all.deb ... 179s Unpacking python3-hatchling (1.27.0-1) ... 179s Selecting previously unselected package python3-hatch-fancy-pypi-readme. 179s Preparing to unpack .../102-python3-hatch-fancy-pypi-readme_24.1.0-1_all.deb ... 179s Unpacking python3-hatch-fancy-pypi-readme (24.1.0-1) ... 179s Selecting previously unselected package python3-psutil. 179s Preparing to unpack .../103-python3-psutil_5.9.8-2build3_arm64.deb ... 179s Unpacking python3-psutil (5.9.8-2build3) ... 180s Selecting previously unselected package python3-mypy. 180s Preparing to unpack .../104-python3-mypy_1.15.0-2_arm64.deb ... 180s Unpacking python3-mypy (1.15.0-2) ... 181s Selecting previously unselected package python3-hatch-mypyc. 181s Preparing to unpack .../105-python3-hatch-mypyc_0.16.0-5_all.deb ... 181s Unpacking python3-hatch-mypyc (0.16.0-5) ... 181s Selecting previously unselected package python3-setuptools-scm. 181s Preparing to unpack .../106-python3-setuptools-scm_8.1.0-1_all.deb ... 181s Unpacking python3-setuptools-scm (8.1.0-1) ... 181s Selecting previously unselected package python3-hatch-vcs. 181s Preparing to unpack .../107-python3-hatch-vcs_0.4.0-1_all.deb ... 181s Unpacking python3-hatch-vcs (0.4.0-1) ... 181s Selecting previously unselected package python3-iniconfig. 181s Preparing to unpack .../108-python3-iniconfig_1.1.1-2_all.deb ... 181s Unpacking python3-iniconfig (1.1.1-2) ... 181s Selecting previously unselected package python3-mdit-py-plugins. 181s Preparing to unpack .../109-python3-mdit-py-plugins_0.4.2-1_all.deb ... 181s Unpacking python3-mdit-py-plugins (0.4.2-1) ... 181s Selecting previously unselected package python3-myst-parser. 181s Preparing to unpack .../110-python3-myst-parser_4.0.0-1_all.deb ... 181s Unpacking python3-myst-parser (4.0.0-1) ... 181s Selecting previously unselected package python3-pytest. 181s Preparing to unpack .../111-python3-pytest_8.3.4-1_all.deb ... 181s Unpacking python3-pytest (8.3.4-1) ... 181s Selecting previously unselected package python3-regex. 181s Preparing to unpack .../112-python3-regex_0.1.20241106-1_arm64.deb ... 181s Unpacking python3-regex (0.1.20241106-1) ... 181s Selecting previously unselected package python3-sphinx-copybutton. 181s Preparing to unpack .../113-python3-sphinx-copybutton_0.5.2-2_all.deb ... 181s Unpacking python3-sphinx-copybutton (0.5.2-2) ... 181s Selecting previously unselected package python3-sphinxcontrib.programoutput. 181s Preparing to unpack .../114-python3-sphinxcontrib.programoutput_0.17-6_all.deb ... 181s Unpacking python3-sphinxcontrib.programoutput (0.17-6) ... 181s Setting up dh-python (6.20250108) ... 182s Setting up python3-iniconfig (1.1.1-2) ... 182s Setting up python3.12-minimal (3.12.9-1) ... 184s Setting up python3-tomli (2.2.1-2) ... 184s Setting up python3-defusedxml (0.7.1-3) ... 184s Setting up libarchive-zip-perl (1.68-1) ... 184s Setting up python3-alabaster (0.7.16-0.1) ... 184s Setting up python3-mypy-extensions (1.0.0-1) ... 185s Setting up libdebhelper-perl (13.24.1ubuntu2) ... 185s Setting up python3.12 (3.12.9-1) ... 187s Setting up python3-mdit-py-plugins (0.4.2-1) ... 187s Setting up m4 (1.4.19-5) ... 187s Setting up python3-all (3.13.1-1~exp2) ... 187s Setting up libgomp1:arm64 (15-20250213-1ubuntu1) ... 187s Setting up python3-click (8.2.0-1) ... 188s Setting up python3-wheel (0.45.1-1) ... 188s Setting up python3-platformdirs (4.3.6-1) ... 188s Setting up python3-psutil (5.9.8-2build3) ... 189s Setting up python3-multidict (6.1.0-1build1) ... 189s Setting up python3-frozenlist (1.5.0-1build1) ... 189s Setting up python3-aiosignal (1.3.2-1) ... 190s Setting up python3-async-timeout (5.0.1-1) ... 190s Setting up python3-roman (5.0-1) ... 190s Setting up autotools-dev (20220109.1) ... 190s Setting up python3-packaging (24.2-1) ... 190s Setting up libexpat1-dev:arm64 (2.6.4-1) ... 190s Setting up python3-pyproject-hooks (1.2.0-1) ... 190s Setting up python3-snowballstemmer (2.2.0-4build1) ... 191s Setting up libmpc3:arm64 (1.3.1-1build2) ... 191s Setting up python3-mypy (1.15.0-2) ... 194s Setting up autopoint (0.23.1-1) ... 194s Setting up python3-aiohappyeyeballs (2.4.6-1) ... 194s Setting up python3-regex (0.1.20241106-1) ... 195s Setting up python3-toml (0.10.2-1) ... 195s Setting up python3-installer (0.7.0+dfsg1-3) ... 195s Setting up autoconf (2.72-3) ... 195s Setting up python3-pluggy (1.5.0-1) ... 196s Setting up libubsan1:arm64 (15-20250213-1ubuntu1) ... 196s Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 196s Setting up dwz (0.15-1build6) ... 196s Setting up python3-trove-classifiers (2025.1.15.22-1) ... 196s Setting up libhwasan0:arm64 (15-20250213-1ubuntu1) ... 196s Setting up libasan8:arm64 (15-20250213-1ubuntu1) ... 196s Setting up libjson-perl (4.10000-1) ... 196s Setting up debugedit (1:5.1-2) ... 196s Setting up sgml-base (1.31) ... 196s Setting up libtsan2:arm64 (15-20250213-1ubuntu1) ... 196s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 196s Setting up libisl23:arm64 (0.27-1) ... 196s Setting up python3-build (1.2.2-1) ... 196s Setting up python3-pathspec (0.12.1-1) ... 196s Setting up python3-yarl (1.13.1-1build1) ... 196s Setting up python3-soupsieve (2.6-1) ... 196s Setting up libcc1-0:arm64 (15-20250213-1ubuntu1) ... 196s Setting up liblsan0:arm64 (15-20250213-1ubuntu1) ... 196s Setting up libitm1:arm64 (15-20250213-1ubuntu1) ... 196s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 196s Setting up python3-imagesize (1.4.1-1) ... 197s Setting up automake (1:1.17-3) ... 197s update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (automake) in auto mode 197s Setting up libfile-stripnondeterminism-perl (1.14.1-2) ... 197s Setting up gettext (0.23.1-1) ... 197s Setting up pybuild-plugin-pyproject (6.20250108) ... 197s Setting up python3-pytest (8.3.4-1) ... 198s Setting up python3-aiohttp (3.10.11-1) ... 198s Setting up libpython3.12-dev:arm64 (3.12.9-1) ... 198s Setting up black (25.1.0-1) ... 199s Setting up python3-setuptools-scm (8.1.0-1) ... 199s Setting up python3-bs4 (4.13.3-1) ... 199s Setting up intltool-debian (0.35.0+20060710.6) ... 199s Setting up python3.13-doc (3.13.2-1) ... 199s Setting up libpython3.13-dev:arm64 (3.13.2-1) ... 199s Setting up python3.12-dev (3.12.9-1) ... 199s Setting up libjs-sphinxdoc (8.1.3-4) ... 199s Setting up dh-strip-nondeterminism (1.14.1-2) ... 199s Setting up cpp-14-aarch64-linux-gnu (14.2.0-17ubuntu1) ... 199s Setting up xml-core (0.19) ... 200s Setting up python-black-doc (25.1.0-1) ... 200s Setting up python3-hatchling (1.27.0-1) ... 200s Setting up libgcc-14-dev:arm64 (14.2.0-17ubuntu1) ... 200s Setting up libstdc++-14-dev:arm64 (14.2.0-17ubuntu1) ... 200s Setting up python3-doc (3.13.1-1~exp2) ... 200s Setting up python3-hatch-vcs (0.4.0-1) ... 200s Setting up libpython3-dev:arm64 (3.13.1-1~exp2) ... 200s Setting up python3-hatch-mypyc (0.16.0-5) ... 201s Setting up python3.13-dev (3.13.2-1) ... 201s Setting up po-debconf (1.0.21+nmu1) ... 201s Setting up python3-hatch-fancy-pypi-readme (24.1.0-1) ... 201s Setting up cpp-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 201s Setting up libpython3-all-dev:arm64 (3.13.1-1~exp2) ... 201s Setting up sphinx-common (8.1.3-4) ... 201s Setting up python3-dev (3.13.1-1~exp2) ... 201s Setting up cpp-14 (14.2.0-17ubuntu1) ... 201s Setting up cpp (4:14.2.0-1ubuntu1) ... 201s Setting up gcc-14-aarch64-linux-gnu (14.2.0-17ubuntu1) ... 201s Setting up python3-all-dev (3.13.1-1~exp2) ... 201s Setting up gcc-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 201s Setting up g++-14-aarch64-linux-gnu (14.2.0-17ubuntu1) ... 201s Setting up gcc-14 (14.2.0-17ubuntu1) ... 201s Setting up g++-aarch64-linux-gnu (4:14.2.0-1ubuntu1) ... 201s Setting up g++-14 (14.2.0-17ubuntu1) ... 201s Setting up libtool (2.5.4-3build1) ... 201s Setting up gcc (4:14.2.0-1ubuntu1) ... 201s Setting up dh-autoreconf (20) ... 201s Setting up g++ (4:14.2.0-1ubuntu1) ... 201s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 201s Setting up build-essential (12.10ubuntu1) ... 201s Setting up debhelper (13.24.1ubuntu2) ... 201s Setting up pybuild-plugin-autopkgtest (6.20250108) ... 201s Processing triggers for install-info (7.1.1-1) ... 202s Processing triggers for libc-bin (2.40-4ubuntu1) ... 202s Processing triggers for systemd (257.2-3ubuntu1) ... 202s Processing triggers for man-db (2.13.0-1) ... 204s Processing triggers for sgml-base (1.31) ... 204s Setting up docutils-common (0.21.2+dfsg-2) ... 204s Processing triggers for sgml-base (1.31) ... 204s Setting up python3-docutils (0.21.2+dfsg-2) ... 207s Setting up python3-sphinx (8.1.3-4) ... 208s Setting up python3-myst-parser (4.0.0-1) ... 208s Setting up python3-sphinx-copybutton (0.5.2-2) ... 209s Setting up python3-sphinxcontrib.programoutput (0.17-6) ... 209s Setting up sphinx-basic-ng (1.0.0~beta2-1) ... 210s Setting up furo (2024.08.06+dfsg-1) ... 277s autopkgtest [03:49:49]: test pybuild-autopkgtest: pybuild-autopkgtest 277s autopkgtest [03:49:49]: test pybuild-autopkgtest: [----------------------- 280s pybuild-autopkgtest 280s date: invalid date '@' 280s I: pybuild base:311: cd /tmp/autopkgtest.4JnPQd/autopkgtest_tmp/build; python3.12 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)" 282s ============================= test session starts ============================== 282s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 282s rootdir: /tmp/autopkgtest.4JnPQd/autopkgtest_tmp/build 282s configfile: pyproject.toml 282s plugins: typeguard-4.4.1 282s collected 386 items / 16 deselected / 1 skipped / 370 selected 282s 285s tests/test_black.py FF.FFF...........FF............FF.F....F.FF.F....... [ 14%] 290s ....FFF.FF......FFFF.FFFF.FF..F..FFFFF.....F..........FF................ [ 33%] 290s ..... [ 34%] 290s tests/test_blackd.py ssssssssssssssssssss [ 40%] 290s tests/test_docs.py s [ 40%] 300s tests/test_format.py ................................................... [ 54%] 326s ........................................................................ [ 73%] 337s ............................................................ [ 90%] 337s tests/test_no_ipynb.py .. [ 90%] 337s tests/test_ranges.py ............................... [ 98%] 337s tests/test_schema.py . [ 99%] 337s tests/test_tokenize.py .. [ 99%] 337s tests/test_trans.py . [100%] 337s 337s =================================== FAILURES =================================== 337s ____________________ BlackTestCase.test_async_as_identifier ____________________ 337s 337s self = 337s 337s @patch("black.dump_to_file", dump_to_stderr) 337s def test_async_as_identifier(self) -> None: 337s source_path = get_case_path("miscellaneous", "async_as_identifier") 337s _, source, expected = read_data_from_file(source_path) 337s actual = fs(source) 337s self.assertFormatEqual(expected, actual) 337s major, minor = sys.version_info[:2] 337s if major < 3 or (major <= 3 and minor < 7): 337s black.assert_equivalent(source, actual) 337s black.assert_stable(source, actual, DEFAULT_MODE) 337s # ensure black can parse this when the target is 3.6 337s > self.invokeBlack([str(source_path), "--target-version", "py36"]) 337s 337s tests/test_black.py:431: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ____________________ BlackTestCase.test_bpo_2142_workaround ____________________ 337s 337s self = 337s 337s def test_bpo_2142_workaround(self) -> None: 337s # https://bugs.python.org/issue2142 337s 337s source, _ = read_data("miscellaneous", "missing_final_newline") 337s # read_data adds a trailing newline 337s source = source.rstrip() 337s expected, _ = read_data("miscellaneous", "missing_final_newline.diff") 337s tmp_file = Path(black.dump_to_file(source, ensure_final_newline=False)) 337s diff_header = re.compile( 337s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 337s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 337s ) 337s try: 337s > result = BlackRunner().invoke(black.main, ["--diff", str(tmp_file)]) 337s 337s tests/test_black.py:1825: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ______________________ BlackTestCase.test_broken_symlink _______________________ 337s 337s self = 337s 337s def test_broken_symlink(self) -> None: 337s with cache_dir() as workspace: 337s symlink = workspace / "broken_link.py" 337s try: 337s symlink.symlink_to("nonexistent.py") 337s except (OSError, NotImplementedError) as e: 337s self.skipTest(f"Can't create symlinks: {e}") 337s > self.invokeBlack([str(workspace.resolve())]) 337s 337s tests/test_black.py:1127: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________________ BlackTestCase.test_check_diff_use_together __________________ 337s 337s self = 337s 337s @event_loop() 337s def test_check_diff_use_together(self) -> None: 337s with cache_dir(): 337s # Files which will be reformatted. 337s src1 = get_case_path("miscellaneous", "string_quotes") 337s > self.invokeBlack([str(src1), "--diff", "--check"], exit_code=1) 337s 337s tests/test_black.py:1105: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _______________________ BlackTestCase.test_cli_unstable ________________________ 337s 337s self = 337s 337s def test_cli_unstable(self) -> None: 337s > self.invokeBlack(["--unstable", "-c", "0"], exit_code=0) 337s 337s tests/test_black.py:1390: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ______________________ BlackTestCase.test_expression_diff ______________________ 337s 337s self = 337s 337s def test_expression_diff(self) -> None: 337s source, _ = read_data("cases", "expression.py") 337s expected, _ = read_data("cases", "expression.diff") 337s tmp_file = Path(black.dump_to_file(source)) 337s diff_header = re.compile( 337s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 337s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 337s ) 337s try: 337s > result = BlackRunner().invoke( 337s black.main, ["--diff", str(tmp_file), f"--config={EMPTY_CONFIG}"] 337s ) 337s 337s tests/test_black.py:292: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ________________ BlackTestCase.test_expression_diff_with_color _________________ 337s 337s self = 337s 337s def test_expression_diff_with_color(self) -> None: 337s source, _ = read_data("cases", "expression.py") 337s expected, _ = read_data("cases", "expression.diff") 337s tmp_file = Path(black.dump_to_file(source)) 337s try: 337s > result = BlackRunner().invoke( 337s black.main, 337s ["--diff", "--color", str(tmp_file), f"--config={EMPTY_CONFIG}"], 337s ) 337s 337s tests/test_black.py:314: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _____________________ BlackTestCase.test_invalid_cli_regex _____________________ 337s 337s self = 337s 337s def test_invalid_cli_regex(self) -> None: 337s for option in ["--include", "--exclude", "--extend-exclude", "--force-exclude"]: 337s > self.invokeBlack(["-", option, "**()(!!*)"], exit_code=2) 337s 337s tests/test_black.py:1407: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ________________ BlackTestCase.test_invalid_config_return_code _________________ 337s 337s self = 337s 337s def test_invalid_config_return_code(self) -> None: 337s tmp_file = Path(black.dump_to_file()) 337s try: 337s tmp_config = Path(black.dump_to_file()) 337s tmp_config.unlink() 337s args = ["--config", str(tmp_config), str(tmp_file)] 337s > self.invokeBlack(args, exit_code=2, ignore_config=False) 337s 337s tests/test_black.py:1495: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _______________ BlackTestCase.test_line_ranges_in_pyproject_toml _______________ 337s 337s self = 337s 337s def test_line_ranges_in_pyproject_toml(self) -> None: 337s config = THIS_DIR / "data" / "invalid_line_ranges.toml" 337s > result = BlackRunner().invoke( 337s black.main, ["--code", "print()", "--config", str(config)] 337s ) 337s 337s tests/test_black.py:2053: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________________ BlackTestCase.test_line_ranges_with_stdin ___________________ 337s 337s self = 337s 337s def test_line_ranges_with_stdin(self) -> None: 337s code = textwrap.dedent("""\ 337s if a == b: 337s print ( "OK" ) 337s """) 337s > runner = BlackRunner() 337s 337s tests/test_black.py:1999: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ___________________ BlackTestCase.test_multi_file_force_py36 ___________________ 337s 337s self = 337s 337s @event_loop() 337s def test_multi_file_force_py36(self) -> None: 337s reg_mode = DEFAULT_MODE 337s py36_mode = replace(DEFAULT_MODE, target_versions=PY36_VERSIONS) 337s source, expected = read_data("miscellaneous", "force_py36") 337s with cache_dir() as workspace: 337s paths = [ 337s (workspace / "file1.py").resolve(), 337s (workspace / "file2.py").resolve(), 337s ] 337s for path in paths: 337s path.write_text(source, encoding="utf-8") 337s > self.invokeBlack([str(p) for p in paths] + PY36_ARGS) 337s 337s tests/test_black.py:1206: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ___________________ BlackTestCase.test_multi_file_force_pyi ____________________ 337s 337s self = 337s 337s @event_loop() 337s def test_multi_file_force_pyi(self) -> None: 337s reg_mode = DEFAULT_MODE 337s pyi_mode = replace(DEFAULT_MODE, is_pyi=True) 337s contents, expected = read_data("miscellaneous", "force_pyi") 337s with cache_dir() as workspace: 337s paths = [ 337s (workspace / "file1.py").resolve(), 337s (workspace / "file2.py").resolve(), 337s ] 337s for path in paths: 337s path.write_text(contents, encoding="utf-8") 337s > self.invokeBlack([str(p) for p in paths] + ["--pyi"]) 337s 337s tests/test_black.py:1158: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _______________________ BlackTestCase.test_no_src_fails ________________________ 337s 337s self = 337s 337s def test_no_src_fails(self) -> None: 337s with cache_dir(): 337s > self.invokeBlack([], exit_code=1) 337s 337s tests/test_black.py:1114: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________________________ BlackTestCase.test_piping ___________________________ 337s 337s self = 337s 337s def test_piping(self) -> None: 337s _, source, expected = read_data_from_file( 337s PROJECT_ROOT / "src/black/__init__.py" 337s ) 337s > result = BlackRunner().invoke( 337s black.main, 337s [ 337s "-", 337s "--fast", 337s f"--line-length={black.DEFAULT_LINE_LENGTH}", 337s f"--config={EMPTY_CONFIG}", 337s ], 337s input=BytesIO(source.encode("utf-8")), 337s ) 337s 337s tests/test_black.py:179: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ________________________ BlackTestCase.test_piping_diff ________________________ 337s 337s self = 337s 337s def test_piping_diff(self) -> None: 337s diff_header = re.compile( 337s r"(STDIN|STDOUT)\t\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d" 337s r"\+\d\d:\d\d" 337s ) 337s source, _ = read_data("cases", "expression.py") 337s expected, _ = read_data("cases", "expression.diff") 337s args = [ 337s "-", 337s "--fast", 337s f"--line-length={black.DEFAULT_LINE_LENGTH}", 337s "--diff", 337s f"--config={EMPTY_CONFIG}", 337s ] 337s > result = BlackRunner().invoke( 337s black.main, args, input=BytesIO(source.encode("utf-8")) 337s ) 337s 337s tests/test_black.py:209: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________________ BlackTestCase.test_piping_diff_with_color ___________________ 337s 337s self = 337s 337s def test_piping_diff_with_color(self) -> None: 337s source, _ = read_data("cases", "expression.py") 337s args = [ 337s "-", 337s "--fast", 337s f"--line-length={black.DEFAULT_LINE_LENGTH}", 337s "--diff", 337s "--color", 337s f"--config={EMPTY_CONFIG}", 337s ] 337s > result = BlackRunner().invoke( 337s black.main, args, input=BytesIO(source.encode("utf-8")) 337s ) 337s 337s tests/test_black.py:227: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _____________ BlackTestCase.test_preserves_line_endings_via_stdin ______________ 337s 337s self = 337s 337s def test_preserves_line_endings_via_stdin(self) -> None: 337s for nl in ["\n", "\r\n"]: 337s contents = nl.join(["def f( ):", " pass"]) 337s > runner = BlackRunner() 337s 337s tests/test_black.py:1453: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _________________________ BlackTestCase.test_python37 __________________________ 337s 337s self = 337s 337s @patch("black.dump_to_file", dump_to_stderr) 337s def test_python37(self) -> None: 337s source_path = get_case_path("cases", "python37") 337s _, source, expected = read_data_from_file(source_path) 337s actual = fs(source) 337s self.assertFormatEqual(expected, actual) 337s major, minor = sys.version_info[:2] 337s if major > 3 or (major == 3 and minor >= 7): 337s black.assert_equivalent(source, actual) 337s black.assert_stable(source, actual, DEFAULT_MODE) 337s # ensure black can parse this when the target is 3.7 337s > self.invokeBlack([str(source_path), "--target-version", "py37"]) 337s 337s tests/test_black.py:446: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _____ BlackTestCase.test_required_version_does_not_match_on_minor_version ______ 337s 337s self = 337s 337s def test_required_version_does_not_match_on_minor_version(self) -> None: 337s > self.invokeBlack( 337s ["--required-version", black.__version__.split(".")[0] + ".999", "-c", "0"], 337s exit_code=1, 337s ignore_config=True, 337s ) 337s 337s tests/test_black.py:1424: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________ BlackTestCase.test_required_version_does_not_match_version __________ 337s 337s self = 337s 337s def test_required_version_does_not_match_version(self) -> None: 337s > result = BlackRunner().invoke( 337s black.main, 337s ["--required-version", "20.99b", "-c", "0"], 337s ) 337s 337s tests/test_black.py:1431: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _________ BlackTestCase.test_required_version_matches_partial_version __________ 337s 337s self = 337s 337s def test_required_version_matches_partial_version(self) -> None: 337s > self.invokeBlack( 337s ["--required-version", black.__version__.split(".")[0], "-c", "0"], 337s exit_code=0, 337s ignore_config=True, 337s ) 337s 337s tests/test_black.py:1417: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _____________ BlackTestCase.test_required_version_matches_version ______________ 337s 337s self = 337s 337s def test_required_version_matches_version(self) -> None: 337s > self.invokeBlack( 337s ["--required-version", black.__version__, "-c", "0"], 337s exit_code=0, 337s ignore_config=True, 337s ) 337s 337s tests/test_black.py:1410: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________________ BlackTestCase.test_single_file_force_py36 ___________________ 337s 337s self = 337s 337s def test_single_file_force_py36(self) -> None: 337s reg_mode = DEFAULT_MODE 337s py36_mode = replace(DEFAULT_MODE, target_versions=PY36_VERSIONS) 337s source, expected = read_data("miscellaneous", "force_py36") 337s with cache_dir() as workspace: 337s path = (workspace / "file.py").resolve() 337s path.write_text(source, encoding="utf-8") 337s > self.invokeBlack([str(path), *PY36_ARGS]) 337s 337s tests/test_black.py:1185: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ___________________ BlackTestCase.test_single_file_force_pyi ___________________ 337s 337s self = 337s 337s def test_single_file_force_pyi(self) -> None: 337s pyi_mode = replace(DEFAULT_MODE, is_pyi=True) 337s contents, expected = read_data("miscellaneous", "force_pyi") 337s with cache_dir() as workspace: 337s path = (workspace / "file.py").resolve() 337s path.write_text(contents, encoding="utf-8") 337s > self.invokeBlack([str(path), "--pyi"]) 337s 337s tests/test_black.py:1135: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _________________ BlackTestCase.test_skip_magic_trailing_comma _________________ 337s 337s self = 337s 337s def test_skip_magic_trailing_comma(self) -> None: 337s source, _ = read_data("cases", "expression") 337s expected, _ = read_data( 337s "miscellaneous", "expression_skip_magic_trailing_comma.diff" 337s ) 337s tmp_file = Path(black.dump_to_file(source)) 337s diff_header = re.compile( 337s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 337s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 337s ) 337s try: 337s > result = BlackRunner().invoke( 337s black.main, ["-C", "--diff", str(tmp_file), f"--config={EMPTY_CONFIG}"] 337s ) 337s 337s tests/test_black.py:401: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________________ BlackTestCase.test_skip_source_first_line ___________________ 337s 337s self = 337s 337s def test_skip_source_first_line(self) -> None: 337s source, _ = read_data("miscellaneous", "invalid_header") 337s tmp_file = Path(black.dump_to_file(source)) 337s # Full source should fail (invalid syntax at header) 337s > self.invokeBlack([str(tmp_file), "--diff", "--check"], exit_code=123) 337s 337s tests/test_black.py:371: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _________________ BlackTestCase.test_spellcheck_pyproject_toml _________________ 337s 337s self = 337s 337s def test_spellcheck_pyproject_toml(self) -> None: 337s test_toml_file = THIS_DIR / "data" / "incorrect_spelling.toml" 337s > result = BlackRunner().invoke( 337s black.main, 337s [ 337s "--code=print('hello world')", 337s "--verbose", 337s f"--config={str(test_toml_file)}", 337s ], 337s ) 337s 337s tests/test_black.py:1514: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ____________________ BlackTestCase.test_src_and_code_fails _____________________ 337s 337s self = 337s 337s def test_src_and_code_fails(self) -> None: 337s with cache_dir(): 337s > self.invokeBlack([".", "-c", "0"], exit_code=1) 337s 337s tests/test_black.py:1118: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________ BlackTestCase.test_works_in_mono_process_only_environment ___________ 337s 337s self = 337s 337s @event_loop() 337s @patch("concurrent.futures.ProcessPoolExecutor", MagicMock(side_effect=OSError)) 337s def test_works_in_mono_process_only_environment(self) -> None: 337s with cache_dir() as workspace: 337s for f in [ 337s (workspace / "one.py").resolve(), 337s (workspace / "two.py").resolve(), 337s ]: 337s f.write_text('print("hello")\n', encoding="utf-8") 337s > self.invokeBlack([str(workspace)]) 337s 337s tests/test_black.py:1098: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ______________________ TestCaching.test_cache_broken_file ______________________ 337s 337s self = 337s 337s def test_cache_broken_file(self) -> None: 337s mode = DEFAULT_MODE 337s with cache_dir() as workspace: 337s cache_file = get_cache_file(mode) 337s cache_file.write_text("this is not a pickle", encoding="utf-8") 337s assert black.Cache.read(mode).file_data == {} 337s src = (workspace / "test.py").resolve() 337s src.write_text("print('hello')", encoding="utf-8") 337s > invokeBlack([str(src)]) 337s 337s tests/test_black.py:2134: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ______________ TestCaching.test_cache_single_file_already_cached _______________ 337s 337s self = 337s 337s def test_cache_single_file_already_cached(self) -> None: 337s mode = DEFAULT_MODE 337s with cache_dir() as workspace: 337s src = (workspace / "test.py").resolve() 337s src.write_text("print('hello')", encoding="utf-8") 337s cache = black.Cache.read(mode) 337s cache.write([src]) 337s > invokeBlack([str(src)]) 337s 337s tests/test_black.py:2145: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ____________________ TestCaching.test_cache_multiple_files _____________________ 337s 337s self = 337s 337s @event_loop() 337s def test_cache_multiple_files(self) -> None: 337s mode = DEFAULT_MODE 337s with ( 337s cache_dir() as workspace, 337s patch("concurrent.futures.ProcessPoolExecutor", new=ThreadPoolExecutor), 337s ): 337s one = (workspace / "one.py").resolve() 337s one.write_text("print('hello')", encoding="utf-8") 337s two = (workspace / "two.py").resolve() 337s two.write_text("print('hello')", encoding="utf-8") 337s cache = black.Cache.read(mode) 337s cache.write([one]) 337s > invokeBlack([str(workspace)]) 337s 337s tests/test_black.py:2161: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ________ TestCaching.test_output_locking_when_writeback_diff[no-color] _________ 337s 337s self = , color = False 337s 337s @pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"]) 337s @event_loop() 337s def test_output_locking_when_writeback_diff(self, color: bool) -> None: 337s with cache_dir() as workspace: 337s for tag in range(0, 4): 337s src = (workspace / f"test{tag}.py").resolve() 337s src.write_text("print('hello')", encoding="utf-8") 337s with patch( 337s "black.concurrency.Manager", wraps=multiprocessing.Manager 337s ) as mgr: 337s cmd = ["--diff", str(workspace)] 337s if color: 337s cmd.append("--color") 337s > invokeBlack(cmd, exit_code=0) 337s 337s tests/test_black.py:2201: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _______ TestCaching.test_output_locking_when_writeback_diff[with-color] ________ 337s 337s self = , color = True 337s 337s @pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"]) 337s @event_loop() 337s def test_output_locking_when_writeback_diff(self, color: bool) -> None: 337s with cache_dir() as workspace: 337s for tag in range(0, 4): 337s src = (workspace / f"test{tag}.py").resolve() 337s src.write_text("print('hello')", encoding="utf-8") 337s with patch( 337s "black.concurrency.Manager", wraps=multiprocessing.Manager 337s ) as mgr: 337s cmd = ["--diff", str(workspace)] 337s if color: 337s cmd.append("--color") 337s > invokeBlack(cmd, exit_code=0) 337s 337s tests/test_black.py:2201: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s ____________ TestCaching.test_failed_formatting_does_not_get_cached ____________ 337s 337s self = 337s 337s @event_loop() 337s def test_failed_formatting_does_not_get_cached(self) -> None: 337s mode = DEFAULT_MODE 337s with ( 337s cache_dir() as workspace, 337s patch("concurrent.futures.ProcessPoolExecutor", new=ThreadPoolExecutor), 337s ): 337s failing = (workspace / "failing.py").resolve() 337s failing.write_text("not actually python", encoding="utf-8") 337s clean = (workspace / "clean.py").resolve() 337s clean.write_text('print("hello")\n', encoding="utf-8") 337s > invokeBlack([str(workspace)], exit_code=123) 337s 337s tests/test_black.py:2315: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s tests/test_black.py:123: in invokeBlack 337s runner = BlackRunner() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s __________________ TestFileCollection.test_invalid_gitignore ___________________ 337s 337s self = 337s 337s def test_invalid_gitignore(self) -> None: 337s path = THIS_DIR / "data" / "invalid_gitignore_tests" 337s empty_config = path / "pyproject.toml" 337s > result = BlackRunner().invoke( 337s black.main, ["--verbose", "--config", str(empty_config), str(path)] 337s ) 337s 337s tests/test_black.py:2518: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s _______________ TestFileCollection.test_invalid_nested_gitignore _______________ 337s 337s self = 337s 337s def test_invalid_nested_gitignore(self) -> None: 337s path = THIS_DIR / "data" / "invalid_nested_gitignore_tests" 337s empty_config = path / "pyproject.toml" 337s > result = BlackRunner().invoke( 337s black.main, ["--verbose", "--config", str(empty_config), str(path)] 337s ) 337s 337s tests/test_black.py:2534: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def __init__(self) -> None: 337s > super().__init__(mix_stderr=False) 337s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 337s 337s tests/test_black.py:117: TypeError 337s =========================== short test summary info ============================ 337s FAILED tests/test_black.py::BlackTestCase::test_async_as_identifier - TypeErr... 337s FAILED tests/test_black.py::BlackTestCase::test_bpo_2142_workaround - TypeErr... 337s FAILED tests/test_black.py::BlackTestCase::test_broken_symlink - TypeError: C... 337s FAILED tests/test_black.py::BlackTestCase::test_check_diff_use_together - Typ... 337s FAILED tests/test_black.py::BlackTestCase::test_cli_unstable - TypeError: Cli... 337s FAILED tests/test_black.py::BlackTestCase::test_expression_diff - TypeError: ... 337s FAILED tests/test_black.py::BlackTestCase::test_expression_diff_with_color - ... 337s FAILED tests/test_black.py::BlackTestCase::test_invalid_cli_regex - TypeError... 337s FAILED tests/test_black.py::BlackTestCase::test_invalid_config_return_code - ... 337s FAILED tests/test_black.py::BlackTestCase::test_line_ranges_in_pyproject_toml 337s FAILED tests/test_black.py::BlackTestCase::test_line_ranges_with_stdin - Type... 337s FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_py36 - TypeE... 337s FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_pyi - TypeEr... 337s FAILED tests/test_black.py::BlackTestCase::test_no_src_fails - TypeError: Cli... 337s FAILED tests/test_black.py::BlackTestCase::test_piping - TypeError: CliRunner... 337s FAILED tests/test_black.py::BlackTestCase::test_piping_diff - TypeError: CliR... 337s FAILED tests/test_black.py::BlackTestCase::test_piping_diff_with_color - Type... 337s FAILED tests/test_black.py::BlackTestCase::test_preserves_line_endings_via_stdin 337s FAILED tests/test_black.py::BlackTestCase::test_python37 - TypeError: CliRunn... 337s FAILED tests/test_black.py::BlackTestCase::test_required_version_does_not_match_on_minor_version 337s FAILED tests/test_black.py::BlackTestCase::test_required_version_does_not_match_version 337s FAILED tests/test_black.py::BlackTestCase::test_required_version_matches_partial_version 337s FAILED tests/test_black.py::BlackTestCase::test_required_version_matches_version 337s FAILED tests/test_black.py::BlackTestCase::test_single_file_force_py36 - Type... 337s FAILED tests/test_black.py::BlackTestCase::test_single_file_force_pyi - TypeE... 337s FAILED tests/test_black.py::BlackTestCase::test_skip_magic_trailing_comma - T... 337s FAILED tests/test_black.py::BlackTestCase::test_skip_source_first_line - Type... 337s FAILED tests/test_black.py::BlackTestCase::test_spellcheck_pyproject_toml - T... 337s FAILED tests/test_black.py::BlackTestCase::test_src_and_code_fails - TypeErro... 337s FAILED tests/test_black.py::BlackTestCase::test_works_in_mono_process_only_environment 337s FAILED tests/test_black.py::TestCaching::test_cache_broken_file - TypeError: ... 337s FAILED tests/test_black.py::TestCaching::test_cache_single_file_already_cached 337s FAILED tests/test_black.py::TestCaching::test_cache_multiple_files - TypeErro... 337s FAILED tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff[no-color] 337s FAILED tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff[with-color] 337s FAILED tests/test_black.py::TestCaching::test_failed_formatting_does_not_get_cached 337s FAILED tests/test_black.py::TestFileCollection::test_invalid_gitignore - Type... 337s FAILED tests/test_black.py::TestFileCollection::test_invalid_nested_gitignore 337s ========== 38 failed, 311 passed, 22 skipped, 16 deselected in 56.02s ========== 338s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.4JnPQd/autopkgtest_tmp/build; python3.12 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)" 338s I: pybuild base:311: cd /tmp/autopkgtest.4JnPQd/autopkgtest_tmp/build; python3.13 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)" 339s ============================= test session starts ============================== 339s platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 339s rootdir: /tmp/autopkgtest.4JnPQd/autopkgtest_tmp/build 339s configfile: pyproject.toml 339s plugins: typeguard-4.4.1 339s collected 386 items / 16 deselected / 1 skipped / 370 selected 339s 341s tests/test_black.py FF.FFF...........FF............FF.F....F.FF.F....... [ 14%] 344s ....FFF.FF......FFFF.FFFF.FF..F..FFFFF.....F..........FF................ [ 33%] 345s ..... [ 34%] 345s tests/test_blackd.py ssssssssssssssssssss [ 40%] 345s tests/test_docs.py s [ 40%] 351s tests/test_format.py ................................................... [ 54%] 370s ........................................................................ [ 73%] 379s ............................................................ [ 90%] 379s tests/test_no_ipynb.py .. [ 90%] 379s tests/test_ranges.py ............................... [ 98%] 379s tests/test_schema.py . [ 99%] 379s tests/test_tokenize.py .. [ 99%] 379s tests/test_trans.py . [100%] 379s 379s =================================== FAILURES =================================== 379s ____________________ BlackTestCase.test_async_as_identifier ____________________ 379s 379s self = 379s 379s @patch("black.dump_to_file", dump_to_stderr) 379s def test_async_as_identifier(self) -> None: 379s source_path = get_case_path("miscellaneous", "async_as_identifier") 379s _, source, expected = read_data_from_file(source_path) 379s actual = fs(source) 379s self.assertFormatEqual(expected, actual) 379s major, minor = sys.version_info[:2] 379s if major < 3 or (major <= 3 and minor < 7): 379s black.assert_equivalent(source, actual) 379s black.assert_stable(source, actual, DEFAULT_MODE) 379s # ensure black can parse this when the target is 3.6 379s > self.invokeBlack([str(source_path), "--target-version", "py36"]) 379s 379s tests/test_black.py:431: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ____________________ BlackTestCase.test_bpo_2142_workaround ____________________ 379s 379s self = 379s 379s def test_bpo_2142_workaround(self) -> None: 379s # https://bugs.python.org/issue2142 379s 379s source, _ = read_data("miscellaneous", "missing_final_newline") 379s # read_data adds a trailing newline 379s source = source.rstrip() 379s expected, _ = read_data("miscellaneous", "missing_final_newline.diff") 379s tmp_file = Path(black.dump_to_file(source, ensure_final_newline=False)) 379s diff_header = re.compile( 379s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 379s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 379s ) 379s try: 379s > result = BlackRunner().invoke(black.main, ["--diff", str(tmp_file)]) 379s 379s tests/test_black.py:1825: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ______________________ BlackTestCase.test_broken_symlink _______________________ 379s 379s self = 379s 379s def test_broken_symlink(self) -> None: 379s with cache_dir() as workspace: 379s symlink = workspace / "broken_link.py" 379s try: 379s symlink.symlink_to("nonexistent.py") 379s except (OSError, NotImplementedError) as e: 379s self.skipTest(f"Can't create symlinks: {e}") 379s > self.invokeBlack([str(workspace.resolve())]) 379s 379s tests/test_black.py:1127: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________________ BlackTestCase.test_check_diff_use_together __________________ 379s 379s self = 379s 379s @event_loop() 379s def test_check_diff_use_together(self) -> None: 379s with cache_dir(): 379s # Files which will be reformatted. 379s src1 = get_case_path("miscellaneous", "string_quotes") 379s > self.invokeBlack([str(src1), "--diff", "--check"], exit_code=1) 379s 379s tests/test_black.py:1105: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _______________________ BlackTestCase.test_cli_unstable ________________________ 379s 379s self = 379s 379s def test_cli_unstable(self) -> None: 379s > self.invokeBlack(["--unstable", "-c", "0"], exit_code=0) 379s 379s tests/test_black.py:1390: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ______________________ BlackTestCase.test_expression_diff ______________________ 379s 379s self = 379s 379s def test_expression_diff(self) -> None: 379s source, _ = read_data("cases", "expression.py") 379s expected, _ = read_data("cases", "expression.diff") 379s tmp_file = Path(black.dump_to_file(source)) 379s diff_header = re.compile( 379s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 379s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 379s ) 379s try: 379s > result = BlackRunner().invoke( 379s black.main, ["--diff", str(tmp_file), f"--config={EMPTY_CONFIG}"] 379s ) 379s 379s tests/test_black.py:292: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ________________ BlackTestCase.test_expression_diff_with_color _________________ 379s 379s self = 379s 379s def test_expression_diff_with_color(self) -> None: 379s source, _ = read_data("cases", "expression.py") 379s expected, _ = read_data("cases", "expression.diff") 379s tmp_file = Path(black.dump_to_file(source)) 379s try: 379s > result = BlackRunner().invoke( 379s black.main, 379s ["--diff", "--color", str(tmp_file), f"--config={EMPTY_CONFIG}"], 379s ) 379s 379s tests/test_black.py:314: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _____________________ BlackTestCase.test_invalid_cli_regex _____________________ 379s 379s self = 379s 379s def test_invalid_cli_regex(self) -> None: 379s for option in ["--include", "--exclude", "--extend-exclude", "--force-exclude"]: 379s > self.invokeBlack(["-", option, "**()(!!*)"], exit_code=2) 379s 379s tests/test_black.py:1407: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ________________ BlackTestCase.test_invalid_config_return_code _________________ 379s 379s self = 379s 379s def test_invalid_config_return_code(self) -> None: 379s tmp_file = Path(black.dump_to_file()) 379s try: 379s tmp_config = Path(black.dump_to_file()) 379s tmp_config.unlink() 379s args = ["--config", str(tmp_config), str(tmp_file)] 379s > self.invokeBlack(args, exit_code=2, ignore_config=False) 379s 379s tests/test_black.py:1495: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _______________ BlackTestCase.test_line_ranges_in_pyproject_toml _______________ 379s 379s self = 379s 379s def test_line_ranges_in_pyproject_toml(self) -> None: 379s config = THIS_DIR / "data" / "invalid_line_ranges.toml" 379s > result = BlackRunner().invoke( 379s black.main, ["--code", "print()", "--config", str(config)] 379s ) 379s 379s tests/test_black.py:2053: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________________ BlackTestCase.test_line_ranges_with_stdin ___________________ 379s 379s self = 379s 379s def test_line_ranges_with_stdin(self) -> None: 379s code = textwrap.dedent("""\ 379s if a == b: 379s print ( "OK" ) 379s """) 379s > runner = BlackRunner() 379s 379s tests/test_black.py:1999: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ___________________ BlackTestCase.test_multi_file_force_py36 ___________________ 379s 379s self = 379s 379s @event_loop() 379s def test_multi_file_force_py36(self) -> None: 379s reg_mode = DEFAULT_MODE 379s py36_mode = replace(DEFAULT_MODE, target_versions=PY36_VERSIONS) 379s source, expected = read_data("miscellaneous", "force_py36") 379s with cache_dir() as workspace: 379s paths = [ 379s (workspace / "file1.py").resolve(), 379s (workspace / "file2.py").resolve(), 379s ] 379s for path in paths: 379s path.write_text(source, encoding="utf-8") 379s > self.invokeBlack([str(p) for p in paths] + PY36_ARGS) 379s 379s tests/test_black.py:1206: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ___________________ BlackTestCase.test_multi_file_force_pyi ____________________ 379s 379s self = 379s 379s @event_loop() 379s def test_multi_file_force_pyi(self) -> None: 379s reg_mode = DEFAULT_MODE 379s pyi_mode = replace(DEFAULT_MODE, is_pyi=True) 379s contents, expected = read_data("miscellaneous", "force_pyi") 379s with cache_dir() as workspace: 379s paths = [ 379s (workspace / "file1.py").resolve(), 379s (workspace / "file2.py").resolve(), 379s ] 379s for path in paths: 379s path.write_text(contents, encoding="utf-8") 379s > self.invokeBlack([str(p) for p in paths] + ["--pyi"]) 379s 379s tests/test_black.py:1158: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _______________________ BlackTestCase.test_no_src_fails ________________________ 379s 379s self = 379s 379s def test_no_src_fails(self) -> None: 379s with cache_dir(): 379s > self.invokeBlack([], exit_code=1) 379s 379s tests/test_black.py:1114: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________________________ BlackTestCase.test_piping ___________________________ 379s 379s self = 379s 379s def test_piping(self) -> None: 379s _, source, expected = read_data_from_file( 379s PROJECT_ROOT / "src/black/__init__.py" 379s ) 379s > result = BlackRunner().invoke( 379s black.main, 379s [ 379s "-", 379s "--fast", 379s f"--line-length={black.DEFAULT_LINE_LENGTH}", 379s f"--config={EMPTY_CONFIG}", 379s ], 379s input=BytesIO(source.encode("utf-8")), 379s ) 379s 379s tests/test_black.py:179: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ________________________ BlackTestCase.test_piping_diff ________________________ 379s 379s self = 379s 379s def test_piping_diff(self) -> None: 379s diff_header = re.compile( 379s r"(STDIN|STDOUT)\t\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d" 379s r"\+\d\d:\d\d" 379s ) 379s source, _ = read_data("cases", "expression.py") 379s expected, _ = read_data("cases", "expression.diff") 379s args = [ 379s "-", 379s "--fast", 379s f"--line-length={black.DEFAULT_LINE_LENGTH}", 379s "--diff", 379s f"--config={EMPTY_CONFIG}", 379s ] 379s > result = BlackRunner().invoke( 379s black.main, args, input=BytesIO(source.encode("utf-8")) 379s ) 379s 379s tests/test_black.py:209: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________________ BlackTestCase.test_piping_diff_with_color ___________________ 379s 379s self = 379s 379s def test_piping_diff_with_color(self) -> None: 379s source, _ = read_data("cases", "expression.py") 379s args = [ 379s "-", 379s "--fast", 379s f"--line-length={black.DEFAULT_LINE_LENGTH}", 379s "--diff", 379s "--color", 379s f"--config={EMPTY_CONFIG}", 379s ] 379s > result = BlackRunner().invoke( 379s black.main, args, input=BytesIO(source.encode("utf-8")) 379s ) 379s 379s tests/test_black.py:227: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _____________ BlackTestCase.test_preserves_line_endings_via_stdin ______________ 379s 379s self = 379s 379s def test_preserves_line_endings_via_stdin(self) -> None: 379s for nl in ["\n", "\r\n"]: 379s contents = nl.join(["def f( ):", " pass"]) 379s > runner = BlackRunner() 379s 379s tests/test_black.py:1453: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _________________________ BlackTestCase.test_python37 __________________________ 379s 379s self = 379s 379s @patch("black.dump_to_file", dump_to_stderr) 379s def test_python37(self) -> None: 379s source_path = get_case_path("cases", "python37") 379s _, source, expected = read_data_from_file(source_path) 379s actual = fs(source) 379s self.assertFormatEqual(expected, actual) 379s major, minor = sys.version_info[:2] 379s if major > 3 or (major == 3 and minor >= 7): 379s black.assert_equivalent(source, actual) 379s black.assert_stable(source, actual, DEFAULT_MODE) 379s # ensure black can parse this when the target is 3.7 379s > self.invokeBlack([str(source_path), "--target-version", "py37"]) 379s 379s tests/test_black.py:446: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _____ BlackTestCase.test_required_version_does_not_match_on_minor_version ______ 379s 379s self = 379s 379s def test_required_version_does_not_match_on_minor_version(self) -> None: 379s > self.invokeBlack( 379s ["--required-version", black.__version__.split(".")[0] + ".999", "-c", "0"], 379s exit_code=1, 379s ignore_config=True, 379s ) 379s 379s tests/test_black.py:1424: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________ BlackTestCase.test_required_version_does_not_match_version __________ 379s 379s self = 379s 379s def test_required_version_does_not_match_version(self) -> None: 379s > result = BlackRunner().invoke( 379s black.main, 379s ["--required-version", "20.99b", "-c", "0"], 379s ) 379s 379s tests/test_black.py:1431: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _________ BlackTestCase.test_required_version_matches_partial_version __________ 379s 379s self = 379s 379s def test_required_version_matches_partial_version(self) -> None: 379s > self.invokeBlack( 379s ["--required-version", black.__version__.split(".")[0], "-c", "0"], 379s exit_code=0, 379s ignore_config=True, 379s ) 379s 379s tests/test_black.py:1417: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _____________ BlackTestCase.test_required_version_matches_version ______________ 379s 379s self = 379s 379s def test_required_version_matches_version(self) -> None: 379s > self.invokeBlack( 379s ["--required-version", black.__version__, "-c", "0"], 379s exit_code=0, 379s ignore_config=True, 379s ) 379s 379s tests/test_black.py:1410: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________________ BlackTestCase.test_single_file_force_py36 ___________________ 379s 379s self = 379s 379s def test_single_file_force_py36(self) -> None: 379s reg_mode = DEFAULT_MODE 379s py36_mode = replace(DEFAULT_MODE, target_versions=PY36_VERSIONS) 379s source, expected = read_data("miscellaneous", "force_py36") 379s with cache_dir() as workspace: 379s path = (workspace / "file.py").resolve() 379s path.write_text(source, encoding="utf-8") 379s > self.invokeBlack([str(path), *PY36_ARGS]) 379s 379s tests/test_black.py:1185: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ___________________ BlackTestCase.test_single_file_force_pyi ___________________ 379s 379s self = 379s 379s def test_single_file_force_pyi(self) -> None: 379s pyi_mode = replace(DEFAULT_MODE, is_pyi=True) 379s contents, expected = read_data("miscellaneous", "force_pyi") 379s with cache_dir() as workspace: 379s path = (workspace / "file.py").resolve() 379s path.write_text(contents, encoding="utf-8") 379s > self.invokeBlack([str(path), "--pyi"]) 379s 379s tests/test_black.py:1135: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _________________ BlackTestCase.test_skip_magic_trailing_comma _________________ 379s 379s self = 379s 379s def test_skip_magic_trailing_comma(self) -> None: 379s source, _ = read_data("cases", "expression") 379s expected, _ = read_data( 379s "miscellaneous", "expression_skip_magic_trailing_comma.diff" 379s ) 379s tmp_file = Path(black.dump_to_file(source)) 379s diff_header = re.compile( 379s rf"{re.escape(str(tmp_file))}\t\d\d\d\d-\d\d-\d\d " 379s r"\d\d:\d\d:\d\d\.\d\d\d\d\d\d\+\d\d:\d\d" 379s ) 379s try: 379s > result = BlackRunner().invoke( 379s black.main, ["-C", "--diff", str(tmp_file), f"--config={EMPTY_CONFIG}"] 379s ) 379s 379s tests/test_black.py:401: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________________ BlackTestCase.test_skip_source_first_line ___________________ 379s 379s self = 379s 379s def test_skip_source_first_line(self) -> None: 379s source, _ = read_data("miscellaneous", "invalid_header") 379s tmp_file = Path(black.dump_to_file(source)) 379s # Full source should fail (invalid syntax at header) 379s > self.invokeBlack([str(tmp_file), "--diff", "--check"], exit_code=123) 379s 379s tests/test_black.py:371: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _________________ BlackTestCase.test_spellcheck_pyproject_toml _________________ 379s 379s self = 379s 379s def test_spellcheck_pyproject_toml(self) -> None: 379s test_toml_file = THIS_DIR / "data" / "incorrect_spelling.toml" 379s > result = BlackRunner().invoke( 379s black.main, 379s [ 379s "--code=print('hello world')", 379s "--verbose", 379s f"--config={str(test_toml_file)}", 379s ], 379s ) 379s 379s tests/test_black.py:1514: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ____________________ BlackTestCase.test_src_and_code_fails _____________________ 379s 379s self = 379s 379s def test_src_and_code_fails(self) -> None: 379s with cache_dir(): 379s > self.invokeBlack([".", "-c", "0"], exit_code=1) 379s 379s tests/test_black.py:1118: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________ BlackTestCase.test_works_in_mono_process_only_environment ___________ 379s 379s self = 379s 379s @event_loop() 379s @patch("concurrent.futures.ProcessPoolExecutor", MagicMock(side_effect=OSError)) 379s def test_works_in_mono_process_only_environment(self) -> None: 379s with cache_dir() as workspace: 379s for f in [ 379s (workspace / "one.py").resolve(), 379s (workspace / "two.py").resolve(), 379s ]: 379s f.write_text('print("hello")\n', encoding="utf-8") 379s > self.invokeBlack([str(workspace)]) 379s 379s tests/test_black.py:1098: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ______________________ TestCaching.test_cache_broken_file ______________________ 379s 379s self = 379s 379s def test_cache_broken_file(self) -> None: 379s mode = DEFAULT_MODE 379s with cache_dir() as workspace: 379s cache_file = get_cache_file(mode) 379s cache_file.write_text("this is not a pickle", encoding="utf-8") 379s assert black.Cache.read(mode).file_data == {} 379s src = (workspace / "test.py").resolve() 379s src.write_text("print('hello')", encoding="utf-8") 379s > invokeBlack([str(src)]) 379s 379s tests/test_black.py:2134: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ______________ TestCaching.test_cache_single_file_already_cached _______________ 379s 379s self = 379s 379s def test_cache_single_file_already_cached(self) -> None: 379s mode = DEFAULT_MODE 379s with cache_dir() as workspace: 379s src = (workspace / "test.py").resolve() 379s src.write_text("print('hello')", encoding="utf-8") 379s cache = black.Cache.read(mode) 379s cache.write([src]) 379s > invokeBlack([str(src)]) 379s 379s tests/test_black.py:2145: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ____________________ TestCaching.test_cache_multiple_files _____________________ 379s 379s self = 379s 379s @event_loop() 379s def test_cache_multiple_files(self) -> None: 379s mode = DEFAULT_MODE 379s with ( 379s cache_dir() as workspace, 379s patch("concurrent.futures.ProcessPoolExecutor", new=ThreadPoolExecutor), 379s ): 379s one = (workspace / "one.py").resolve() 379s one.write_text("print('hello')", encoding="utf-8") 379s two = (workspace / "two.py").resolve() 379s two.write_text("print('hello')", encoding="utf-8") 379s cache = black.Cache.read(mode) 379s cache.write([one]) 379s > invokeBlack([str(workspace)]) 379s 379s tests/test_black.py:2161: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ________ TestCaching.test_output_locking_when_writeback_diff[no-color] _________ 379s 379s self = , color = False 379s 379s @pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"]) 379s @event_loop() 379s def test_output_locking_when_writeback_diff(self, color: bool) -> None: 379s with cache_dir() as workspace: 379s for tag in range(0, 4): 379s src = (workspace / f"test{tag}.py").resolve() 379s src.write_text("print('hello')", encoding="utf-8") 379s with patch( 379s "black.concurrency.Manager", wraps=multiprocessing.Manager 379s ) as mgr: 379s cmd = ["--diff", str(workspace)] 379s if color: 379s cmd.append("--color") 379s > invokeBlack(cmd, exit_code=0) 379s 379s tests/test_black.py:2201: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _______ TestCaching.test_output_locking_when_writeback_diff[with-color] ________ 379s 379s self = , color = True 379s 379s @pytest.mark.parametrize("color", [False, True], ids=["no-color", "with-color"]) 379s @event_loop() 379s def test_output_locking_when_writeback_diff(self, color: bool) -> None: 379s with cache_dir() as workspace: 379s for tag in range(0, 4): 379s src = (workspace / f"test{tag}.py").resolve() 379s src.write_text("print('hello')", encoding="utf-8") 379s with patch( 379s "black.concurrency.Manager", wraps=multiprocessing.Manager 379s ) as mgr: 379s cmd = ["--diff", str(workspace)] 379s if color: 379s cmd.append("--color") 379s > invokeBlack(cmd, exit_code=0) 379s 379s tests/test_black.py:2201: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s ____________ TestCaching.test_failed_formatting_does_not_get_cached ____________ 379s 379s self = 379s 379s @event_loop() 379s def test_failed_formatting_does_not_get_cached(self) -> None: 379s mode = DEFAULT_MODE 379s with ( 379s cache_dir() as workspace, 379s patch("concurrent.futures.ProcessPoolExecutor", new=ThreadPoolExecutor), 379s ): 379s failing = (workspace / "failing.py").resolve() 379s failing.write_text("not actually python", encoding="utf-8") 379s clean = (workspace / "clean.py").resolve() 379s clean.write_text('print("hello")\n', encoding="utf-8") 379s > invokeBlack([str(workspace)], exit_code=123) 379s 379s tests/test_black.py:2315: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s tests/test_black.py:123: in invokeBlack 379s runner = BlackRunner() 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s __________________ TestFileCollection.test_invalid_gitignore ___________________ 379s 379s self = 379s 379s def test_invalid_gitignore(self) -> None: 379s path = THIS_DIR / "data" / "invalid_gitignore_tests" 379s empty_config = path / "pyproject.toml" 379s > result = BlackRunner().invoke( 379s black.main, ["--verbose", "--config", str(empty_config), str(path)] 379s ) 379s 379s tests/test_black.py:2518: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s _______________ TestFileCollection.test_invalid_nested_gitignore _______________ 379s 379s self = 379s 379s def test_invalid_nested_gitignore(self) -> None: 379s path = THIS_DIR / "data" / "invalid_nested_gitignore_tests" 379s empty_config = path / "pyproject.toml" 379s > result = BlackRunner().invoke( 379s black.main, ["--verbose", "--config", str(empty_config), str(path)] 379s ) 379s 379s tests/test_black.py:2534: 379s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 379s 379s self = 379s 379s def __init__(self) -> None: 379s > super().__init__(mix_stderr=False) 379s E TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 379s 379s tests/test_black.py:117: TypeError 379s =========================== short test summary info ============================ 379s FAILED tests/test_black.py::BlackTestCase::test_async_as_identifier - TypeErr... 379s FAILED tests/test_black.py::BlackTestCase::test_bpo_2142_workaround - TypeErr... 379s FAILED tests/test_black.py::BlackTestCase::test_broken_symlink - TypeError: C... 379s FAILED tests/test_black.py::BlackTestCase::test_check_diff_use_together - Typ... 379s FAILED tests/test_black.py::BlackTestCase::test_cli_unstable - TypeError: Cli... 379s FAILED tests/test_black.py::BlackTestCase::test_expression_diff - TypeError: ... 379s FAILED tests/test_black.py::BlackTestCase::test_expression_diff_with_color - ... 379s FAILED tests/test_black.py::BlackTestCase::test_invalid_cli_regex - TypeError... 379s FAILED tests/test_black.py::BlackTestCase::test_invalid_config_return_code - ... 379s FAILED tests/test_black.py::BlackTestCase::test_line_ranges_in_pyproject_toml 379s FAILED tests/test_black.py::BlackTestCase::test_line_ranges_with_stdin - Type... 379s FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_py36 - TypeE... 379s FAILED tests/test_black.py::BlackTestCase::test_multi_file_force_pyi - TypeEr... 379s FAILED tests/test_black.py::BlackTestCase::test_no_src_fails - TypeError: Cli... 379s FAILED tests/test_black.py::BlackTestCase::test_piping - TypeError: CliRunner... 379s FAILED tests/test_black.py::BlackTestCase::test_piping_diff - TypeError: CliR... 379s FAILED tests/test_black.py::BlackTestCase::test_piping_diff_with_color - Type... 379s FAILED tests/test_black.py::BlackTestCase::test_preserves_line_endings_via_stdin 379s FAILED tests/test_black.py::BlackTestCase::test_python37 - TypeError: CliRunn... 379s FAILED tests/test_black.py::BlackTestCase::test_required_version_does_not_match_on_minor_version 379s FAILED tests/test_black.py::BlackTestCase::test_required_version_does_not_match_version 379s FAILED tests/test_black.py::BlackTestCase::test_required_version_matches_partial_version 379s FAILED tests/test_black.py::BlackTestCase::test_required_version_matches_version 379s FAILED tests/test_black.py::BlackTestCase::test_single_file_force_py36 - Type... 379s FAILED tests/test_black.py::BlackTestCase::test_single_file_force_pyi - TypeE... 379s FAILED tests/test_black.py::BlackTestCase::test_skip_magic_trailing_comma - T... 379s FAILED tests/test_black.py::BlackTestCase::test_skip_source_first_line - Type... 379s FAILED tests/test_black.py::BlackTestCase::test_spellcheck_pyproject_toml - T... 379s FAILED tests/test_black.py::BlackTestCase::test_src_and_code_fails - TypeErro... 379s FAILED tests/test_black.py::BlackTestCase::test_works_in_mono_process_only_environment 379s FAILED tests/test_black.py::TestCaching::test_cache_broken_file - TypeError: ... 379s FAILED tests/test_black.py::TestCaching::test_cache_single_file_already_cached 379s FAILED tests/test_black.py::TestCaching::test_cache_multiple_files - TypeErro... 379s FAILED tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff[no-color] 379s FAILED tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff[with-color] 379s FAILED tests/test_black.py::TestCaching::test_failed_formatting_does_not_get_cached 379s FAILED tests/test_black.py::TestFileCollection::test_invalid_gitignore - Type... 379s FAILED tests/test_black.py::TestFileCollection::test_invalid_nested_gitignore 379s ========== 38 failed, 311 passed, 22 skipped, 16 deselected in 40.54s ========== 381s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.4JnPQd/autopkgtest_tmp/build; python3.13 -m pytest --run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)" 381s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.12 3.13" returned exit code 13 381s make: *** [/tmp/25_vcRRp2p/run:4: pybuild-autopkgtest] Error 25 381s pybuild-autopkgtest: error: /tmp/25_vcRRp2p/run pybuild-autopkgtest returned exit code 2 381s autopkgtest [03:51:33]: test pybuild-autopkgtest: -----------------------] 382s autopkgtest [03:51:34]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 382s pybuild-autopkgtest FAIL non-zero exit status 25 382s autopkgtest [03:51:34]: @@@@@@@@@@@@@@@@@@@@ summary 382s pybuild-autopkgtest FAIL non-zero exit status 25 399s nova [W] Using flock in prodstack6-arm64 399s flock: timeout while waiting to get lock 399s Creating nova instance adt-plucky-arm64-black-20250219-034511-juju-7f2275-prod-proposed-migration-environment-15-b17c37eb-e869-490b-a4ee-115fc4452f1e from image adt/ubuntu-plucky-arm64-server-20250218.img (UUID db1e3557-ca0b-4978-8424-9ef955671030)... 399s nova [W] Timed out waiting for 653bf5de-75a6-4c1b-a439-d2cd4ff734ce to get deleted.