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