<86>Jul 6 08:19:13 userdel[3473047]: delete user 'rooter' <86>Jul 6 08:19:13 userdel[3473047]: removed group 'rooter' owned by 'rooter' <86>Jul 6 08:19:13 userdel[3473047]: removed shadow group 'rooter' owned by 'rooter' <86>Jul 6 08:19:13 groupadd[3473074]: group added to /etc/group: name=rooter, GID=1829 <86>Jul 6 08:19:13 groupadd[3473074]: group added to /etc/gshadow: name=rooter <86>Jul 6 08:19:13 groupadd[3473074]: new group: name=rooter, GID=1829 <86>Jul 6 08:19:13 useradd[3473095]: new user: name=rooter, UID=1829, GID=1829, home=/root, shell=/bin/bash, from=none <86>Jul 6 08:19:13 userdel[3473153]: delete user 'builder' <86>Jul 6 08:19:13 userdel[3473153]: removed group 'builder' owned by 'builder' <86>Jul 6 08:19:13 userdel[3473153]: removed shadow group 'builder' owned by 'builder' <86>Jul 6 08:19:13 groupadd[3473191]: group added to /etc/group: name=builder, GID=1830 <86>Jul 6 08:19:13 groupadd[3473191]: group added to /etc/gshadow: name=builder <86>Jul 6 08:19:13 groupadd[3473191]: new group: name=builder, GID=1830 <86>Jul 6 08:19:13 useradd[3473228]: new user: name=builder, UID=1830, GID=1830, home=/usr/src, shell=/bin/bash, from=none <13>Jul 6 08:19:16 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432033 installed <13>Jul 6 08:19:16 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468406 installed <13>Jul 6 08:19:16 rpmi: libexpat-2.5.0-alt1 sisyphus+346180.200.2.1 1716349845 installed <13>Jul 6 08:19:16 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962878 installed <13>Jul 6 08:19:16 rpmi: libp11-kit-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645575 installed <13>Jul 6 08:19:16 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802618 installed <13>Jul 6 08:19:16 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jul 6 08:19:16 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jul 6 08:19:16 rpmi: ca-certificates-2024.07.01-alt1 sisyphus+351897.100.1.1 1719826350 installed <13>Jul 6 08:19:16 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Jul 6 08:19:16 rpmi: p11-kit-trust-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645575 installed <13>Jul 6 08:19:16 rpmi: libcrypto3-3.1.6-alt1 sisyphus+350419.100.1.1 1717605920 installed <13>Jul 6 08:19:16 rpmi: libssl3-3.1.6-alt1 sisyphus+350419.100.1.1 1717605920 installed <13>Jul 6 08:19:16 rpmi: python3-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jul 6 08:19:17 rpmi: python3-base-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jul 6 08:19:17 rpmi: python3-module-py3dephell-0.1.0-alt2 sisyphus+328191.600.5.1 1693609196 installed <13>Jul 6 08:19:17 rpmi: tests-for-installed-python3-pkgs-0.1.25-alt1 sisyphus+344685.100.1.1 1712595070 installed <13>Jul 6 08:19:17 rpmi: rpm-build-python3-0.1.25-alt1 sisyphus+344685.100.1.1 1712595070 installed <13>Jul 6 08:19:19 rpmi: python3-module-pyasn1-0.6.0-alt1 sisyphus+343691.100.1.1 1711530038 installed <13>Jul 6 08:19:19 rpmi: python3-module-pyasn1-modules-0.4.0-alt1 sisyphus+343691.200.1.1 1711530070 installed <13>Jul 6 08:19:19 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Jul 6 08:19:19 rpmi: python3-module-pkg_resources-1:70.0.0-alt1 sisyphus+349080.100.2.1 1716802752 installed <13>Jul 6 08:19:19 rpmi: python3-module-packaging-24.1-alt1 sisyphus+350717.100.2.1 1718268656 installed <13>Jul 6 08:19:19 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Jul 6 08:19:19 rpmi: python3-module-pytest-8.2.2-alt1 sisyphus+350387.100.2.1 1717665127 installed <13>Jul 6 08:19:19 rpmi: python3-module-urllib3-2:2.2.2-alt1 sisyphus+351112.100.1.1 1718703196 installed <13>Jul 6 08:19:19 rpmi: python3-module-idna-3.7-alt1 sisyphus+345659.100.1.1 1713798399 installed <13>Jul 6 08:19:19 rpmi: python3-module-wcwidth-0.2.13-alt1 sisyphus+341792.100.2.1 1709543329 installed <13>Jul 6 08:19:19 rpmi: python3-module-prettytable-2.1.0-alt1 sisyphus+269172.200.1.1 1617824839 installed <13>Jul 6 08:19:19 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733144 installed <13>Jul 6 08:19:19 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Jul 6 08:19:19 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Jul 6 08:19:19 rpmi: python3-module-cffi-1.16.0-alt1 sisyphus+333513.10400.71.1 1704540321 installed <13>Jul 6 08:19:19 rpmi: python3-module-cryptography-42.0.5-alt1 sisyphus+341498.100.1.1 1709027854 installed <13>Jul 6 08:19:19 rpmi: python3-module-openssl-24.0.0-alt1 sisyphus+340924.100.1.1 1708214977 installed <13>Jul 6 08:19:19 rpmi: python3-module-bson-4.7.3-alt1 sisyphus+350356.100.1.1 1717535026 installed <13>Jul 6 08:19:19 rpmi: python3-module-bottle-1:0.12.25-alt1 sisyphus+316623.100.1.1 1678651894 installed <13>Jul 6 08:19:19 rpmi: python3-module-attrs-23.2.0-alt1 sisyphus+338876.100.1.2 1706109385 installed <13>Jul 6 08:19:19 rpmi: python3-module-service_identity-24.1.0-alt1 sisyphus+338892.100.1.2 1706114425 installed <13>Jul 6 08:19:19 rpmi: python3-module-pymongo-4.7.3-alt1 sisyphus+350356.100.1.1 1717535026 installed <13>Jul 6 08:19:19 rpmi: python3-module-argcomplete-2.0.0-alt1 sisyphus+297796.100.1.1 1649076986 installed <13>Jul 6 08:19:19 rpmi: python3-module-servicemanager-2.0.7-alt1 sisyphus+275998.100.1.1 1624811123 installed <13>Jul 6 08:19:19 rpmi: python3-module-execnet-2.1.1-alt1 sisyphus+344737.100.1.1 1712657795 installed <13>Jul 6 08:19:19 rpmi: libpython3-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jul 6 08:19:19 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jul 6 08:19:19 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jul 6 08:19:19 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jul 6 08:19:20 rpmi: python3-dev-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jul 6 08:19:21 rpmi: python3-module-setuptools-1:70.0.0-alt1 sisyphus+349080.100.2.1 1716802752 installed <13>Jul 6 08:19:21 rpmi: python3-module-pytest-xdist-3.6.1-alt1 sisyphus+347405.100.1.1 1714737453 installed <13>Jul 6 08:19:21 rpmi: python3-module-wheel-0.43.0-alt1 sisyphus+342546.200.3.1 1710867409 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-pytest-rerunfailures-14.0-alt1.nosrc.rpm (w1.gzdio) <13>Jul 6 08:19:22 rpmi: python3-module-system-seed-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683380 installed <13>Jul 6 08:19:22 rpmi: python3-module-filelock-3.15.4-alt1 sisyphus+351430.100.1.1 1719228643 installed <13>Jul 6 08:19:22 rpmi: python3-module-pip-wheel-24.1.1-alt1 sisyphus+351658.100.1.1 1719488128 installed <13>Jul 6 08:19:22 rpmi: python3-module-setuptools-wheel-1:70.0.0-alt1 sisyphus+349080.100.2.1 1716802752 installed <13>Jul 6 08:19:22 rpmi: python3-module-wheel-wheel-0.43.0-alt1 sisyphus+342546.200.3.1 1710867409 installed <13>Jul 6 08:19:22 rpmi: python3-module-system-seed-wheels-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683380 installed <13>Jul 6 08:19:22 rpmi: python3-module-six-1.16.0-alt2 sisyphus+324249.100.1.1 1688484676 installed <13>Jul 6 08:19:22 rpmi: python3-module-platformdirs-4.2.2-alt1 sisyphus+348107.100.1.1 1715765810 installed <13>Jul 6 08:19:22 rpmi: python3-module-distlib-0.3.8-alt1 sisyphus+336560.100.2.1 1702987353 installed <13>Jul 6 08:19:22 rpmi: python3-module-virtualenv-20.26.3-alt1 sisyphus+351438.100.2.1 1719248082 installed <13>Jul 6 08:19:22 rpmi: python3-module-apipkg-3.0.2-alt1 sisyphus+350203.100.1.1 1717353225 installed <13>Jul 6 08:19:22 rpmi: python3-module-py-1.11.0-alt1 sisyphus+295927.100.2.1 1646050822 installed <13>Jul 6 08:19:22 rpmi: python3-module-tox-3.27.1-alt4 sisyphus+345209.200.2.1 1713349545 installed <13>Jul 6 08:19:22 rpmi: python3-module-tox-console-scripts-0.3.2-alt2 sisyphus+340507.100.1.1 1707747510 installed <13>Jul 6 08:19:22 rpmi: python3-module-tox-no-deps-0.2.0-alt3 sisyphus+340514.100.1.1 1707748768 installed <13>Jul 6 08:19:22 rpmi: python3-module-pyproject-installer-0.5.3-alt1 sisyphus+344989.100.3.1 1713974805 installed Installing python3-module-pytest-rerunfailures-14.0-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.44765 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-pytest-rerunfailures-14.0 + echo 'Source #0 (python3-module-pytest-rerunfailures-14.0.tar):' Source #0 (python3-module-pytest-rerunfailures-14.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-pytest-rerunfailures-14.0.tar + cd python3-module-pytest-rerunfailures-14.0 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.44765 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-pytest-rerunfailures-14.0 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /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-rerunfailures-14.0 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/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-rerunfailures-14.0/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: setuptools.build_meta INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : root : running bdist_wheel INFO : root : running build INFO : root : running build_py INFO : root : creating build INFO : root : creating build/lib INFO : root : copying src/pytest_rerunfailures.py -> build/lib INFO : root : running egg_info INFO : root : creating src/pytest_rerunfailures.egg-info INFO : root : writing src/pytest_rerunfailures.egg-info/PKG-INFO INFO : root : writing dependency_links to src/pytest_rerunfailures.egg-info/dependency_links.txt INFO : root : writing entry points to src/pytest_rerunfailures.egg-info/entry_points.txt INFO : root : writing requirements to src/pytest_rerunfailures.egg-info/requires.txt INFO : root : writing top-level names to src/pytest_rerunfailures.egg-info/top_level.txt INFO : root : writing manifest file 'src/pytest_rerunfailures.egg-info/SOURCES.txt' INFO : root : reading manifest file 'src/pytest_rerunfailures.egg-info/SOURCES.txt' INFO : root : reading manifest template 'MANIFEST.in' INFO : root : adding license file 'LICENSE' INFO : root : writing manifest file 'src/pytest_rerunfailures.egg-info/SOURCES.txt' INFO : wheel : installing to build/bdist.linux-i686/wheel INFO : root : running install INFO : root : running install_lib INFO : root : creating build/bdist.linux-i686 INFO : root : creating build/bdist.linux-i686/wheel INFO : root : copying build/lib/pytest_rerunfailures.py -> build/bdist.linux-i686/wheel INFO : root : running install_egg_info INFO : root : Copying src/pytest_rerunfailures.egg-info to build/bdist.linux-i686/wheel/pytest_rerunfailures-14.0-py3.12.egg-info INFO : root : running install_scripts INFO : wheel : creating build/bdist.linux-i686/wheel/pytest_rerunfailures-14.0.dist-info/WHEEL INFO : wheel : creating '/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/dist/.tmp-a0z4g9cj/pytest_rerunfailures-14.0-py3-none-any.whl' and adding 'build/bdist.linux-i686/wheel' to it INFO : wheel : adding 'pytest_rerunfailures.py' INFO : wheel : adding 'pytest_rerunfailures-14.0.dist-info/LICENSE' INFO : wheel : adding 'pytest_rerunfailures-14.0.dist-info/METADATA' INFO : wheel : adding 'pytest_rerunfailures-14.0.dist-info/WHEEL' INFO : wheel : adding 'pytest_rerunfailures-14.0.dist-info/entry_points.txt' INFO : wheel : adding 'pytest_rerunfailures-14.0.dist-info/top_level.txt' INFO : wheel : adding 'pytest_rerunfailures-14.0.dist-info/RECORD' INFO : wheel : removing build/bdist.linux-i686/wheel INFO : pyproject_installer.build_cmd._build : Built wheel: pytest_rerunfailures-14.0-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.44765 + 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-rerunfailures-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd python3-module-pytest-rerunfailures-14.0 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-pytest-rerunfailures-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: pytest_rerunfailures-14.0-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-pytest-rerunfailures-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-rerunfailures-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_rerunfailures-14.0.dist-info/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_rerunfailures-14.0.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_rerunfailures-14.0.dist-info/top_level.txt DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_rerunfailures-14.0.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-rerunfailures-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot/usr/lib/python3/site-packages/pytest_rerunfailures.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot/usr/lib/python3/site-packages/pytest_rerunfailures.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-pytest-rerunfailures-buildroot/usr/lib/python3/site-packages/pytest_rerunfailures.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/__pycache__/pytest_rerunfailures.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/pytest_rerunfailures.cpython-312.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.44541 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-pytest-rerunfailures-14.0 + cat ++ cat ./dist/.wheeltracker + _tox_wheel=pytest_rerunfailures-14.0-py3-none-any.whl + export NO_INTERNET=YES + NO_INTERNET=YES + export PIP_NO_BUILD_ISOLATION=NO + PIP_NO_BUILD_ISOLATION=NO + export PIP_NO_INDEX=YES + PIP_NO_INDEX=YES + export TOXENV=py3 + TOXENV=py3 + export TOX_TESTENV_PASSENV=NO_INTERNET + TOX_TESTENV_PASSENV=NO_INTERNET + /usr/bin/tox.py3 --sitepackages -vvr -s false --no-deps --console-scripts --installpkg=./dist/pytest_rerunfailures-14.0-py3-none-any.whl using tox.ini: /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/tox.ini (pid 3518914) using tox-3.27.1 from /usr/lib/python3/site-packages/tox/__init__.py (pid 3518914) using package '/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/dist/pytest_rerunfailures-14.0-py3-none-any.whl', skipping 'sdist' activity package .tox/.tmp/package/1/pytest_rerunfailures-14.0-py3-none-any.whl links to dist/pytest_rerunfailures-14.0-py3-none-any.whl (/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0) py3 uses /usr/bin/python3 py3 start: getenv /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3 py3 cannot reuse: -r flag py3 create: /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3 setting PATH=/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3519423] /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox$ /usr/bin/python3 -m virtualenv --system-site-packages --no-download --python /usr/bin/python3 py3 created virtual environment CPython3.12.2.final.0-32 in 185ms creator CPython3Posix(dest=/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3, clear=False, no_vcs_ignore=False, global=True) seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/usr/src/.local/share/virtualenv) added seed packages: pip==24.1.1 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator setting PATH=/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3521224] /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0$ /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin/python /usr/lib/python3/site-packages/tox_console_scripts/helper/console_scripts.py Generating script tox into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin Generating script tox-quickstart into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin Generating script virtualenv into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin Generating script wheel into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin Generating script normalizer into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin Generating script py.test into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin Generating script pytest into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin Generating script py3prov into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin Generating script py3req into /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin py3 finish: getenv /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3 after 0.42 seconds py3 start: installpkg /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/.tmp/package/1/pytest_rerunfailures-14.0-py3-none-any.whl py3 inst: /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/.tmp/package/1/pytest_rerunfailures-14.0-py3-none-any.whl write config to /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/.tox-config1 as '6182f42bca709c4d8ac822002314fb883276c983dcab64ce5a94c3dfd3e2ca35 /usr/bin/python3\n3.27.1 1 0 0' setting PATH=/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3521611] /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0$ /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin/python -m pip install --exists-action w .tox/.tmp/package/1/pytest_rerunfailures-14.0-py3-none-any.whl Processing ./.tox/.tmp/package/1/pytest_rerunfailures-14.0-py3-none-any.whl Requirement already satisfied: packaging>=17.1 in /usr/lib/python3/site-packages (from pytest-rerunfailures==14.0) (24.1) Requirement already satisfied: pytest>=7.2 in /usr/lib/python3/site-packages (from pytest-rerunfailures==14.0) (8.2.2) Requirement already satisfied: iniconfig in /usr/lib/python3/site-packages (from pytest>=7.2->pytest-rerunfailures==14.0) (2.0.0) Requirement already satisfied: pluggy<2.0,>=1.5 in /usr/lib/python3/site-packages (from pytest>=7.2->pytest-rerunfailures==14.0) (1.5.0) Installing collected packages: pytest-rerunfailures Successfully installed pytest-rerunfailures-14.0 py3 finish: installpkg /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/.tmp/package/1/pytest_rerunfailures-14.0-py3-none-any.whl after 0.88 seconds py3 start: envreport setting PATH=/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3524080] /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0$ /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin/python -m pip freeze >.tox/py3/log/py3-0.log py3 finish: envreport after 0.29 seconds py3 installed: apipkg==3.0.2,argcomplete==2.0.0,attrs==23.2.0,bottle==0.12.25,cffi==1.16.0,charset-normalizer==3.2.0,cryptography==42.0.5,distlib==0.3.8,execnet==2.1.1,filelock==3.15.4,idna==3.7,iniconfig==2.0.0,packaging==24.1,platformdirs==4.2.2,pluggy==1.5.0,prettytable==2.1.0,py==1.11.0,py3dephell==0.1.0,pyasn1==0.6.0,pyasn1_modules==0.4.0,pycparser==2.21,pymongo==4.7.3,pyOpenSSL==24.0.0,pyproject-installer==0.5.3,pytest==8.2.2,pytest-rerunfailures @ file:///usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/.tmp/package/1/pytest_rerunfailures-14.0-py3-none-any.whl#sha256=f7934fb765b1f32e8141f24168e5691d9949ed094af17a4bc2cb993732c10485,pytest-xdist==3.6.1,requests==2.32.3,service-identity==24.1.0,servicemanager==2.0.7,setuptools==70.0.0,six==1.16.0,tox==3.27.1,tox-console-scripts==0.3.2,tox-no-deps==0.2.0,urllib3==2.2.2,virtualenv==20.26.3,wcwidth==0.2.13,wheel==0.43.0 py3 start: run-test-pre py3 run-test-pre: PYTHONHASHSEED='1492817989' py3 finish: run-test-pre after 0.00 seconds py3 start: run-test py3 run-test: commands[0] | pytest -vra setting PATH=/usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games [3525016] /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0$ /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin/pytest -vra ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0 -- /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin/python cachedir: .tox/py3/.pytest_cache rootdir: /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0 configfile: pyproject.toml plugins: rerunfailures-14.0, xdist-3.6.1 collecting ... collected 109 items tests/test_pytest_rerunfailures.py::test_error_when_run_with_pdb PASSED [ 0%] tests/test_pytest_rerunfailures.py::test_no_rerun_on_pass PASSED [ 1%] tests/test_pytest_rerunfailures.py::test_no_rerun_on_skipif_mark PASSED [ 2%] tests/test_pytest_rerunfailures.py::test_no_rerun_on_skip_call PASSED [ 3%] tests/test_pytest_rerunfailures.py::test_no_rerun_on_xfail_mark PASSED [ 4%] tests/test_pytest_rerunfailures.py::test_no_rerun_on_xfail_call PASSED [ 5%] tests/test_pytest_rerunfailures.py::test_no_rerun_on_xpass PASSED [ 6%] tests/test_pytest_rerunfailures.py::test_rerun_fails_after_consistent_setup_failure PASSED [ 7%] tests/test_pytest_rerunfailures.py::test_rerun_passes_after_temporary_setup_failure PASSED [ 8%] tests/test_pytest_rerunfailures.py::test_rerun_fails_after_consistent_test_failure PASSED [ 9%] tests/test_pytest_rerunfailures.py::test_rerun_passes_after_temporary_test_failure PASSED [ 10%] tests/test_pytest_rerunfailures.py::test_rerun_passes_after_temporary_test_crash PASSED [ 11%] tests/test_pytest_rerunfailures.py::test_rerun_passes_after_temporary_test_failure_with_flaky_mark PASSED [ 11%] tests/test_pytest_rerunfailures.py::test_reruns_if_flaky_mark_is_called_without_options PASSED [ 12%] tests/test_pytest_rerunfailures.py::test_reruns_if_flaky_mark_is_called_with_positional_argument PASSED [ 13%] tests/test_pytest_rerunfailures.py::test_no_extra_test_summary_for_reruns_by_default PASSED [ 14%] tests/test_pytest_rerunfailures.py::test_extra_test_summary_for_reruns PASSED [ 15%] tests/test_pytest_rerunfailures.py::test_verbose PASSED [ 16%] tests/test_pytest_rerunfailures.py::test_no_rerun_on_class_setup_error_without_reruns PASSED [ 17%] tests/test_pytest_rerunfailures.py::test_rerun_on_class_setup_error_with_reruns PASSED [ 18%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay[-1] PASSED [ 19%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay[0] PASSED [ 20%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay[0.0] PASSED [ 21%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay[1] PASSED [ 22%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay[2.5] PASSED [ 22%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay_marker[-1] PASSED [ 23%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay_marker[0] PASSED [ 24%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay_marker[0.0] PASSED [ 25%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay_marker[1] PASSED [ 26%] tests/test_pytest_rerunfailures.py::test_reruns_with_delay_marker[2.5] PASSED [ 27%] tests/test_pytest_rerunfailures.py::test_rerun_on_setup_class_with_error_with_reruns PASSED [ 28%] tests/test_pytest_rerunfailures.py::test_rerun_on_class_scope_fixture_with_error_with_reruns PASSED [ 29%] tests/test_pytest_rerunfailures.py::test_rerun_on_module_fixture_with_reruns PASSED [ 30%] tests/test_pytest_rerunfailures.py::test_rerun_on_session_fixture_with_reruns PASSED [ 31%] tests/test_pytest_rerunfailures.py::test_execution_count_exposed PASSED [ 32%] tests/test_pytest_rerunfailures.py::test_rerun_report PASSED [ 33%] tests/test_pytest_rerunfailures.py::test_pytest_runtest_logfinish_is_called PASSED [ 33%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts0-True] PASSED [ 34%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts1-True] PASSED [ 35%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts2-True] PASSED [ 36%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts3-False] PASSED [ 37%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts4-True] PASSED [ 38%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts5-True] PASSED [ 39%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts6-True] PASSED [ 40%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts7-True] PASSED [ 41%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts8-False] PASSED [ 42%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts9-False] PASSED [ 43%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag[only_rerun_texts10-True] PASSED [ 44%] tests/test_pytest_rerunfailures.py::test_no_rerun_on_strict_xfail_with_only_rerun_flag PASSED [ 44%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag[rerun_except_texts0-True] PASSED [ 45%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag[rerun_except_texts1-True] PASSED [ 46%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag[rerun_except_texts2-True] PASSED [ 47%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag[rerun_except_texts3-False] PASSED [ 48%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag[rerun_except_texts4-True] PASSED [ 49%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag[rerun_except_texts5-False] PASSED [ 50%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag[rerun_except_texts6-True] PASSED [ 51%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag[rerun_except_texts7-False] PASSED [ 52%] tests/test_pytest_rerunfailures.py::test_rerun_except_and_only_rerun[only_rerun_texts0-rerun_except_texts0-True] PASSED [ 53%] tests/test_pytest_rerunfailures.py::test_rerun_except_and_only_rerun[only_rerun_texts1-rerun_except_texts1-True] PASSED [ 54%] tests/test_pytest_rerunfailures.py::test_rerun_except_and_only_rerun[only_rerun_texts2-rerun_except_texts2-False] PASSED [ 55%] tests/test_pytest_rerunfailures.py::test_rerun_except_and_only_rerun[only_rerun_texts3-rerun_except_texts3-False] PASSED [ 55%] tests/test_pytest_rerunfailures.py::test_rerun_except_and_only_rerun[only_rerun_texts4-rerun_except_texts4-False] PASSED [ 56%] tests/test_pytest_rerunfailures.py::test_rerun_except_and_only_rerun[only_rerun_texts5-rerun_except_texts5-False] PASSED [ 57%] tests/test_pytest_rerunfailures.py::test_rerun_except_and_only_rerun[only_rerun_texts6-rerun_except_texts6-False] PASSED [ 58%] tests/test_pytest_rerunfailures.py::test_rerun_except_passes_setup_errors PASSED [ 59%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[True-2_0] PASSED [ 60%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[False-0_0] PASSED [ 61%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[True-2_1] PASSED [ 62%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[False-0_1] PASSED [ 63%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[1-2] PASSED [ 64%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[0-0] PASSED [ 65%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[condition6-2] PASSED [ 66%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[condition7-0] PASSED [ 66%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[condition8-2] PASSED [ 67%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[condition9-0] PASSED [ 68%] tests/test_pytest_rerunfailures.py::test_reruns_with_condition_marker[None-0] PASSED [ 69%] tests/test_pytest_rerunfailures.py::test_reruns_with_string_condition[sys.platform.startswith("non-exists") == False-2] PASSED [ 70%] tests/test_pytest_rerunfailures.py::test_reruns_with_string_condition[os.getpid() != -1-2] PASSED [ 71%] tests/test_pytest_rerunfailures.py::test_reruns_with_string_condition_with_global_var PASSED [ 72%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[AssertionError-None-True] PASSED [ 73%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[AssertionError: ERR-None-True] PASSED [ 74%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[marker_only_rerun2-None-True] PASSED [ 75%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[marker_only_rerun3-None-False] PASSED [ 76%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[ValueError-None-False] PASSED [ 77%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[marker_only_rerun5-None-False] PASSED [ 77%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[marker_only_rerun6-None-True] PASSED [ 78%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[AssertionError-ValueError-True] PASSED [ 79%] tests/test_pytest_rerunfailures.py::test_only_rerun_flag_in_flaky_marker[ValueError-AssertionError-False] PASSED [ 80%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[AssertionError-None-AssertionError-False] PASSED [ 81%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[AssertionError: ERR-None-AssertionError-False] PASSED [ 82%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[marker_rerun_except2-None-AssertionError-False] PASSED [ 83%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[marker_rerun_except3-None-AssertionError-True] PASSED [ 84%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[ValueError-None-AssertionError-True] PASSED [ 85%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[marker_rerun_except5-None-AssertionError-True] PASSED [ 86%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[marker_rerun_except6-None-AssertionError-True] PASSED [ 87%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[marker_rerun_except7-None-AssertionError-False] PASSED [ 88%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[AssertionError-ValueError-AssertionError-False] PASSED [ 88%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[ValueError-AssertionError-AssertionError-True] PASSED [ 89%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[CustomFailure-None-CustomFailure-False] PASSED [ 90%] tests/test_pytest_rerunfailures.py::test_rerun_except_flag_in_flaky_marker[CustomFailure-None-AssertionError-True] PASSED [ 91%] tests/test_pytest_rerunfailures.py::test_ini_file_parameters PASSED [ 92%] tests/test_pytest_rerunfailures.py::test_ini_file_parameters_override PASSED [ 93%] tests/test_pytest_rerunfailures.py::test_run_session_teardown_once_after_reruns FAILED [ 94%] tests/test_pytest_rerunfailures.py::test_exception_matches_rerun_except_query FAILED [ 95%] tests/test_pytest_rerunfailures.py::test_exception_not_match_rerun_except_query FAILED [ 96%] tests/test_pytest_rerunfailures.py::test_exception_matches_only_rerun_query FAILED [ 97%] tests/test_pytest_rerunfailures.py::test_exception_not_match_only_rerun_query PASSED [ 98%] tests/test_pytest_rerunfailures.py::test_exception_match_rerun_except_in_dual_query PASSED [ 99%] tests/test_pytest_rerunfailures.py::test_exception_match_only_rerun_in_dual_query FAILED [100%] =================================== FAILURES =================================== _________________ test_run_session_teardown_once_after_reruns __________________ testdir = def test_run_session_teardown_once_after_reruns(testdir): testdir.makepyfile( """ import logging import pytest from unittest import TestCase @pytest.fixture(scope='session', autouse=True) def session_fixture(): logging.info('session setup') yield logging.info('session teardown') @pytest.fixture(scope='class', autouse=True) def class_fixture(): logging.info('class setup') yield logging.info('class teardown') @pytest.fixture(scope='function', autouse=True) def function_fixture(): logging.info('function setup') yield logging.info('function teardown') @pytest.fixture(scope='function') def function_skip_fixture(): logging.info('skip fixture setup') pytest.skip('some reason') yield logging.info('skip fixture teardown') @pytest.fixture(scope='function') def function_setup_fail_fixture(): logging.info('fail fixture setup') assert False yield logging.info('fail fixture teardown') class TestFirstPassLastFail: @staticmethod def test_1(): logging.info("TestFirstPassLastFail 1") @staticmethod def test_2(): logging.info("TestFirstPassLastFail 2") assert False class TestFirstFailLastPass: @staticmethod def test_1(): logging.info("TestFirstFailLastPass 1") assert False @staticmethod def test_2(): logging.info("TestFirstFailLastPass 2") class TestSkipFirst: @staticmethod @pytest.mark.skipif(True, reason='Some reason') def test_1(): logging.info("TestSkipFirst 1") assert False @staticmethod def test_2(): logging.info("TestSkipFirst 2") assert False class TestSkipLast: @staticmethod def test_1(): logging.info("TestSkipLast 1") assert False @staticmethod @pytest.mark.skipif(True, reason='Some reason') def test_2(): logging.info("TestSkipLast 2") assert False class TestSkipFixture: @staticmethod def test_1(function_skip_fixture): logging.info("TestSkipFixture 1") class TestSetupFailed: @staticmethod def test_1(function_setup_fail_fixture): logging.info("TestSetupFailed 1") class TestTestCaseFailFirstFailLast(TestCase): @staticmethod def test_1(): logging.info("TestTestCaseFailFirstFailLast 1") assert False @staticmethod def test_2(): logging.info("TestTestCaseFailFirstFailLast 2") assert False class TestTestCaseSkipFirst(TestCase): @staticmethod @pytest.mark.skipif(True, reason='Some reason') def test_1(): logging.info("TestTestCaseSkipFirst 1") assert False @staticmethod def test_2(): logging.info("TestTestCaseSkipFirst 2") assert False class TestTestCaseSkipLast(TestCase): @staticmethod def test_1(): logging.info("TestTestCaseSkipLast 1") assert False @staticmethod @pytest.mark.skipif(True, reason="Some reason") def test_2(): logging.info("TestTestCaseSkipLast 2") assert False""" ) import logging logging.info = mock.MagicMock() result = testdir.runpytest("--reruns", "2") expected_calls = [ mock.call("session setup"), # TestFirstPassLastFail mock.call("class setup"), mock.call("function setup"), mock.call("TestFirstPassLastFail 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestFirstPassLastFail 2"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestFirstPassLastFail 2"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestFirstPassLastFail 2"), mock.call("function teardown"), mock.call("class teardown"), # TestFirstFailLastPass mock.call("class setup"), mock.call("function setup"), mock.call("TestFirstFailLastPass 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestFirstFailLastPass 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestFirstFailLastPass 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestFirstFailLastPass 2"), mock.call("function teardown"), mock.call("class teardown"), # TestSkipFirst mock.call("class setup"), mock.call("function setup"), mock.call("TestSkipFirst 2"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestSkipFirst 2"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestSkipFirst 2"), mock.call("function teardown"), mock.call("class teardown"), # TestSkipLast mock.call("class setup"), mock.call("function setup"), mock.call("TestSkipLast 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestSkipLast 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestSkipLast 1"), mock.call("function teardown"), mock.call("class teardown"), # TestSkipFixture mock.call("class setup"), mock.call("function setup"), mock.call("skip fixture setup"), mock.call("function teardown"), mock.call("class teardown"), # TestSetupFailed mock.call("class setup"), mock.call("function setup"), mock.call("fail fixture setup"), mock.call("function teardown"), mock.call("function setup"), mock.call("fail fixture setup"), mock.call("function teardown"), mock.call("function setup"), mock.call("fail fixture setup"), mock.call("function teardown"), mock.call("class teardown"), # TestTestCaseFailFirstFailLast mock.call("class setup"), mock.call("function setup"), mock.call("TestTestCaseFailFirstFailLast 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseFailFirstFailLast 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseFailFirstFailLast 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseFailFirstFailLast 2"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseFailFirstFailLast 2"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseFailFirstFailLast 2"), mock.call("function teardown"), mock.call("class teardown"), # TestTestCaseSkipFirst mock.call("class setup"), mock.call("function setup"), mock.call("TestTestCaseSkipFirst 2"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseSkipFirst 2"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseSkipFirst 2"), mock.call("function teardown"), mock.call("class teardown"), # TestTestCaseSkipLast mock.call("class setup"), mock.call("function setup"), mock.call("TestTestCaseSkipLast 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseSkipLast 1"), mock.call("function teardown"), mock.call("function setup"), mock.call("TestTestCaseSkipLast 1"), mock.call("function teardown"), mock.call("class teardown"), mock.call("session teardown"), ] > logging.info.assert_has_calls(expected_calls, any_order=False) /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/tests/test_pytest_rerunfailures.py:1084: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = calls = [call('session setup'), call('class setup'), call('function setup'), call('TestFirstPassLastFail 1'), call('function teardown'), call('function setup'), ...] any_order = False def assert_has_calls(self, calls, any_order=False): """assert the mock has been called with the specified calls. The `mock_calls` list is checked for the calls. If `any_order` is False (the default) then the calls must be sequential. There can be extra calls before or after the specified calls. If `any_order` is True then the calls can be in any order, but they must all appear in `mock_calls`.""" expected = [self._call_matcher(c) for c in calls] cause = next((e for e in expected if isinstance(e, Exception)), None) all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls) if not any_order: if expected not in all_calls: if cause is None: problem = 'Calls not found.' else: problem = ('Error processing expected calls.\n' 'Errors: {}').format( [e if isinstance(e, Exception) else None for e in expected]) > raise AssertionError( f'{problem}\n' f'Expected: {_CallList(calls)}' f'{self._calls_repr(prefix=" Actual").rstrip(".")}' ) from cause E AssertionError: Calls not found. E Expected: [call('session setup'), E call('class setup'), E call('function setup'), E call('TestFirstPassLastFail 1'), E call('function teardown'), E call('function setup'), E call('TestFirstPassLastFail 2'), E call('function teardown'), E call('function setup'), E call('TestFirstPassLastFail 2'), E call('function teardown'), E call('function setup'), E call('TestFirstPassLastFail 2'), E call('function teardown'), E call('class teardown'), E call('class setup'), E call('function setup'), E call('TestFirstFailLastPass 1'), E call('function teardown'), E call('function setup'), E call('TestFirstFailLastPass 1'), E call('function teardown'), E call('function setup'), E call('TestFirstFailLastPass 1'), E call('function teardown'), E call('function setup'), E call('TestFirstFailLastPass 2'), E call('function teardown'), E call('class teardown'), E call('class setup'), E call('function setup'), E call('TestSkipFirst 2'), E call('function teardown'), E call('function setup'), E call('TestSkipFirst 2'), E call('function teardown'), E call('function setup'), E call('TestSkipFirst 2'), E call('function teardown'), E call('class teardown'), E call('class setup'), E call('function setup'), E call('TestSkipLast 1'), E call('function teardown'), E call('function setup'), E call('TestSkipLast 1'), E call('function teardown'), E call('function setup'), E call('TestSkipLast 1'), E call('function teardown'), E call('class teardown'), E call('class setup'), E call('function setup'), E call('skip fixture setup'), E call('function teardown'), E call('class teardown'), E call('class setup'), E call('function setup'), E call('fail fixture setup'), E call('function teardown'), E call('function setup'), E call('fail fixture setup'), E call('function teardown'), E call('function setup'), E call('fail fixture setup'), E call('function teardown'), E call('class teardown'), E call('class setup'), E call('function setup'), E call('TestTestCaseFailFirstFailLast 1'), E call('function teardown'), E call('function setup'), E call('TestTestCaseFailFirstFailLast 1'), E call('function teardown'), E call('function setup'), E call('TestTestCaseFailFirstFailLast 1'), E call('function teardown'), E call('function setup'), E call('TestTestCaseFailFirstFailLast 2'), E call('function teardown'), E call('function setup'), E call('TestTestCaseFailFirstFailLast 2'), E call('function teardown'), E call('function setup'), E call('TestTestCaseFailFirstFailLast 2'), E call('function teardown'), E call('class teardown'), E call('class setup'), E call('function setup'), E call('TestTestCaseSkipFirst 2'), E call('function teardown'), E call('function setup'), E call('TestTestCaseSkipFirst 2'), E call('function teardown'), E call('function setup'), E call('TestTestCaseSkipFirst 2'), E call('function teardown'), E call('class teardown'), E call('class setup'), E call('function setup'), E call('TestTestCaseSkipLast 1'), E call('function teardown'), E call('function setup'), E call('TestTestCaseSkipLast 1'), E call('function teardown'), E call('function setup'), E call('TestTestCaseSkipLast 1'), E call('function teardown'), E call('class teardown'), E call('session teardown')] E Actual: [call('session setup'), E call('class setup'), E call('function setup'), E call('TestFirstPassLastFail 1'), E call('function teardown'), E call('function setup'), E call('TestFirstPassLastFail 2'), E call('function teardown'), E call('function setup'), E call('TestFirstPassLastFail 2'), E call('function teardown'), E call('function setup'), E call('TestFirstPassLastFail 2'), E call('function teardown'), E call('function setup'), E call('TestFirstFailLastPass 1'), E call('function teardown'), E call('function setup'), E call('TestFirstFailLastPass 1'), E call('function teardown'), E call('function setup'), E call('TestFirstFailLastPass 1'), E call('function teardown'), E call('function setup'), E call('TestFirstFailLastPass 2'), E call('function teardown'), E call('function setup'), E call('TestSkipFirst 2'), E call('function teardown'), E call('function setup'), E call('TestSkipFirst 2'), E call('function teardown'), E call('function setup'), E call('TestSkipFirst 2'), E call('function teardown'), E call('function setup'), E call('TestSkipLast 1'), E call('function teardown'), E call('function setup'), E call('TestSkipLast 1'), E call('function teardown'), E call('function setup'), E call('TestSkipLast 1'), E call('function teardown'), E call('function setup'), E call('skip fixture setup'), E call('function teardown'), E call('function setup'), E call('fail fixture setup'), E call('function teardown'), E call('function setup'), E call('fail fixture setup'), E call('function teardown'), E call('function setup'), E call('fail fixture setup'), E call('function teardown'), E call('function setup'), E call('TestTestCaseFailFirstFailLast 1'), E call('function teardown'), E call('function setup'), E call('function teardown'), E call('function setup'), E call('function teardown'), E call('function setup'), E call('TestTestCaseFailFirstFailLast 2'), E call('function teardown'), E call('function setup'), E call('function teardown'), E call('function setup'), E call('function teardown'), E call('function setup'), E call('TestTestCaseSkipFirst 2'), E call('function teardown'), E call('function setup'), E call('function teardown'), E call('function setup'), E call('function teardown'), E call('function setup'), E call('TestTestCaseSkipLast 1'), E call('function teardown'), E call('function setup'), E call('function teardown'), E call('function setup'), E call('function teardown')] /usr/lib/python3.12/unittest/mock.py:981: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0 rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_run_session_teardown_once_after_reruns0 plugins: rerunfailures-14.0, xdist-3.6.1 collected 16 items test_run_session_teardown_once_after_reruns.py .RRFRRF.sRRFRRFssRRERRFRR [ 75%] FsRRFRRFs [100%] ==================================== ERRORS ==================================== ___________________ ERROR at setup of TestSetupFailed.test_1 ___________________ @pytest.fixture(scope='function') def function_setup_fail_fixture(): logging.info('fail fixture setup') > assert False E assert False test_run_session_teardown_once_after_reruns.py:34: AssertionError =================================== FAILURES =================================== _________________________ TestFirstPassLastFail.test_2 _________________________ @staticmethod def test_2(): logging.info("TestFirstPassLastFail 2") > assert False E assert False test_run_session_teardown_once_after_reruns.py:47: AssertionError _________________________ TestFirstFailLastPass.test_1 _________________________ @staticmethod def test_1(): logging.info("TestFirstFailLastPass 1") > assert False E assert False test_run_session_teardown_once_after_reruns.py:54: AssertionError _____________________________ TestSkipFirst.test_2 _____________________________ @staticmethod def test_2(): logging.info("TestSkipFirst 2") > assert False E assert False test_run_session_teardown_once_after_reruns.py:70: AssertionError _____________________________ TestSkipLast.test_1 ______________________________ @staticmethod def test_1(): logging.info("TestSkipLast 1") > assert False E assert False test_run_session_teardown_once_after_reruns.py:76: AssertionError _____________________ TestTestCaseFailFirstFailLast.test_1 _____________________ cls = func = . at 0xf4d78708>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/site-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/site-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/site-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/site-packages/pluggy/_manager.py:480: in traced_hookexec return outcome.get_result() /usr/lib/python3/site-packages/pluggy/_manager.py:477: in lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult) /usr/lib/python3/site-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/site-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() /usr/lib/python3/site-packages/_pytest/unraisableexception.py:65: in unraisable_exception_runtest_hook yield /usr/lib/python3/site-packages/_pytest/logging.py:850: in pytest_runtest_call yield from self._runtest_for(item, "call") /usr/lib/python3/site-packages/_pytest/logging.py:833: in _runtest_for yield /usr/lib/python3/site-packages/_pytest/capture.py:878: in pytest_runtest_call return (yield) /usr/lib/python3/site-packages/_pytest/skipping.py:257: in pytest_runtest_call return (yield) /usr/lib/python3/site-packages/_pytest/runner.py:183: in pytest_runtest_call raise e /usr/lib/python3/site-packages/_pytest/runner.py:173: in pytest_runtest_call item.runtest() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self) -> None: from _pytest.debugging import maybe_wrap_pytest_function_for_tracing testcase = self.instance > assert testcase is not None E AssertionError /usr/lib/python3/site-packages/_pytest/unittest.py:319: AssertionError _____________________ TestTestCaseFailFirstFailLast.test_2 _____________________ cls = func = . at 0xf43cd938>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/site-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/site-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/site-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/site-packages/pluggy/_manager.py:480: in traced_hookexec return outcome.get_result() /usr/lib/python3/site-packages/pluggy/_manager.py:477: in lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult) /usr/lib/python3/site-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/site-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() /usr/lib/python3/site-packages/_pytest/unraisableexception.py:65: in unraisable_exception_runtest_hook yield /usr/lib/python3/site-packages/_pytest/logging.py:850: in pytest_runtest_call yield from self._runtest_for(item, "call") /usr/lib/python3/site-packages/_pytest/logging.py:833: in _runtest_for yield /usr/lib/python3/site-packages/_pytest/capture.py:878: in pytest_runtest_call return (yield) /usr/lib/python3/site-packages/_pytest/skipping.py:257: in pytest_runtest_call return (yield) /usr/lib/python3/site-packages/_pytest/runner.py:183: in pytest_runtest_call raise e /usr/lib/python3/site-packages/_pytest/runner.py:173: in pytest_runtest_call item.runtest() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self) -> None: from _pytest.debugging import maybe_wrap_pytest_function_for_tracing testcase = self.instance > assert testcase is not None E AssertionError /usr/lib/python3/site-packages/_pytest/unittest.py:319: AssertionError _________________________ TestTestCaseSkipFirst.test_2 _________________________ cls = func = . at 0xf3946e88>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/site-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/site-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/site-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/site-packages/pluggy/_manager.py:480: in traced_hookexec return outcome.get_result() /usr/lib/python3/site-packages/pluggy/_manager.py:477: in lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult) /usr/lib/python3/site-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/site-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() /usr/lib/python3/site-packages/_pytest/unraisableexception.py:65: in unraisable_exception_runtest_hook yield /usr/lib/python3/site-packages/_pytest/logging.py:850: in pytest_runtest_call yield from self._runtest_for(item, "call") /usr/lib/python3/site-packages/_pytest/logging.py:833: in _runtest_for yield /usr/lib/python3/site-packages/_pytest/capture.py:878: in pytest_runtest_call return (yield) /usr/lib/python3/site-packages/_pytest/skipping.py:257: in pytest_runtest_call return (yield) /usr/lib/python3/site-packages/_pytest/runner.py:183: in pytest_runtest_call raise e /usr/lib/python3/site-packages/_pytest/runner.py:173: in pytest_runtest_call item.runtest() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self) -> None: from _pytest.debugging import maybe_wrap_pytest_function_for_tracing testcase = self.instance > assert testcase is not None E AssertionError /usr/lib/python3/site-packages/_pytest/unittest.py:319: AssertionError _________________________ TestTestCaseSkipLast.test_1 __________________________ cls = func = . at 0xf4366d98>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/site-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/site-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/site-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/site-packages/pluggy/_manager.py:480: in traced_hookexec return outcome.get_result() /usr/lib/python3/site-packages/pluggy/_manager.py:477: in lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult) /usr/lib/python3/site-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/site-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/site-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() /usr/lib/python3/site-packages/_pytest/unraisableexception.py:65: in unraisable_exception_runtest_hook yield /usr/lib/python3/site-packages/_pytest/logging.py:850: in pytest_runtest_call yield from self._runtest_for(item, "call") /usr/lib/python3/site-packages/_pytest/logging.py:833: in _runtest_for yield /usr/lib/python3/site-packages/_pytest/capture.py:878: in pytest_runtest_call return (yield) /usr/lib/python3/site-packages/_pytest/skipping.py:257: in pytest_runtest_call return (yield) /usr/lib/python3/site-packages/_pytest/runner.py:183: in pytest_runtest_call raise e /usr/lib/python3/site-packages/_pytest/runner.py:173: in pytest_runtest_call item.runtest() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self) -> None: from _pytest.debugging import maybe_wrap_pytest_function_for_tracing testcase = self.instance > assert testcase is not None E AssertionError /usr/lib/python3/site-packages/_pytest/unittest.py:319: AssertionError =========================== short test summary info ============================ FAILED test_run_session_teardown_once_after_reruns.py::TestFirstPassLastFail::test_2 FAILED test_run_session_teardown_once_after_reruns.py::TestFirstFailLastPass::test_1 FAILED test_run_session_teardown_once_after_reruns.py::TestSkipFirst::test_2 FAILED test_run_session_teardown_once_after_reruns.py::TestSkipLast::test_1 FAILED test_run_session_teardown_once_after_reruns.py::TestTestCaseFailFirstFailLast::test_1 FAILED test_run_session_teardown_once_after_reruns.py::TestTestCaseFailFirstFailLast::test_2 FAILED test_run_session_teardown_once_after_reruns.py::TestTestCaseSkipFirst::test_2 FAILED test_run_session_teardown_once_after_reruns.py::TestTestCaseSkipLast::test_1 ERROR test_run_session_teardown_once_after_reruns.py::TestSetupFailed::test_1 ========== 8 failed, 2 passed, 5 skipped, 1 error, 18 rerun in 0.60s =========== __________________ test_exception_matches_rerun_except_query ___________________ testdir = def test_exception_matches_rerun_except_query(testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="session", autouse=True) def session_fixture(): print("session setup") yield "session" print("session teardown") @pytest.fixture(scope="package", autouse=True) def package_fixture(): print("package setup") yield "package" print("package teardown") @pytest.fixture(scope="module", autouse=True) def module_fixture(): print("module setup") yield "module" print("module teardown") @pytest.fixture(scope="class", autouse=True) def class_fixture(): print("class setup") yield "class" print("class teardown") @pytest.fixture(scope="function", autouse=True) def function_fixture(): print("function setup") yield "function" print("function teardown") @pytest.mark.flaky(reruns=1, rerun_except=["AssertionError"]) class TestStuff: def test_1(self): raise AssertionError("fail") def test_2(self): assert False """ ) result = testdir.runpytest() assert_outcomes(result, passed=0, failed=2, rerun=1) > result.stdout.fnmatch_lines("session teardown") E Failed: nomatch: 'session teardown' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0' E and: 'rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_exception_matches_rerun_except_query0' E and: 'plugins: rerunfailures-14.0, xdist-3.6.1' E and: 'collected 2 items' E and: '' E and: 'test_exception_matches_rerun_except_query.py FR [100%]F [100%]' E and: '' E and: '=================================== FAILURES ===================================' E and: '_______________________________ TestStuff.test_1 _______________________________' E and: '' E and: 'self = ' E and: '' E and: ' def test_1(self):' E and: '> raise AssertionError("fail")' E and: 'E AssertionError: fail' E and: '' E and: 'test_exception_matches_rerun_except_query.py:36: AssertionError' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'session setup' E and: 'package setup' E and: 'module setup' E and: 'class setup' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '_______________________________ TestStuff.test_2 _______________________________' E and: '' E and: 'self = ' E and: '' E and: ' def test_2(self):' E and: '> assert False' E and: 'E assert False' E and: '' E and: 'test_exception_matches_rerun_except_query.py:39: AssertionError' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '=========================== short test summary info ============================' E and: 'FAILED test_exception_matches_rerun_except_query.py::TestStuff::test_1 - Asse...' E and: 'FAILED test_exception_matches_rerun_except_query.py::TestStuff::test_2 - asse...' E and: '========================== 2 failed, 1 rerun in 0.02s ==========================' E remains unmatched: 'session teardown' /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/tests/test_pytest_rerunfailures.py:1135: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0 rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_exception_matches_rerun_except_query0 plugins: rerunfailures-14.0, xdist-3.6.1 collected 2 items test_exception_matches_rerun_except_query.py FR [100%]F [100%] =================================== FAILURES =================================== _______________________________ TestStuff.test_1 _______________________________ self = def test_1(self): > raise AssertionError("fail") E AssertionError: fail test_exception_matches_rerun_except_query.py:36: AssertionError ---------------------------- Captured stdout setup ----------------------------- session setup package setup module setup class setup function setup --------------------------- Captured stdout teardown --------------------------- function teardown _______________________________ TestStuff.test_2 _______________________________ self = def test_2(self): > assert False E assert False test_exception_matches_rerun_except_query.py:39: AssertionError ---------------------------- Captured stdout setup ----------------------------- function setup --------------------------- Captured stdout teardown --------------------------- function teardown ---------------------------- Captured stdout setup ----------------------------- function setup --------------------------- Captured stdout teardown --------------------------- function teardown --------------------------- Captured stdout teardown --------------------------- function teardown =========================== short test summary info ============================ FAILED test_exception_matches_rerun_except_query.py::TestStuff::test_1 - Asse... FAILED test_exception_matches_rerun_except_query.py::TestStuff::test_2 - asse... ========================== 2 failed, 1 rerun in 0.02s ========================== _________________ test_exception_not_match_rerun_except_query __________________ testdir = def test_exception_not_match_rerun_except_query(testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="session", autouse=True) def session_fixture(): print("session setup") yield "session" print("session teardown") @pytest.fixture(scope="function", autouse=True) def function_fixture(): print("function setup") yield "function" print("function teardown") @pytest.mark.flaky(reruns=1, rerun_except="AssertionError") def test_1(session_fixture, function_fixture): raise ValueError("value") """ ) result = testdir.runpytest() assert_outcomes(result, passed=0, failed=1, rerun=1) > result.stdout.fnmatch_lines("session teardown") E Failed: nomatch: 'session teardown' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0' E and: 'rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_exception_not_match_rerun_except_query0' E and: 'plugins: rerunfailures-14.0, xdist-3.6.1' E and: 'collected 1 item' E and: '' E and: 'test_exception_not_match_rerun_except_query.py R [100%]F [100%]' E and: '' E and: '=================================== FAILURES ===================================' E and: '____________________________________ test_1 ____________________________________' E and: '' E and: "session_fixture = 'session', function_fixture = 'function'" E and: '' E and: ' @pytest.mark.flaky(reruns=1, rerun_except="AssertionError")' E and: ' def test_1(session_fixture, function_fixture):' E and: '> raise ValueError("value")' E and: 'E ValueError: value' E and: '' E and: 'test_exception_not_match_rerun_except_query.py:17: ValueError' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'session setup' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '=========================== short test summary info ============================' E and: 'FAILED test_exception_not_match_rerun_except_query.py::test_1 - ValueError: v...' E and: '========================== 1 failed, 1 rerun in 0.01s ==========================' E remains unmatched: 'session teardown' /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/tests/test_pytest_rerunfailures.py:1166: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0 rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_exception_not_match_rerun_except_query0 plugins: rerunfailures-14.0, xdist-3.6.1 collected 1 item test_exception_not_match_rerun_except_query.py R [100%]F [100%] =================================== FAILURES =================================== ____________________________________ test_1 ____________________________________ session_fixture = 'session', function_fixture = 'function' @pytest.mark.flaky(reruns=1, rerun_except="AssertionError") def test_1(session_fixture, function_fixture): > raise ValueError("value") E ValueError: value test_exception_not_match_rerun_except_query.py:17: ValueError ---------------------------- Captured stdout setup ----------------------------- session setup function setup --------------------------- Captured stdout teardown --------------------------- function teardown ---------------------------- Captured stdout setup ----------------------------- function setup --------------------------- Captured stdout teardown --------------------------- function teardown --------------------------- Captured stdout teardown --------------------------- function teardown =========================== short test summary info ============================ FAILED test_exception_not_match_rerun_except_query.py::test_1 - ValueError: v... ========================== 1 failed, 1 rerun in 0.01s ========================== ___________________ test_exception_matches_only_rerun_query ____________________ testdir = def test_exception_matches_only_rerun_query(testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="session", autouse=True) def session_fixture(): print("session setup") yield "session" print("session teardown") @pytest.fixture(scope="function", autouse=True) def function_fixture(): print("function setup") yield "function" print("function teardown") @pytest.mark.flaky(reruns=1, only_rerun=["AssertionError"]) def test_1(session_fixture, function_fixture): raise AssertionError("fail") """ ) result = testdir.runpytest() assert_outcomes(result, passed=0, failed=1, rerun=1) > result.stdout.fnmatch_lines("session teardown") E Failed: nomatch: 'session teardown' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0' E and: 'rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_exception_matches_only_rerun_query0' E and: 'plugins: rerunfailures-14.0, xdist-3.6.1' E and: 'collected 1 item' E and: '' E and: 'test_exception_matches_only_rerun_query.py R [100%]F [100%]' E and: '' E and: '=================================== FAILURES ===================================' E and: '____________________________________ test_1 ____________________________________' E and: '' E and: "session_fixture = 'session', function_fixture = 'function'" E and: '' E and: ' @pytest.mark.flaky(reruns=1, only_rerun=["AssertionError"])' E and: ' def test_1(session_fixture, function_fixture):' E and: '> raise AssertionError("fail")' E and: 'E AssertionError: fail' E and: '' E and: 'test_exception_matches_only_rerun_query.py:17: AssertionError' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'session setup' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '=========================== short test summary info ============================' E and: 'FAILED test_exception_matches_only_rerun_query.py::test_1 - AssertionError: fail' E and: '========================== 1 failed, 1 rerun in 0.02s ==========================' E remains unmatched: 'session teardown' /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/tests/test_pytest_rerunfailures.py:1193: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0 rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_exception_matches_only_rerun_query0 plugins: rerunfailures-14.0, xdist-3.6.1 collected 1 item test_exception_matches_only_rerun_query.py R [100%]F [100%] =================================== FAILURES =================================== ____________________________________ test_1 ____________________________________ session_fixture = 'session', function_fixture = 'function' @pytest.mark.flaky(reruns=1, only_rerun=["AssertionError"]) def test_1(session_fixture, function_fixture): > raise AssertionError("fail") E AssertionError: fail test_exception_matches_only_rerun_query.py:17: AssertionError ---------------------------- Captured stdout setup ----------------------------- session setup function setup --------------------------- Captured stdout teardown --------------------------- function teardown ---------------------------- Captured stdout setup ----------------------------- function setup --------------------------- Captured stdout teardown --------------------------- function teardown --------------------------- Captured stdout teardown --------------------------- function teardown =========================== short test summary info ============================ FAILED test_exception_matches_only_rerun_query.py::test_1 - AssertionError: fail ========================== 1 failed, 1 rerun in 0.02s ========================== ________________ test_exception_match_only_rerun_in_dual_query _________________ testdir = def test_exception_match_only_rerun_in_dual_query(testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="session", autouse=True) def session_fixture(): print("session setup") yield "session" print("session teardown") @pytest.fixture(scope="function", autouse=True) def function_fixture(): print("function setup") yield "function" print("function teardown") @pytest.mark.flaky(reruns=1, rerun_except=["Not"], only_rerun=["Exception"]) def test_1(session_fixture, function_fixture): raise Exception("fail") """ ) result = testdir.runpytest() assert_outcomes(result, passed=0, failed=1, rerun=1) > result.stdout.fnmatch_lines("session teardown") E Failed: nomatch: 'session teardown' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0' E and: 'rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_exception_match_only_rerun_in_dual_query0' E and: 'plugins: rerunfailures-14.0, xdist-3.6.1' E and: 'collected 1 item' E and: '' E and: 'test_exception_match_only_rerun_in_dual_query.py R [100%]F [100%]' E and: '' E and: '=================================== FAILURES ===================================' E and: '____________________________________ test_1 ____________________________________' E and: '' E and: "session_fixture = 'session', function_fixture = 'function'" E and: '' E and: ' @pytest.mark.flaky(reruns=1, rerun_except=["Not"], only_rerun=["Exception"])' E and: ' def test_1(session_fixture, function_fixture):' E and: '> raise Exception("fail")' E and: 'E Exception: fail' E and: '' E and: 'test_exception_match_only_rerun_in_dual_query.py:17: Exception' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'session setup' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '=========================== short test summary info ============================' E and: 'FAILED test_exception_match_only_rerun_in_dual_query.py::test_1 - Exception: ...' E and: '========================== 1 failed, 1 rerun in 0.01s ==========================' E remains unmatched: 'session teardown' /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/tests/test_pytest_rerunfailures.py:1274: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.2.2, pluggy-1.5.0 rootdir: /usr/src/tmp/pytest-of-builder/pytest-0/test_exception_match_only_rerun_in_dual_query0 plugins: rerunfailures-14.0, xdist-3.6.1 collected 1 item test_exception_match_only_rerun_in_dual_query.py R [100%]F [100%] =================================== FAILURES =================================== ____________________________________ test_1 ____________________________________ session_fixture = 'session', function_fixture = 'function' @pytest.mark.flaky(reruns=1, rerun_except=["Not"], only_rerun=["Exception"]) def test_1(session_fixture, function_fixture): > raise Exception("fail") E Exception: fail test_exception_match_only_rerun_in_dual_query.py:17: Exception ---------------------------- Captured stdout setup ----------------------------- session setup function setup --------------------------- Captured stdout teardown --------------------------- function teardown ---------------------------- Captured stdout setup ----------------------------- function setup --------------------------- Captured stdout teardown --------------------------- function teardown --------------------------- Captured stdout teardown --------------------------- function teardown =========================== short test summary info ============================ FAILED test_exception_match_only_rerun_in_dual_query.py::test_1 - Exception: ... ========================== 1 failed, 1 rerun in 0.01s ========================== =========================== short test summary info ============================ FAILED tests/test_pytest_rerunfailures.py::test_run_session_teardown_once_after_reruns FAILED tests/test_pytest_rerunfailures.py::test_exception_matches_rerun_except_query FAILED tests/test_pytest_rerunfailures.py::test_exception_not_match_rerun_except_query FAILED tests/test_pytest_rerunfailures.py::test_exception_matches_only_rerun_query FAILED tests/test_pytest_rerunfailures.py::test_exception_match_only_rerun_in_dual_query ======================== 5 failed, 104 passed in 6.45s ========================= ERROR: InvocationError for command /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/py3/bin/pytest -vra (exited with code 1) py3 finish: run-test after 6.67 seconds py3 start: run-test-post py3 finish: run-test-post after 0.00 seconds ___________________________________ summary ____________________________________ ERROR: py3: commands failed cleanup /usr/src/RPM/BUILD/python3-module-pytest-rerunfailures-14.0/.tox/.tmp/package/1/pytest_rerunfailures-14.0-py3-none-any.whl error: Bad exit status from /usr/src/tmp/rpm-tmp.44541 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.44541 (%check) Command exited with non-zero status 1 7.81user 3.65system 0:09.56elapsed 119%CPU (0avgtext+0avgdata 36488maxresident)k 0inputs+0outputs (0major+120319minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-pytest-rerunfailures-14.0-alt1.src.rpm' failed. Command exited with non-zero status 1 4.22user 3.27system 0:23.29elapsed 32%CPU (0avgtext+0avgdata 128740maxresident)k 0inputs+0outputs (0major+341368minor)pagefaults 0swaps