<86>Jan 26 01:01:12 userdel[1241661]: delete user 'rooter' <86>Jan 26 01:01:12 userdel[1241661]: removed group 'rooter' owned by 'rooter' <86>Jan 26 01:01:12 userdel[1241661]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 26 01:01:12 groupadd[1241678]: group added to /etc/group: name=rooter, GID=1862 <86>Jan 26 01:01:12 groupadd[1241678]: group added to /etc/gshadow: name=rooter <86>Jan 26 01:01:12 groupadd[1241678]: new group: name=rooter, GID=1862 <86>Jan 26 01:01:12 useradd[1241685]: new user: name=rooter, UID=1862, GID=1862, home=/root, shell=/bin/bash, from=none <86>Jan 26 01:01:12 userdel[1241703]: delete user 'builder' <86>Jan 26 01:01:12 userdel[1241703]: removed group 'builder' owned by 'builder' <86>Jan 26 01:01:12 userdel[1241703]: removed shadow group 'builder' owned by 'builder' <86>Jan 26 01:01:12 groupadd[1241714]: group added to /etc/group: name=builder, GID=1863 <86>Jan 26 01:01:12 groupadd[1241714]: group added to /etc/gshadow: name=builder <86>Jan 26 01:01:12 groupadd[1241714]: new group: name=builder, GID=1863 <86>Jan 26 01:01:12 useradd[1241724]: new user: name=builder, UID=1863, GID=1863, home=/usr/src, shell=/bin/bash, from=none <13>Jan 26 01:01:20 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Jan 26 01:01:20 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Jan 26 01:01:20 rpmi: libexpat-2.5.0-alt1 sisyphus+309227.100.1.1 1667075764 installed <13>Jan 26 01:01:20 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Jan 26 01:01:20 rpmi: libp11-kit-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645560 installed <13>Jan 26 01:01:20 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Jan 26 01:01:20 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jan 26 01:01:20 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jan 26 01:01:20 rpmi: ca-certificates-2023.12.20-alt1 sisyphus+336902.300.1.1 1703105726 installed <13>Jan 26 01:01:20 rpmi: ca-trust-0.1.4-alt1 sisyphus+308690.100.1.1 1666182992 installed <13>Jan 26 01:01:20 rpmi: p11-kit-trust-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645560 installed <13>Jan 26 01:01:20 rpmi: libcrypto3-3.1.4-alt1 sisyphus+332632.100.2.1 1698241041 installed <13>Jan 26 01:01:20 rpmi: libssl3-3.1.4-alt1 sisyphus+332632.100.2.1 1698241041 installed <13>Jan 26 01:01:20 rpmi: python3-3.12.1-alt1 sisyphus+338551.300.3.1 1705938606 installed <13>Jan 26 01:01:21 rpmi: python3-base-3.12.1-alt1 sisyphus+338551.300.3.1 1705938606 installed <13>Jan 26 01:01:21 rpmi: python3-module-py3dephell-0.1.0-alt2 sisyphus+328191.600.5.1 1693609196 installed <13>Jan 26 01:01:21 rpmi: python3-module-pyproject-installer-0.5.2-alt1 sisyphus+324644.100.2.1 1689089627 installed <13>Jan 26 01:01:21 rpmi: rpm-macros-pyproject-0.0.4-alt1 sisyphus+322305.200.2.1 1686212200 installed <13>Jan 26 01:01:21 rpmi: tests-for-installed-python3-pkgs-0.1.24-alt2 sisyphus+331059.100.4.1 1696870033 installed <13>Jan 26 01:01:21 rpmi: rpm-build-python3-0.1.24-alt2 sisyphus+331059.100.4.1 1696870033 installed <13>Jan 26 01:01:21 rpmi: rpm-build-pyproject-0.0.4-alt1 sisyphus+322305.200.2.1 1686212200 installed <13>Jan 26 01:02:04 rpmi: python3-module-attrs-23.2.0-alt1 sisyphus+338876.100.1.2 1706109385 installed <13>Jan 26 01:02:04 rpmi: python3-module-pkg_resources-1:69.0.3-alt1 sisyphus+337272.100.2.1 1703780159 installed <13>Jan 26 01:02:04 rpmi: python3-module-zope.interface-6.0-alt1 sisyphus+333513.24700.71.1 1704543585 installed <13>Jan 26 01:02:04 rpmi: python3-module-idna-3.6-alt1 sisyphus+335330.100.1.2 1701263518 installed <13>Jan 26 01:02:04 rpmi: python3-module-packaging-23.2-alt1 sisyphus+330805.100.2.1 1696324248 installed <13>Jan 26 01:02:04 rpmi: python3-module-greenlet-3.0.1-alt1 sisyphus+333513.52300.73.1 1704648441 installed <13>Jan 26 01:02:04 rpmi: python3-module-six-1.16.0-alt2 sisyphus+324249.100.1.1 1688484676 installed <13>Jan 26 01:02:04 rpmi: libtcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548266 installed <13>Jan 26 01:02:04 rpmi: python3-module-pluggy-1.3.0-alt1 sisyphus+330478.100.1.1 1695823310 installed <13>Jan 26 01:02:04 rpmi: python3-module-pathspec-0.11.2-alt1 sisyphus+326154.100.2.1 1690886843 installed <13>Jan 26 01:02:04 rpmi: python3-module-multidict-6.0.4-alt1 sisyphus+333513.44100.72.1 1704599436 installed <13>Jan 26 01:02:04 rpmi: python3-module-click-8.1.7-alt1 sisyphus+327424.100.2.1 1695395098 installed <13>Jan 26 01:02:04 rpmi: python3-module-frozenlist-1.3.3-alt1 sisyphus+333513.42100.72.1 1704598834 installed <13>Jan 26 01:02:04 rpmi: libcares-1.25.0-alt1 sisyphus+338029.100.1.2 1705643828 installed <13>Jan 26 01:02:04 rpmi: python3-module-aiosignal-1.3.1-alt1 sisyphus+314057.100.1.1 1674561191 installed <13>Jan 26 01:02:04 rpmi: python3-module-incremental-22.10.0-alt1 sisyphus+312706.100.1.1 1672404273 installed <13>Jan 26 01:02:04 rpmi: python3-module-yarl-1.9.2-alt2 sisyphus+333513.47700.73.1 1704644546 installed <13>Jan 26 01:02:04 rpmi: tcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548266 installed <13>Jan 26 01:02:04 rpmi: python3-module-idna_ssl-1.1.0-alt2 sisyphus+272418.100.1.1 1621876529 installed <13>Jan 26 01:02:04 rpmi: python3-module-hyperlink-21.0.0-alt1.1 sisyphus+304836.100.1.1 1659710964 installed <13>Jan 26 01:02:04 rpmi: python3-module-outcome-1.3.0-alt1 sisyphus+332382.100.1.1 1697882349 installed <13>Jan 26 01:02:05 rpmi: ruff-0.1.11-alt1 sisyphus+337872.100.1.1 1704791626 installed <13>Jan 26 01:02:05 rpmi: python3-module-mdurl-0.1.2-alt1 sisyphus+318894.1000.3.1 1682420700 installed <13>Jan 26 01:02:05 rpmi: python3-module-markdown-it-3.0.0-alt1 sisyphus+324665.100.1.1 1689081992 installed <13>Jan 26 01:02:05 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Jan 26 01:02:05 rpmi: python3-module-pytest-7.4.3-alt1 sisyphus+332685.100.2.1 1698314627 installed <13>Jan 26 01:02:05 rpmi: python3-module-trove-classifiers-2023.11.14-alt1 sisyphus+334411.100.1.1 1699977462 installed <13>Jan 26 01:02:05 rpmi: python3-module-editables-0.5-alt1 sisyphus+325524.100.1.1 1690277257 installed <13>Jan 26 01:02:05 rpmi: python3-module-platformdirs-3.10.0-alt1 sisyphus+326155.100.2.1 1690880012 installed <13>Jan 26 01:02:05 rpmi: python3-module-mypy_extensions-1.0.0-alt1 sisyphus+316350.100.2.1 1678357948 installed <13>Jan 26 01:02:05 rpmi: python3-module-priority-2.0.0-alt3 sisyphus+338701.100.1.2 1705988383 installed <13>Jan 26 01:02:05 rpmi: python3-module-hpack-4.0.0-alt1 sisyphus+270376.200.1.1 1618956626 installed <13>Jan 26 01:02:05 rpmi: python3-module-hyperframe-6.0.1-alt1 sisyphus+270376.300.2.1 1618957001 installed <13>Jan 26 01:02:05 rpmi: python3-module-h2-4.1.0-alt1 sisyphus+325714.100.2.2 1690478873 installed <13>Jan 26 01:02:05 rpmi: python3-module-constantly-15.1.0-alt7 sisyphus+338906.100.1.1 1706107088 installed <13>Jan 26 01:02:05 rpmi: python3-module-typing_extensions-4.9.0-alt1 sisyphus+338687.100.1.1 1705975783 installed <13>Jan 26 01:02:05 rpmi: python3-module-appdirs-1.4.4-alt1 sisyphus+267613.300.2.1 1620039159 installed <13>Jan 26 01:02:05 rpmi: python3-module-certifi-2023.5.7-alt1 sisyphus+322622.100.1.1 1686217855 installed <13>Jan 26 01:02:05 rpmi: python3-module-z3c-3.0.0-alt4 sisyphus+284857.200.1.1 1631109149 installed <13>Jan 26 01:02:05 rpmi: python3-module-zc-1.0.0-alt7 sisyphus+284857.100.1.1 1631109117 installed <13>Jan 26 01:02:05 rpmi: python3-module-zope-3.3.0-alt9 sisyphus+281937.200.4.1 1628175900 installed <13>Jan 26 01:02:05 rpmi: python3-module-zope.event-5.0-alt1.1 sisyphus+325755.140.2.1 1690991538 installed <13>Jan 26 01:02:05 rpmi: python3-module-sortedcontainers-2.4.0-alt1 sisyphus+272042.100.1.1 1621262424 installed <13>Jan 26 01:02:05 rpmi: python3-module-sniffio-1.3.0-alt1 sisyphus+333845.100.3.1 1699533040 installed <13>Jan 26 01:02:05 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Jan 26 01:02:05 rpmi: python3-module-cffi-1.16.0-alt1 sisyphus+333513.10400.71.1 1704539931 installed <13>Jan 26 01:02:05 rpmi: python3-module-cryptography-42.0.1-alt1 sisyphus+338984.100.1.2 1706196495 installed <13>Jan 26 01:02:05 rpmi: python3-module-openssl-23.2.0-alt1 sisyphus+326014.100.1.1 1690659362 installed <13>Jan 26 01:02:05 rpmi: python3-module-pycares-4.1.2-alt1 sisyphus+333513.36000.73.1 1704636776 installed <13>Jan 26 01:02:05 rpmi: python3-module-astor-0.8.1-alt1.1 sisyphus+315877.100.1.1 1677481862 installed <13>Jan 26 01:02:05 rpmi: python3-module-trio-0.24.0-alt1 sisyphus+338884.100.1.2 1706111254 installed <13>Jan 26 01:02:05 rpmi: python3-module-dns-1:2.2.0-alt2 sisyphus+320065.60.1.1 1683366881 installed <13>Jan 26 01:02:05 rpmi: python3-module-charset-normalizer-2.1.1-alt1 sisyphus+311047.100.1.1 1669992940 installed <13>Jan 26 01:02:05 rpmi: python3-module-Pygments-2.17.2-alt1 sisyphus+334864.100.2.1 1701773787 installed <13>Jan 26 01:02:05 rpmi: python3-module-rich-13.6.0-alt1 sisyphus+330868.100.2.1 1696418401 installed <13>Jan 26 01:02:05 rpmi: python3-module-openid-3.2.0-alt1 sisyphus+278049.100.2.1 1625998936 installed <13>Jan 26 01:02:05 rpmi: python3-module-Cheetah-3.3.3-alt1 sisyphus+333513.10500.71.1 1704539963 installed <13>Jan 26 01:02:05 rpmi: python3-module-paste-3.7.1-alt1 sisyphus+332187.100.1.1 1697730831 installed <13>Jan 26 01:02:05 rpmi: python3-module-PasteDeploy-1:3.0.1-alt1 sisyphus+308592.100.1.1 1666070463 installed <13>Jan 26 01:02:05 rpmi: python3-module-PasteScript-1:2.0.2-alt2 sisyphus+272468.100.1.1 1621939313 installed <13>Jan 26 01:02:05 rpmi: libuv-1.47.0-alt1 sisyphus+337159.100.2.1 1703930510 installed <13>Jan 26 01:02:06 rpmi: libpython3-3.12.1-alt1 sisyphus+338551.300.3.1 1705938606 installed <13>Jan 26 01:02:06 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+328055.40.2.1 1693212977 installed <13>Jan 26 01:02:06 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+328055.40.2.1 1693212977 installed <13>Jan 26 01:02:06 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+328055.40.2.1 1693212977 installed <13>Jan 26 01:02:06 rpmi: python3-dev-3.12.1-alt1 sisyphus+338551.300.3.1 1705938606 installed <13>Jan 26 01:02:06 rpmi: python3-module-setuptools-1:69.0.3-alt1 sisyphus+337272.100.2.1 1703780159 installed <13>Jan 26 01:02:06 rpmi: python3-module-pygobject-2.28.6-alt15 sisyphus+333513.36010.77.1 1704961841 installed <13>Jan 26 01:02:06 rpmi: openldap-common-2.6.6-alt1 sisyphus+330946.100.2.1 1696432854 installed <13>Jan 26 01:02:06 rpmi: libverto-0.3.2-alt1_1 sisyphus+321176.2200.10.2 1684803947 installed <13>Jan 26 01:02:06 rpmi: liblmdb-0.9.31-alt1 sisyphus+330946.40.2.1 1696431544 installed <13>Jan 26 01:02:06 rpmi: libkeyutils-1.6.3-alt1 sisyphus+266061.100.1.1 1612919566 installed <13>Jan 26 01:02:06 rpmi: libusb-1.0.26-alt2 sisyphus+305525.100.1.1 1660924427 installed <13>Jan 26 01:02:06 rpmi: libhidapi-0.12.0-alt1_1 sisyphus+303213.100.1.1 1657034192 installed <13>Jan 26 01:02:06 rpmi: python3-module-cython-hidapi-0.14.0-alt1.1 sisyphus+333513.54340.73.1 1704651867 installed <13>Jan 26 01:02:06 rpmi: python3-module-serial-3.5-alt2 sisyphus+281995.100.1.1 1628172783 installed <13>Jan 26 01:02:07 rpmi: libev4-4.33-alt3 sisyphus+334335.340.4.1 1699912675 installed <13>Jan 26 01:02:07 rpmi: python3-module-gevent-22.10.2-alt1 sisyphus+333513.53700.73.1 1704650502 installed <13>Jan 26 01:02:07 rpmi: libcom_err-1.46.4.0.5.4cda-alt1 sisyphus+283826.100.1.1 1629975345 installed <86>Jan 26 01:02:07 groupadd[1337335]: group added to /etc/group: name=_keytab, GID=999 <86>Jan 26 01:02:07 groupadd[1337335]: group added to /etc/gshadow: name=_keytab <86>Jan 26 01:02:07 groupadd[1337335]: new group: name=_keytab, GID=999 <13>Jan 26 01:02:07 rpmi: libkrb5-1.21.2-alt1 sisyphus+327265.100.1.1 1692185462 installed <86>Jan 26 01:02:07 groupadd[1338101]: group added to /etc/group: name=sasl, GID=998 <86>Jan 26 01:02:07 groupadd[1338101]: group added to /etc/gshadow: name=sasl <86>Jan 26 01:02:07 groupadd[1338101]: new group: name=sasl, GID=998 <13>Jan 26 01:02:07 rpmi: libsasl2-3-2.1.27-alt2.2 sisyphus+324359.6000.12.1 1689392001 installed <13>Jan 26 01:02:07 rpmi: libldap2-2.6.6-alt1 sisyphus+330946.100.2.1 1696432854 installed <13>Jan 26 01:02:07 rpmi: libpq5-16.1-alt2 sisyphus+333513.6620.73.1 1704629134 installed <13>Jan 26 01:02:07 rpmi: python3-module-psycopg2-2.9.5-alt1 sisyphus+333513.16300.73.1 1704630033 installed <13>Jan 26 01:02:07 rpmi: python3-module-eventlet-0.35.0-alt1 sisyphus+338870.100.1.2 1706100340 installed <13>Jan 26 01:02:07 rpmi: libpng16-1.6.40-alt1 sisyphus+323732.100.1.1 1687771851 installed <13>Jan 26 01:02:07 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Jan 26 01:02:07 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Jan 26 01:02:07 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605111 installed <13>Jan 26 01:02:07 rpmi: libharfbuzz-8.3.0-alt1 sisyphus+334471.200.2.1 1700075951 installed <13>Jan 26 01:02:07 rpmi: libfreetype-2.13.2-alt1 sisyphus+328677.100.1.1 1693834345 installed <13>Jan 26 01:02:07 rpmi: libfontconfig1-2.14.2-alt8 sisyphus+328444.100.1.1 1693553402 installed <13>Jan 26 01:02:07 rpmi: libXdmcp-1.1.4-alt1 sisyphus+311188.1000.1.1 1670233857 installed <13>Jan 26 01:02:07 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577439 installed <13>Jan 26 01:02:07 rpmi: libxcb-1.16-alt1 sisyphus+327325.200.1.1 1692276261 installed <13>Jan 26 01:02:07 rpmi: libX11-locales-3:1.8.7-alt1 sisyphus+330921.200.1.1 1696400315 installed <13>Jan 26 01:02:07 rpmi: libX11-3:1.8.7-alt1 sisyphus+330921.200.1.1 1696400315 installed <13>Jan 26 01:02:07 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436130 installed <13>Jan 26 01:02:07 rpmi: libXft-2.3.8-alt1 sisyphus+331490.400.1.1 1697023269 installed <13>Jan 26 01:02:07 rpmi: libtk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548530 installed <13>Jan 26 01:02:07 rpmi: tk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548530 installed <13>Jan 26 01:02:07 rpmi: tcl-tix-8.4.3-alt4 sisyphus+277292.300.2.1 1625442550 installed <13>Jan 26 01:02:07 rpmi: python3-modules-tkinter-3.12.1-alt1 sisyphus+338551.300.3.1 1705938606 installed <13>Jan 26 01:02:07 rpmi: python3-module-automat-22.10.0-alt1 sisyphus+322927.200.2.1 1686736914 installed <13>Jan 26 01:02:07 rpmi: python3-module-twisted-logger-22.10.0-alt2 sisyphus+333513.32500.72.1 1704589956 installed <13>Jan 26 01:02:07 rpmi: python3-module-twisted-web-22.10.0-alt2 sisyphus+333513.32500.72.1 1704589956 installed <13>Jan 26 01:02:07 rpmi: python3-module-twisted-words-22.10.0-alt2 sisyphus+333513.32500.72.1 1704589956 installed <13>Jan 26 01:02:07 rpmi: python3-module-twisted-core-22.10.0-alt2 sisyphus+333513.32500.72.1 1704589956 installed <13>Jan 26 01:02:07 rpmi: python3-module-twisted-names-22.10.0-alt2 sisyphus+333513.32500.72.1 1704589956 installed <13>Jan 26 01:02:07 rpmi: python3-module-tornado-6.4.0-alt1 sisyphus+338807.100.1.1 1706060409 installed <13>Jan 26 01:02:07 rpmi: python3-module-gunicorn-20.1.0-alt2 sisyphus+338616.200.2.1 1705909828 installed <13>Jan 26 01:02:07 rpmi: python3-module-aiohttp-3.9.1-alt1 sisyphus+338371.640.8.1 1706005873 installed <13>Jan 26 01:02:07 rpmi: python3-module-black-23.12.1-alt1 sisyphus+337185.200.2.1 1703500468 installed <13>Jan 26 01:02:07 rpmi: python3-module-pytest-pretty-1.2.0-alt1 sisyphus+325486.140.2.1 1690270459 installed <13>Jan 26 01:02:07 rpmi: python3-module-hatchling-1.18.0-alt1 sisyphus+322894.100.1.1 1686650008 installed <13>Jan 26 01:02:07 rpmi: python3-module-ruff-0.1.11-alt1 sisyphus+337872.100.1.1 1704791626 installed <13>Jan 26 01:02:07 rpmi: python3-module-tomli-2.0.1-alt2 sisyphus+305000.3300.2.1 1660575675 installed <13>Jan 26 01:02:07 rpmi: python3-module-exceptiongroup-1.2.0-alt1 sisyphus+336050.100.2.1 1702038305 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-pytest-examples-0.0.10-alt2.nosrc.rpm (w1.gzdio) Installing python3-module-pytest-examples-0.0.10-alt2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.76105 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-pytest-examples-0.0.10 + echo 'Source #0 (python3-module-pytest-examples-0.0.10.tar):' Source #0 (python3-module-pytest-examples-0.0.10.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-pytest-examples-0.0.10.tar + cd python3-module-pytest-examples-0.0.10 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (python3-module-pytest-examples-0.0.10-alt-update-tests-for-new-ruff.patch):' Patch #0 (python3-module-pytest-examples-0.0.10-alt-update-tests-for-new-ruff.patch): + /usr/bin/patch -p1 patching file tests/test_run_examples.py + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show pep518 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync --verify pep518 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show pep517 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync --verify pep517 + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show metadata + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync --verify metadata INFO : Building metadata INFO : Building metadata with prepare_metadata_for_build_wheel INFO : Source tree: /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10 INFO : Output dir: /usr/src/tmp/tmpqvpq9et1 + cat requirements/pyproject.txt requirements/testing.txt + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json show check + /usr/bin/python3 -m pyproject_installer deps --depsconfig /usr/src/RPM/SOURCES/pyproject_deps.json sync --verify check + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.10496 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-pytest-examples-0.0.10 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: hatchling.build INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : pyproject_installer.build_cmd._build : Built wheel: pytest_examples-0.0.10-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.47515 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-pytest-examples-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-pytest-examples-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-pytest-examples-0.0.10 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-pytest-examples-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: pytest_examples-0.0.10-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-pytest-examples-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_examples-0.0.10.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_examples-0.0.10.dist-info/licenses/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_examples-0.0.10.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Generating entrypoints scripts INFO : pyproject_installer.install_cmd._install : Wheel was installed + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-pytest-examples-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-pytest-examples-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-pytest-examples-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-pytest-examples-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-pytest-examples-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-pytest-examples-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python3 modules in /usr/src/tmp/python3-module-pytest-examples-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/__init__.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/config.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/eval_example.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/find_examples.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/lint.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/modify_files.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/run_code.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/traceback.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-pytest-examples-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/__init__.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/config.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/eval_example.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/find_examples.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/lint.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/modify_files.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/run_code.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/traceback.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-pytest-examples-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/__init__.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/config.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/eval_example.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/find_examples.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/lint.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/modify_files.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/run_code.py compile /usr/src/tmp/python3-module-pytest-examples-buildroot/usr/lib/python3/site-packages/pytest_examples/traceback.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/pytest_examples/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/pytest_examples/__pycache__/config.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/config.cpython-312.pyc' './usr/lib/python3/site-packages/pytest_examples/__pycache__/config.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/config.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/pytest_examples/__pycache__/eval_example.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/eval_example.cpython-312.pyc' './usr/lib/python3/site-packages/pytest_examples/__pycache__/find_examples.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/find_examples.cpython-312.pyc' './usr/lib/python3/site-packages/pytest_examples/__pycache__/lint.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/lint.cpython-312.pyc' './usr/lib/python3/site-packages/pytest_examples/__pycache__/lint.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/lint.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/pytest_examples/__pycache__/modify_files.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/modify_files.cpython-312.pyc' './usr/lib/python3/site-packages/pytest_examples/__pycache__/traceback.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_examples/__pycache__/traceback.cpython-312.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.47515 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-pytest-examples-0.0.10 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest -vra INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/dist/pytest_examples-0.0.10-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/dist/pytest_examples-0.0.10-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest', '-vra'] ============================= test session starts ============================== platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0 -- /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/.run_venv/bin/python3 cachedir: .pytest_cache rootdir: /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10 configfile: pyproject.toml testpaths: tests, example plugins: examples-0.0.10, pretty-1.2.0 collecting ... collected 73 items tests/test_find_examples.py::test_find_md_example PASSED [ 1%] tests/test_find_examples.py::test_find_py_example PASSED [ 2%] tests/test_find_examples.py::test_find_py_example_with_module_docstring PASSED [ 4%] tests/test_find_examples.py::test_find_file_example PASSED [ 5%] tests/test_find_examples.py::test_find_missing PASSED [ 6%] tests/test_find_examples.py::test_find_index_markdown PASSED [ 8%] tests/test_find_examples.py::test_find_index_python PASSED [ 9%] tests/test_find_examples.py::test_prefix_settings[py test="skip"-prefix_settings0] PASSED [ 10%] tests/test_find_examples.py::test_prefix_settings[py test="skip" foo="B ar"-prefix_settings1] PASSED [ 12%] tests/test_find_examples.py::test_prefix_settings[py test='require-3.8'-prefix_settings2] PASSED [ 13%] tests/test_find_examples.py::test_prefix_tags[{.py .foobar}-prefix_tags0] PASSED [ 15%] tests/test_find_examples.py::test_prefix_tags[{.py 'foo bar'-prefix_tags1] PASSED [ 16%] tests/test_find_examples.py::test_prefix_tags[py mytag-prefix_tags2] PASSED [ 17%] tests/test_find_examples.py::test_prefix_tags[py test="skip" foo="B ar"-prefix_tags3] PASSED [ 19%] tests/test_insert_print.py::test_find_end_of_print[simple case] PASSED [ 20%] tests/test_insert_print.py::test_find_end_of_print[content after print output] PASSED [ 21%] tests/test_insert_print.py::test_find_end_of_print[single-line-indent] PASSED [ 23%] tests/test_insert_print.py::test_find_end_of_print[print-over-lines] PASSED [ 24%] tests/test_insert_print.py::test_find_end_of_print[multiline-comprehension] PASSED [ 26%] tests/test_insert_print.py::test_find_end_of_print[ill-formed-print-1] PASSED [ 27%] tests/test_insert_print.py::test_find_end_of_print[ill-formed-print-2] PASSED [ 28%] tests/test_insert_print.py::test_find_end_of_print[try-except] PASSED [ 30%] tests/test_insert_print.py::test_find_end_of_print[call-attribute] PASSED [ 31%] tests/test_insert_print.py::test_find_end_of_print[class-method] PASSED [ 32%] tests/test_insert_print.py::test_find_end_of_print[async-function] PASSED [ 34%] tests/test_insert_print.py::test_insert_print_check_unchanged[simple case] PASSED [ 35%] tests/test_insert_print.py::test_insert_print_check_unchanged[content after print output] PASSED [ 36%] tests/test_insert_print.py::test_insert_print_check_unchanged[multiline] PASSED [ 38%] tests/test_insert_print.py::test_insert_print_check_unchanged[single-line-indent] PASSED [ 39%] tests/test_insert_print.py::test_insert_print_check_unchanged[multi-line-indent] PASSED [ 41%] tests/test_insert_print.py::test_insert_print_check_unchanged[print-over-lines] PASSED [ 42%] tests/test_insert_print.py::test_insert_print_check_unchanged[multiline-comprehension] PASSED [ 43%] tests/test_insert_print.py::test_insert_print_check_unchanged[ill-formed-print-1] PASSED [ 45%] tests/test_insert_print.py::test_insert_print_check_unchanged[ill-formed-print-2] PASSED [ 46%] tests/test_insert_print.py::test_insert_print_check_unchanged[big-indent] PASSED [ 47%] tests/test_insert_print.py::test_insert_print_check_unchanged[not-python-code] PASSED [ 49%] tests/test_insert_print.py::test_insert_print_check_unchanged[non-python-repr0] PASSED [ 50%] tests/test_insert_print.py::test_insert_print_check_unchanged[non-python-repr1] PASSED [ 52%] tests/test_insert_print.py::test_insert_print_check_unchanged[print-in-except] PASSED [ 53%] tests/test_insert_print.py::test_insert_print_check_unchanged[set-order] PASSED [ 54%] tests/test_insert_print.py::test_insert_print_check_unchanged[hex_id] PASSED [ 56%] tests/test_insert_print.py::test_insert_print_check_change PASSED [ 57%] tests/test_lint.py::test_ruff PASSED [ 58%] tests/test_lint.py::test_ruff_config PASSED [ 60%] tests/test_lint.py::test_ruff_offset PASSED [ 61%] tests/test_lint.py::test_black_line_length PASSED [ 63%] tests/test_run_examples.py::test_run_example_ok_fail FAILED [ 64%] [ 64%] tests/test_run_examples.py:18 test_run_example_ok_fail - AssertionEr… tests/test_run_examples.py::test_ruff_ok PASSED [ 65%] tests/test_run_examples.py::test_ruff_error PASSED [ 67%] tests/test_run_examples.py::test_black_ok PASSED [ 68%] tests/test_run_examples.py::test_black_error PASSED [ 69%] tests/test_run_examples.py::test_black_error_multiline PASSED [ 71%] tests/test_run_examples.py::test_run_directly FAILED [ 72%] [ 72%] tests/test_run_examples.py:219 test_run_directly - DeprecationWarnin… tests/test_run_examples.py::test_print_sub PASSED [ 73%] tests/test_update.py::test_update_files PASSED [ 75%] tests/test_update.py::test_update_repeat_example PASSED [ 76%] tests/test_update.py::test_update_repeat_file PASSED [ 78%] tests/test_update_examples_dir.py::test_cases_update[use_globals.md] PASSED [ 79%] tests/test_update_examples_dir.py::test_cases_update[simple.py] PASSED [ 80%] tests/test_update_examples_dir.py::test_cases_update[simple.md] PASSED [ 82%] tests/test_update_examples_dir.py::test_cases_update[python_class.py] PASSED [ 83%] tests/test_update_examples_dir.py::test_cases_update[long_python_lines.py] PASSED [ 84%] tests/test_update_examples_dir.py::test_cases_update[dataclass_indent.md] PASSED [ 86%] tests/test_update_examples_dir.py::test_cases_update[call_twice.md] PASSED [ 87%] example/test_example.py::test_will_error[example/error.md:3-20] XFAIL [ 89%] example/test_example.py::test_insert_print[example/README.md:3-33] PASSED [ 90%] example/test_example.py::test_insert_print[example/README.md:37-40] PASSED [ 91%] example/test_example.py::test_insert_print[example/README.md:44-47] PASSED [ 93%] example/test_example.py::test_insert_print[example/README.md:49-66] PASSED [ 94%] example/test_example.py::test_python_self[example/test_example.py:28-31] PASSED [ 95%] example/test_example.py::test_python_self[example/test_example.py:40-43] PASSED [ 97%] example/test_example.py::test_python_self_change_docstyle[example/test_example.py:28-31] PASSED [ 98%] example/test_example.py::test_python_self_change_docstyle[example/test_example.py:40-43] PASSED [100%] =================================== FAILURES =================================== ___________________________ test_run_example_ok_fail ___________________________ pytester = @pytest.mark.skipif(sys.version_info < (3, 8), reason='traceback different on 3.7') def test_run_example_ok_fail(pytester: pytest.Pytester): pytester.makefile( '.md', # language=Markdown my_file=""" # My file ```py a = 1 b = 2 assert a + b == 3 ``` ```py a = 1 b = 2 assert a + b == 4 ``` """, ) # language=Python pytester.makepyfile( """ from pytest_examples import find_examples, CodeExample, EvalExample import pytest @pytest.mark.parametrize('example', find_examples('.'), ids=str) def test_find_run_examples(example: CodeExample, eval_example: EvalExample): eval_example.run(example, rewrite_assertions=False) """ ) result = pytester.runpytest('-p', 'no:pretty', '-v') result.assert_outcomes(passed=1, failed=1) # assert 'my_file_9_13.py:12: AssertionError' in '\n'.join(result.outlines) > assert result.outlines[-8:-3] == [ '', '> assert a + b == 4', 'E AssertionError', '', 'my_file.md:12: AssertionError', ] E AssertionError: assert ['test_run_ex...arnings.html'] == ['', '> ass...sertionError'] E At index 0 diff: 'test_run_example_ok_fail.py::test_find_run_examples[my_file.md:9-13]' != '' E Full diff: E [ E + 'test_run_example_ok_fail.py::test_find_run_examples[my_file.md:9-13]', E + ' ' E + '/usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/pytest_examples/traceback.py:81: ' E + 'DeprecationWarning: co_lnotab is deprecated, use co_lines instead.',... E E ...Full output truncated (8 lines hidden), use '-vv' to show /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/tests/test_run_examples.py:56: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0 -- /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/.run_venv/bin/python3 cachedir: .pytest_cache rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_run_example_ok_fail0 plugins: examples-0.0.10 collecting ... collected 2 items test_run_example_ok_fail.py::test_find_run_examples[my_file.md:3-7] PASSED [ 50%] test_run_example_ok_fail.py::test_find_run_examples[my_file.md:9-13] FAILED [100%] =================================== FAILURES =================================== ___________________ test_find_run_examples[my_file.md:9-13] ____________________ example = CodeExample(source='a = 1\nb = 2\nassert a + b == 4\n', path=PosixPath('my_file.md'), start_line=9, end_line=13, start...8427cd20-299a-4197-8521-1ba6b4d09832'), test_id='test_run_example_ok_fail.py::test_find_run_examples[my_file.md:9-13]') eval_example = @pytest.mark.parametrize('example', find_examples('.'), ids=str) def test_find_run_examples(example: CodeExample, eval_example: EvalExample): > eval_example.run(example, rewrite_assertions=False) test_run_example_ok_fail.py:6: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > assert a + b == 4 E AssertionError my_file.md:12: AssertionError =============================== warnings summary =============================== test_run_example_ok_fail.py::test_find_run_examples[my_file.md:9-13] /usr/src/RPM/BUILD/python3-module-pytest-examples-0.0.10/pytest_examples/traceback.py:81: DeprecationWarning: co_lnotab is deprecated, use co_lines instead. f_code.co_lnotab, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test_run_example_ok_fail.py::test_find_run_examples[my_file.md:9-13] ==================== 1 failed, 1 passed, 1 warning in 0.01s ==================== ______________________________ test_run_directly _______________________________ x = 4 def div(y): return x / y div(2) > div(0) /usr/src/tmp/pytest-of-builder/pytest-0/test_run_directly0/test_3_6.py:7: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ y = 0 def div(y): > return x / y E ZeroDivisionError: division by zero /usr/src/tmp/pytest-of-builder/pytest-0/test_run_directly0/test_3_6.py:4: ZeroDivisionError During handling of the above exception, another exception occurred: tmp_path = PosixPath('/usr/src/tmp/pytest-of-builder/pytest-0/test_run_directly0') eval_example = @pytest.mark.skipif(sys.version_info < (3, 8), reason='traceback different on 3.7') def test_run_directly(tmp_path, eval_example): # language=Python python_code = """\ x = 4 def div(y): return x / y div(2) div(0)""" # language=Markdown markdown = f"""\ # this is markdown ```py {python_code} ``` """ md_file = tmp_path / 'test.md' md_file.write_text(markdown) example = CodeExample.create(python_code, path=md_file, start_line=3, end_line=6) with pytest.raises(ZeroDivisionError) as exc_info: > eval_example.run(example) tests/test_run_examples.py:243: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pytest_examples/traceback.py:26: in create_example_traceback frames.append(create_custom_frame(frame, example)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ frame = > example = CodeExample(source='x = 4\n\ndef div(y):\n return x / y\n\ndiv(2)\ndiv(0)', path=PosixPath('/usr/src/tmp/pytest-of-... start_index=0, end_index=50, prefix='', indent=0, group=None, test_id='tests/test_run_examples.py::test_run_directly') def create_custom_frame(frame: FrameType, example: CodeExample) -> FrameType: """ Create a new frame that mostly matches `frame` but with a filename from `example` and line number altered to match the example. Taken mostly from https://naleraphael.github.io/blog/posts/devlog_create_a_builtin_frame_object/ With the CodeType creation inspired by https://stackoverflow.com/a/16123158/949890. However, we use `frame.f_lineno` for the line number instead of `f_code.co_firstlineno` as that seems to work. """ import ctypes P_SIZE = ctypes.sizeof(ctypes.c_void_p) IS_X64 = P_SIZE == 8 P_MEM_TYPE = ctypes.POINTER(ctypes.c_ulong if IS_X64 else ctypes.c_uint) ctypes.pythonapi.PyFrame_New.argtypes = ( P_MEM_TYPE, # PyThreadState *tstate P_MEM_TYPE, # PyCodeObject *code ctypes.py_object, # PyObject *globals ctypes.py_object, # PyObject *locals ) ctypes.pythonapi.PyFrame_New.restype = ctypes.py_object # PyFrameObject* ctypes.pythonapi.PyThreadState_Get.argtypes = None ctypes.pythonapi.PyThreadState_Get.restype = P_MEM_TYPE f_code = frame.f_code if sys.version_info >= (3, 11): code = CodeType( f_code.co_argcount, f_code.co_posonlyargcount, f_code.co_kwonlyargcount, f_code.co_nlocals, f_code.co_stacksize, f_code.co_flags, f_code.co_code, f_code.co_consts, f_code.co_names, f_code.co_varnames, str(example.path), f_code.co_name, f_code.co_qualname, frame.f_lineno + example.start_line, > f_code.co_lnotab, f_code.co_exceptiontable, ) E DeprecationWarning: co_lnotab is deprecated, use co_lines instead. pytest_examples/traceback.py:81: DeprecationWarning Summary of Failures ┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ Function ┃ ┃ ┃ ┃ File ┃ Function ┃ Line ┃ Error Line ┃ Error ┃ ┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩ │ tests/test… │ test_run_e… │ 19 │ 56 │ AssertionE… │ │ tests/test… │ test_run_d… │ 220 │ 243 │ Deprecatio… │ └───────────────┴───────────────┴───────────────┴──────────────┴───────────────┘ Results (1.37s): 2 failed 70 passed 1 xfailed INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest', '-vra']' returned non-zero exit status 1. error: Bad exit status from /usr/src/tmp/rpm-tmp.47515 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.47515 (%check) Command exited with non-zero status 1 4.14user 0.69system 0:04.89elapsed 98%CPU (0avgtext+0avgdata 51196maxresident)k 0inputs+0outputs (0major+212402minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-pytest-examples-0.0.10-alt2.src.rpm' failed. Command exited with non-zero status 1 4.19user 1.96system 1:04.96elapsed 9%CPU (0avgtext+0avgdata 128272maxresident)k 44192inputs+0outputs (0major+304438minor)pagefaults 0swaps