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