Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-767774-27744/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/python-pytest-flake8-1.1.1-3.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-767774-27744/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5eh3p0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest-flake8-1.1.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-flake8-1.1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-flake8-1.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf pytest-flake8.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.tsvewm + umask 022 + cd /builddir/build/BUILD + cd pytest-flake8-1.1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/pytest-flake8-1.1.1/pyproject-wheeldir Handling setuptools >= 40.8 from default build backend Requirement not satisfied: setuptools >= 40.8 Handling wheel from default build backend Requirement not satisfied: wheel Exiting dependency generation pass: build backend + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-pytest-flake8-1.1.1-3.fc38.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-767774-27744/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.oBYgzv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest-flake8-1.1.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-flake8-1.1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-flake8-1.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf pytest-flake8.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.qd17Q1 + umask 022 + cd /builddir/build/BUILD + cd pytest-flake8-1.1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/pytest-flake8-1.1.1/pyproject-wheeldir Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 65.5.1) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.38.4) warning: no directories found matching 'doc' warning: no directories found matching 'test_flake8.py' HOOK STDOUT: running egg_info HOOK STDOUT: writing pytest_flake8.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to pytest_flake8.egg-info/dependency_links.txt HOOK STDOUT: writing entry points to pytest_flake8.egg-info/entry_points.txt HOOK STDOUT: writing requirements to pytest_flake8.egg-info/requires.txt HOOK STDOUT: writing top-level names to pytest_flake8.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: writing manifest file 'pytest_flake8.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.38.4) warning: no directories found matching 'doc' warning: no directories found matching 'test_flake8.py' HOOK STDOUT: running dist_info HOOK STDOUT: writing pytest_flake8.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to pytest_flake8.egg-info/dependency_links.txt HOOK STDOUT: writing entry points to pytest_flake8.egg-info/entry_points.txt HOOK STDOUT: writing requirements to pytest_flake8.egg-info/requires.txt HOOK STDOUT: writing top-level names to pytest_flake8.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: writing manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/pytest-flake8-1.1.1/pytest_flake8-1.1.1.dist-info' Handling flake8 (>=4.0) from hook generated metadata: Requires-Dist Requirement not satisfied: flake8 (>=4.0) Handling pytest (>=7.0) from hook generated metadata: Requires-Dist Requirement not satisfied: pytest (>=7.0) + rm -rfv pytest_flake8-1.1.1.dist-info/ removed 'pytest_flake8-1.1.1.dist-info/LICENSE' removed 'pytest_flake8-1.1.1.dist-info/entry_points.txt' removed 'pytest_flake8-1.1.1.dist-info/top_level.txt' removed 'pytest_flake8-1.1.1.dist-info/METADATA' removed directory 'pytest_flake8-1.1.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-pytest-flake8-1.1.1-3.fc38.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-767774-27744/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MSuUin + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest-flake8-1.1.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-flake8-1.1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-flake8-1.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf pytest-flake8.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.oBN7Ki + umask 022 + cd /builddir/build/BUILD + cd pytest-flake8-1.1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/pytest-flake8-1.1.1/pyproject-wheeldir Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 65.5.1) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.38.4) warning: no directories found matching 'doc' warning: no directories found matching 'test_flake8.py' HOOK STDOUT: running egg_info HOOK STDOUT: writing pytest_flake8.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to pytest_flake8.egg-info/dependency_links.txt HOOK STDOUT: writing entry points to pytest_flake8.egg-info/entry_points.txt HOOK STDOUT: writing requirements to pytest_flake8.egg-info/requires.txt HOOK STDOUT: writing top-level names to pytest_flake8.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: writing manifest file 'pytest_flake8.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.38.4) warning: no directories found matching 'doc' warning: no directories found matching 'test_flake8.py' HOOK STDOUT: running dist_info HOOK STDOUT: writing pytest_flake8.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to pytest_flake8.egg-info/dependency_links.txt HOOK STDOUT: writing entry points to pytest_flake8.egg-info/entry_points.txt HOOK STDOUT: writing requirements to pytest_flake8.egg-info/requires.txt HOOK STDOUT: writing top-level names to pytest_flake8.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: writing manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/pytest-flake8-1.1.1/pytest_flake8-1.1.1.dist-info' Handling flake8 (>=4.0) from hook generated metadata: Requires-Dist Requirement satisfied: flake8 (>=4.0) (installed: flake8 5.0.3) Handling pytest (>=7.0) from hook generated metadata: Requires-Dist Requirement satisfied: pytest (>=7.0) (installed: pytest 7.2.2) + rm -rfv pytest_flake8-1.1.1.dist-info/ removed 'pytest_flake8-1.1.1.dist-info/LICENSE' removed 'pytest_flake8-1.1.1.dist-info/entry_points.txt' removed 'pytest_flake8-1.1.1.dist-info/top_level.txt' removed 'pytest_flake8-1.1.1.dist-info/METADATA' removed directory 'pytest_flake8-1.1.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-pytest-flake8-1.1.1-3.fc38.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-767774-27744/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.GJ5hqy + umask 022 + cd /builddir/build/BUILD + cd pytest-flake8-1.1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/pytest-flake8-1.1.1/pyproject-wheeldir Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 65.5.1) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.38.4) warning: no directories found matching 'doc' warning: no directories found matching 'test_flake8.py' HOOK STDOUT: running egg_info HOOK STDOUT: writing pytest_flake8.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to pytest_flake8.egg-info/dependency_links.txt HOOK STDOUT: writing entry points to pytest_flake8.egg-info/entry_points.txt HOOK STDOUT: writing requirements to pytest_flake8.egg-info/requires.txt HOOK STDOUT: writing top-level names to pytest_flake8.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: writing manifest file 'pytest_flake8.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.38.4) warning: no directories found matching 'doc' warning: no directories found matching 'test_flake8.py' HOOK STDOUT: running dist_info HOOK STDOUT: writing pytest_flake8.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to pytest_flake8.egg-info/dependency_links.txt HOOK STDOUT: writing entry points to pytest_flake8.egg-info/entry_points.txt HOOK STDOUT: writing requirements to pytest_flake8.egg-info/requires.txt HOOK STDOUT: writing top-level names to pytest_flake8.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: writing manifest file 'pytest_flake8.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/pytest-flake8-1.1.1/pytest_flake8-1.1.1.dist-info' Handling flake8 (>=4.0) from hook generated metadata: Requires-Dist Requirement satisfied: flake8 (>=4.0) (installed: flake8 5.0.3) Handling pytest (>=7.0) from hook generated metadata: Requires-Dist Requirement satisfied: pytest (>=7.0) (installed: pytest 7.2.2) + rm -rfv pytest_flake8-1.1.1.dist-info/ removed 'pytest_flake8-1.1.1.dist-info/LICENSE' removed 'pytest_flake8-1.1.1.dist-info/entry_points.txt' removed 'pytest_flake8-1.1.1.dist-info/top_level.txt' removed 'pytest_flake8-1.1.1.dist-info/METADATA' removed directory 'pytest_flake8-1.1.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VcJuFD + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pytest-flake8-1.1.1 + mkdir -p /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/pytest-flake8-1.1.1/pyproject-wheeldir Processing /builddir/build/BUILD/pytest-flake8-1.1.1 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info writing /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info/dependency_links.txt writing entry points to /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info/entry_points.txt writing requirements to /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'doc' warning: no directories found matching 'test_flake8.py' adding license file 'LICENSE' writing manifest file '/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-modern-metadata-qxg64fbx/pytest_flake8-1.1.1.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: pytest-flake8 Building wheel for pytest-flake8 (pyproject.toml): started Running command Building wheel for pytest-flake8 (pyproject.toml) running bdist_wheel running build running build_py creating build creating build/lib copying pytest_flake8.py -> build/lib installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64 creating build/bdist.linux-riscv64/wheel copying build/lib/pytest_flake8.py -> build/bdist.linux-riscv64/wheel running install_egg_info running egg_info writing pytest_flake8.egg-info/PKG-INFO writing dependency_links to pytest_flake8.egg-info/dependency_links.txt writing entry points to pytest_flake8.egg-info/entry_points.txt writing requirements to pytest_flake8.egg-info/requires.txt writing top-level names to pytest_flake8.egg-info/top_level.txt reading manifest file 'pytest_flake8.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'doc' warning: no directories found matching 'test_flake8.py' adding license file 'LICENSE' writing manifest file 'pytest_flake8.egg-info/SOURCES.txt' Copying pytest_flake8.egg-info to build/bdist.linux-riscv64/wheel/pytest_flake8-1.1.1-py3.11.egg-info running install_scripts creating build/bdist.linux-riscv64/wheel/pytest_flake8-1.1.1.dist-info/WHEEL creating '/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir/pip-wheel-exmydpyf/tmpmz7hsk6c/pytest_flake8-1.1.1-py2.py3-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'pytest_flake8.py' adding 'pytest_flake8-1.1.1.dist-info/LICENSE' adding 'pytest_flake8-1.1.1.dist-info/METADATA' adding 'pytest_flake8-1.1.1.dist-info/WHEEL' adding 'pytest_flake8-1.1.1.dist-info/entry_points.txt' adding 'pytest_flake8-1.1.1.dist-info/top_level.txt' adding 'pytest_flake8-1.1.1.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel Building wheel for pytest-flake8 (pyproject.toml): finished with status 'done' Created wheel for pytest-flake8: filename=pytest_flake8-1.1.1-py2.py3-none-any.whl size=6584 sha256=737fd9f047d0f8250b8cf538244b179f5cf5612b8087dc675184175abec96196 Stored in directory: /builddir/.cache/pip/wheels/98/b3/ce/ca9f7ad9c874e8e2de917a6b1cca6ac065df18cd2b4cd97628 Successfully built pytest-flake8 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kPXovT + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch ++ dirname /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pytest-flake8-1.1.1 ++ xargs basename --multiple ++ ls /builddir/build/BUILD/pytest-flake8-1.1.1/pyproject-wheeldir/pytest_flake8-1.1.1-py2.py3-none-any.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=pytest_flake8==1.1.1 + TMPDIR=/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/pytest-flake8-1.1.1/pyproject-wheeldir pytest_flake8==1.1.1 Using pip 22.3.1 from /usr/lib/python3.11/site-packages/pip (python 3.11) Looking in links: /builddir/build/BUILD/pytest-flake8-1.1.1/pyproject-wheeldir Processing ./pyproject-wheeldir/pytest_flake8-1.1.1-py2.py3-none-any.whl Installing collected packages: pytest_flake8 Successfully installed pytest_flake8-1.1.1 + '[' -d /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/bin ']' + rm -f /builddir/build/BUILD/python-pytest-flake8-1.1.1-3.fc38.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages ']' + site_dirs+=("/usr/lib/python3.11/site-packages") + '[' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib64/python3.11/site-packages '!=' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib64/python3.11/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.11/site-packages/pytest_flake8-1.1.1.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8-1.1.1.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch --record /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8-1.1.1.dist-info/RECORD --output /builddir/build/BUILD/python-pytest-flake8-1.1.1-3.fc38.noarch-pyproject-record + rm -fv /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8-1.1.1.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8-1.1.1.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8-1.1.1.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8-1.1.1.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-pytest-flake8-1.1.1-3.fc38.noarch-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/python-pytest-flake8-1.1.1-3.fc38.noarch-pyproject-files --output-modules /builddir/build/BUILD/python-pytest-flake8-1.1.1-3.fc38.noarch-pyproject-modules --buildroot /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch --sitelib /usr/lib/python3.11/site-packages --sitearch /usr/lib64/python3.11/site-packages --python-version 3.11 --pyproject-record /builddir/build/BUILD/python-pytest-flake8-1.1.1-3.fc38.noarch-pyproject-record --prefix /usr pytest_flake8 + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.1.1-3.fc38 --unique-debug-suffix -1.1.1-3.fc38.noarch --unique-debug-src-base python-pytest-flake8-1.1.1-3.fc38.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pytest-flake8-1.1.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.uNUSnJ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pytest-flake8-1.1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/pytest-flake8-1.1.1/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=8 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 rootdir: /builddir/build/BUILD/pytest-flake8-1.1.1, configfile: tox.ini plugins: flake8-1.1.1 collected 16 items pytest_flake8.py F [ 6%] setup.py F [ 12%] test_flake8.py F..FFFF.FFFFxF [100%] =================================== FAILURES =================================== _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbcb95120> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbdba9ad0> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) ../../BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/builddir/build/BUILD/pytest-flake8-1.1.1/pytest_flake8.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' ../../BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbcb94f40> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbdba9ad0> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) ../../BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/builddir/build/BUILD/pytest-flake8-1.1.1/setup.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' ../../BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbcb95260> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbdba9ad0> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) ../../BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' ../../BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError ___________________ TestIgnores.test_default_flake8_ignores ____________________ self = testdir = def test_default_flake8_ignores(self, testdir): testdir.makeini(""" [pytest] markers = flake8 [flake8] ignore = E203 *.py E300 tests/*.py ALL E203 # something """) testdir.tmpdir.ensure("xy.py") testdir.tmpdir.ensure("tests/hello.py") result = testdir.runpytest("--flake8", "-s") > result.assert_outcomes(passed=2) E AssertionError: assert {'errors': 0,...pped': 0, ...} == {'errors': 0,...pped': 0, ...} E Omitting 4 identical items, use -vv to show E Differing items: E {'passed': 0} != {'passed': 2} E {'failed': 2} != {'failed': 0} E Use -v to get more diff /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:53: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_default_flake8_ignores0, configfile: tox.ini plugins: flake8-1.1.1 collected 2 items xy.py F tests/hello.py F =================================== FAILURES =================================== _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbcb182c0> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbce92510> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbcb18360> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_default_flake8_ignores0/xy.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbcb187c0> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbce92510> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbcb18c20> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_default_flake8_ignores0/tests/hello.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED xy.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.config... FAILED tests/hello.py::flake-8::FLAKE8 - AttributeError: module 'flake8.optio... ========================= 2 failed, 1 warning in 1.88s ========================= _________________________ TestIgnores.test_ignores_all _________________________ self = testdir = def test_ignores_all(self, testdir): """Verify success when all errors are ignored.""" testdir.makeini(""" [pytest] markers = flake8 flake8-ignore = E203 *.py E300 tests/*.py ALL E203 # something """) testdir.tmpdir.ensure("xy.py") testdir.tmpdir.ensure("tests/hello.py") result = testdir.runpytest("--flake8", "-s") > result.assert_outcomes(passed=1) E AssertionError: assert {'errors': 0,...pped': 0, ...} == {'errors': 0,...pped': 0, ...} E Omitting 4 identical items, use -vv to show E Differing items: E {'passed': 0} != {'passed': 1} E {'failed': 1} != {'failed': 0} E Use -v to get more diff /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:72: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_ignores_all0, configfile: tox.ini plugins: flake8-1.1.1 collected 1 item xy.py F =================================== FAILURES =================================== _______________________ FLAKE8-check(ignoring E203 E300) _______________________ cls = func = . at 0xffffffbcb1a200> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbc84bb50> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbcb1a2a0> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_ignores_all0/xy.py') flake8ignore = ['E203', 'E300'], maxlength = '', maxdoclenght = '' maxcomplexity = '', showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED xy.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.config... ========================= 1 failed, 1 warning in 1.00s ========================= __________________________ TestIgnores.test_w293w292 ___________________________ self = testdir = example = local('/tmp/pytest-of-mockbuild/pytest-0/test_w293w2920/test_w293w292.py') def test_w293w292(self, testdir, example): result = testdir.runpytest("--flake8", ) > result.stdout.fnmatch_lines([ # "*plugins*flake8*", "*W293*", "*W292*", ]) E Failed: nomatch: '*W293*' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_w293w2920' E and: 'plugins: flake8-1.1.1' E and: 'collected 1 item' E and: '' E and: 'test_w293w292.py F [100%]' E and: '' E and: '=================================== FAILURES ===================================' E and: '_________________________________ FLAKE8-check _________________________________' E and: '' E and: "cls = " E and: 'func = . at 0xffffffbcb1bd80>' E and: "when = 'call'" E and: "reraise = (, )" E and: '' E and: ' @classmethod' E and: ' def from_call(' E and: ' cls,' E and: ' func: "Callable[[], TResult]",' E and: ' when: "Literal[\'collect\', \'setup\', \'call\', \'teardown\']",' E and: ' reraise: Optional[' E and: ' Union[Type[BaseException], Tuple[Type[BaseException], ...]]' E and: ' ] = None,' E and: ' ) -> "CallInfo[TResult]":' E and: ' """Call func, wrapping the result in a CallInfo.' E and: ' ' E and: ' :param func:' E and: ' The function to call. Called without arguments.' E and: ' :param when:' E and: ' The phase in which the function is called.' E and: ' :param reraise:' E and: ' Exception or exceptions that shall propagate if raised by the' E and: ' function, instead of being wrapped in the CallInfo.' E and: ' """' E and: ' excinfo = None' E and: ' start = timing.time()' E and: ' precise_start = timing.perf_counter()' E and: ' try:' E and: '> result: Optional[TResult] = func()' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:339: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: '> lambda: ihook(item=item, **kwds), when=when, reraise=reraise' E and: ' )' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:260: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "self = <_HookCaller 'pytest_runtest_call'>, args = ()" E and: "kwargs = {'item': }, argname = 'item', firstresult = False" E and: '' E and: ' def __call__(self, *args, **kwargs):' E and: ' if args:' E and: ' raise TypeError("hook calling supports only keyword arguments")' E and: ' assert not self.is_historic()' E and: ' ' E and: ' # This is written to avoid expensive operations when not needed.' E and: ' if self.spec:' E and: ' for argname in self.spec.argnames:' E and: ' if argname not in kwargs:' E and: ' notincall = tuple(set(self.spec.argnames) - kwargs.keys())' E and: ' warnings.warn(' E and: ' "Argument(s) {} which are declared in the hookspec "' E and: ' "can not be found in this hook call".format(notincall),' E and: ' stacklevel=2,' E and: ' )' E and: ' break' E and: ' ' E and: ' firstresult = self.spec.opts.get("firstresult")' E and: ' else:' E and: ' firstresult = False' E and: ' ' E and: '> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = <_pytest.config.PytestPluginManager object at 0xffffffbc86f810>' E and: "hook_name = 'pytest_runtest_call'" E and: "methods = [>]" E and: "kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _hookexec(self, hook_name, methods, kwargs, firstresult):' E and: ' # called from all hookcaller instances.' E and: ' # enable_tracing will set its own wrapping function at self._inner_hookexec' E and: '> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:80: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "kwargs = {'item': }, firstresult = False" E and: '' E and: ' def traced_hookexec(hook_name, hook_impls, kwargs, firstresult):' E and: ' before(hook_name, hook_impls, kwargs)' E and: ' outcome = _Result.from_call(' E and: ' lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)' E and: ' )' E and: ' after(outcome, hook_name, hook_impls, kwargs)' E and: '> return outcome.get_result()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:327: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def get_result(self):' E and: ' """Get the result(s) for this hook call.' E and: ' ' E and: ' If the hook was marked as a ``firstresult`` only a single value' E and: ' will be returned otherwise a list of results.' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' if self._excinfo is None:' E and: ' return self._result' E and: ' else:' E and: ' ex = self._excinfo' E and: '> raise ex[1].with_traceback(ex[2])' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "cls = " E and: 'func = .traced_hookexec.. at 0xffffffbcb1bce0>' E and: '' E and: ' @classmethod' E and: ' def from_call(cls, func):' E and: ' __tracebackhide__ = True' E and: ' result = excinfo = None' E and: ' try:' E and: '> result = func()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:33: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: '> lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)' E and: ' )' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:324: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "caller_kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):' E and: ' """Execute a call into multiple python functions/methods and return the' E and: ' result(s).' E and: ' ' E and: ' ``caller_kwargs`` comes from _HookCaller.__call__().' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' results = []' E and: ' excinfo = None' E and: ' try: # run impl and wrapper setup functions in a loop' E and: ' teardowns = []' E and: ' try:' E and: ' for hook_impl in reversed(hook_impls):' E and: ' try:' E and: ' args = [caller_kwargs[argname] for argname in hook_impl.argnames]' E and: ' except KeyError:' E and: ' for argname in hook_impl.argnames:' E and: ' if argname not in caller_kwargs:' E and: ' raise HookCallError(' E and: ' f"hook call must provide argument {argname!r}"' E and: ' )' E and: ' ' E and: ' if hook_impl.hookwrapper:' E and: ' try:' E and: ' gen = hook_impl.function(*args)' E and: ' next(gen) # first yield' E and: ' teardowns.append(gen)' E and: ' except StopIteration:' E and: ' _raise_wrapfail(gen, "did not yield")' E and: ' else:' E and: ' res = hook_impl.function(*args)' E and: ' if res is not None:' E and: ' results.append(res)' E and: ' if firstresult: # halt further impl calls' E and: ' break' E and: ' except BaseException:' E and: ' excinfo = sys.exc_info()' E and: ' finally:' E and: ' if firstresult: # first result hooks return a single value' E and: ' outcome = _Result(results[0] if results else None, excinfo)' E and: ' else:' E and: ' outcome = _Result(results, excinfo)' E and: ' ' E and: ' # run all wrapper post-yield blocks' E and: ' for gen in reversed(teardowns):' E and: ' try:' E and: ' gen.send(outcome)' E and: ' _raise_wrapfail(gen, "has second yield")' E and: ' except StopIteration:' E and: ' pass' E and: ' ' E and: '> return outcome.get_result()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_callers.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def get_result(self):' E and: ' """Get the result(s) for this hook call.' E and: ' ' E and: ' If the hook was marked as a ``firstresult`` only a single value' E and: ' will be returned otherwise a list of results.' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' if self._excinfo is None:' E and: ' return self._result' E and: ' else:' E and: ' ex = self._excinfo' E and: '> raise ex[1].with_traceback(ex[2])' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "caller_kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):' E and: ' """Execute a call into multiple python functions/methods and return the' E and: ' result(s).' E and: ' ' E and: ' ``caller_kwargs`` comes from _HookCaller.__call__().' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' results = []' E and: ' excinfo = None' E and: ' try: # run impl and wrapper setup functions in a loop' E and: ' teardowns = []' E and: ' try:' E and: ' for hook_impl in reversed(hook_impls):' E and: ' try:' E and: ' args = [caller_kwargs[argname] for argname in hook_impl.argnames]' E and: ' except KeyError:' E and: ' for argname in hook_impl.argnames:' E and: ' if argname not in caller_kwargs:' E and: ' raise HookCallError(' E and: ' f"hook call must provide argument {argname!r}"' E and: ' )' E and: ' ' E and: ' if hook_impl.hookwrapper:' E and: ' try:' E and: ' gen = hook_impl.function(*args)' E and: ' next(gen) # first yield' E and: ' teardowns.append(gen)' E and: ' except StopIteration:' E and: ' _raise_wrapfail(gen, "did not yield")' E and: ' else:' E and: '> res = hook_impl.function(*args)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_callers.py:39: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'item = ' E and: '' E and: ' def pytest_runtest_call(item: Item) -> None:' E and: ' _update_current_test_var(item, "call")' E and: ' try:' E and: ' del sys.last_type' E and: ' del sys.last_value' E and: ' del sys.last_traceback' E and: ' except AttributeError:' E and: ' pass' E and: ' try:' E and: ' item.runtest()' E and: ' except Exception as e:' E and: ' # Store trace info to allow postmortem debugging' E and: ' sys.last_type = type(e)' E and: ' sys.last_value = e' E and: ' assert e.__traceback__ is not None' E and: ' # Skip *this* frame' E and: ' sys.last_traceback = e.__traceback__.tb_next' E and: '> raise e' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:175: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'item = ' E and: '' E and: ' def pytest_runtest_call(item: Item) -> None:' E and: ' _update_current_test_var(item, "call")' E and: ' try:' E and: ' del sys.last_type' E and: ' del sys.last_value' E and: ' del sys.last_traceback' E and: ' except AttributeError:' E and: ' pass' E and: ' try:' E and: '> item.runtest()' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:167: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def runtest(self):' E and: " with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \\" E and: " BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \\" E and: ' redirect_stdout(to), redirect_stderr(te):' E and: '> found_errors = check_file(' E and: ' self.fspath,' E and: ' self.flake8ignore,' E and: ' self.maxlength,' E and: ' self.maxdoclength,' E and: ' self.maxcomplexity,' E and: ' self.showsource,' E and: ' self.statistics' E and: ' )' E and: '' E and: '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "path = local('/tmp/pytest-of-mockbuild/pytest-0/test_w293w2920/test_w293w292.py')" E and: "flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = ''" E and: 'showsource = [], statistics = []' E and: '' E and: ' def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity,' E and: ' showsource, statistics):' E and: ' """Run flake8 over a single file, and return the number of failures."""' E and: ' args = []' E and: ' if maxlength:' E and: " args += ['--max-line-length', maxlength]" E and: ' if maxdoclenght:' E and: " args += ['--max-doc-length', maxdoclenght]" E and: ' if maxcomplexity:' E and: " args += ['--max-complexity', maxcomplexity]" E and: ' if showsource:' E and: " args += ['--show-source']" E and: ' if statistics:' E and: " args += ['--statistics']" E and: ' app = application.Application()' E and: ' prelim_opts, remaining_args = app.parse_preliminary_options(args)' E and: '> config_finder = config.ConfigFileFinder(' E and: ' app.program,' E and: ' prelim_opts.append_config,' E and: ' config_file=prelim_opts.config,' E and: ' ignore_config_files=prelim_opts.isolated,' E and: ' )' E and: "E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'" E and: '' E and: '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError' E and: '=============================== warnings summary ===============================' E and: '../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173' E and: ' /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8' E and: ' self._mark_plugins_for_rewrite(hook)' E and: '' E and: '-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html' E and: '=========================== short test summary info ============================' E and: "FAILED test_w293w292.py::flake-8::FLAKE8 - AttributeError: module 'flake8.opt..." E and: '========================= 1 failed, 1 warning in 1.03s =========================' E remains unmatched: '*W293*' /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:81: Failed ---------------------------- Captured stderr setup ----------------------------- /tmp/pytest-of-mockbuild/pytest-0/test_w293w2920 ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_w293w2920 plugins: flake8-1.1.1 collected 1 item test_w293w292.py F [100%] =================================== FAILURES =================================== _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbcb1bd80> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbc86f810> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbcb1bce0> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_w293w2920/test_w293w292.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test_w293w292.py::flake-8::FLAKE8 - AttributeError: module 'flake8.opt... ========================= 1 failed, 1 warning in 1.03s ========================= ________________________ TestIgnores.test_mtime_caching ________________________ self = testdir = example = local('/tmp/pytest-of-mockbuild/pytest-0/test_mtime_caching0/test_mtime_caching.py') def test_mtime_caching(self, testdir, example): testdir.tmpdir.ensure("hello.py") result = testdir.runpytest("--flake8", ) > result.stdout.fnmatch_lines([ # "*plugins*flake8*", "*W293*", "*W292*", ]) E Failed: nomatch: '*W293*' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_mtime_caching0' E and: 'plugins: flake8-1.1.1' E and: 'collected 2 items' E and: '' E and: 'hello.py F [ 50%]' E and: 'test_mtime_caching.py F [100%]' E and: '' E and: '=================================== FAILURES ===================================' E and: '_________________________________ FLAKE8-check _________________________________' E and: '' E and: "cls = " E and: 'func = . at 0xffffffbc9b2ca0>' E and: "when = 'call'" E and: "reraise = (, )" E and: '' E and: ' @classmethod' E and: ' def from_call(' E and: ' cls,' E and: ' func: "Callable[[], TResult]",' E and: ' when: "Literal[\'collect\', \'setup\', \'call\', \'teardown\']",' E and: ' reraise: Optional[' E and: ' Union[Type[BaseException], Tuple[Type[BaseException], ...]]' E and: ' ] = None,' E and: ' ) -> "CallInfo[TResult]":' E and: ' """Call func, wrapping the result in a CallInfo.' E and: ' ' E and: ' :param func:' E and: ' The function to call. Called without arguments.' E and: ' :param when:' E and: ' The phase in which the function is called.' E and: ' :param reraise:' E and: ' Exception or exceptions that shall propagate if raised by the' E and: ' function, instead of being wrapped in the CallInfo.' E and: ' """' E and: ' excinfo = None' E and: ' start = timing.time()' E and: ' precise_start = timing.perf_counter()' E and: ' try:' E and: '> result: Optional[TResult] = func()' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:339: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: '> lambda: ihook(item=item, **kwds), when=when, reraise=reraise' E and: ' )' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:260: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "self = <_HookCaller 'pytest_runtest_call'>, args = ()" E and: "kwargs = {'item': }, argname = 'item', firstresult = False" E and: '' E and: ' def __call__(self, *args, **kwargs):' E and: ' if args:' E and: ' raise TypeError("hook calling supports only keyword arguments")' E and: ' assert not self.is_historic()' E and: ' ' E and: ' # This is written to avoid expensive operations when not needed.' E and: ' if self.spec:' E and: ' for argname in self.spec.argnames:' E and: ' if argname not in kwargs:' E and: ' notincall = tuple(set(self.spec.argnames) - kwargs.keys())' E and: ' warnings.warn(' E and: ' "Argument(s) {} which are declared in the hookspec "' E and: ' "can not be found in this hook call".format(notincall),' E and: ' stacklevel=2,' E and: ' )' E and: ' break' E and: ' ' E and: ' firstresult = self.spec.opts.get("firstresult")' E and: ' else:' E and: ' firstresult = False' E and: ' ' E and: '> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = <_pytest.config.PytestPluginManager object at 0xffffffbc8b8810>' E and: "hook_name = 'pytest_runtest_call'" E and: "methods = [>]" E and: "kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _hookexec(self, hook_name, methods, kwargs, firstresult):' E and: ' # called from all hookcaller instances.' E and: ' # enable_tracing will set its own wrapping function at self._inner_hookexec' E and: '> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:80: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "kwargs = {'item': }, firstresult = False" E and: '' E and: ' def traced_hookexec(hook_name, hook_impls, kwargs, firstresult):' E and: ' before(hook_name, hook_impls, kwargs)' E and: ' outcome = _Result.from_call(' E and: ' lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)' E and: ' )' E and: ' after(outcome, hook_name, hook_impls, kwargs)' E and: '> return outcome.get_result()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:327: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def get_result(self):' E and: ' """Get the result(s) for this hook call.' E and: ' ' E and: ' If the hook was marked as a ``firstresult`` only a single value' E and: ' will be returned otherwise a list of results.' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' if self._excinfo is None:' E and: ' return self._result' E and: ' else:' E and: ' ex = self._excinfo' E and: '> raise ex[1].with_traceback(ex[2])' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "cls = " E and: 'func = .traced_hookexec.. at 0xffffffbc9b2b60>' E and: '' E and: ' @classmethod' E and: ' def from_call(cls, func):' E and: ' __tracebackhide__ = True' E and: ' result = excinfo = None' E and: ' try:' E and: '> result = func()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:33: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: '> lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)' E and: ' )' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:324: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "caller_kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):' E and: ' """Execute a call into multiple python functions/methods and return the' E and: ' result(s).' E and: ' ' E and: ' ``caller_kwargs`` comes from _HookCaller.__call__().' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' results = []' E and: ' excinfo = None' E and: ' try: # run impl and wrapper setup functions in a loop' E and: ' teardowns = []' E and: ' try:' E and: ' for hook_impl in reversed(hook_impls):' E and: ' try:' E and: ' args = [caller_kwargs[argname] for argname in hook_impl.argnames]' E and: ' except KeyError:' E and: ' for argname in hook_impl.argnames:' E and: ' if argname not in caller_kwargs:' E and: ' raise HookCallError(' E and: ' f"hook call must provide argument {argname!r}"' E and: ' )' E and: ' ' E and: ' if hook_impl.hookwrapper:' E and: ' try:' E and: ' gen = hook_impl.function(*args)' E and: ' next(gen) # first yield' E and: ' teardowns.append(gen)' E and: ' except StopIteration:' E and: ' _raise_wrapfail(gen, "did not yield")' E and: ' else:' E and: ' res = hook_impl.function(*args)' E and: ' if res is not None:' E and: ' results.append(res)' E and: ' if firstresult: # halt further impl calls' E and: ' break' E and: ' except BaseException:' E and: ' excinfo = sys.exc_info()' E and: ' finally:' E and: ' if firstresult: # first result hooks return a single value' E and: ' outcome = _Result(results[0] if results else None, excinfo)' E and: ' else:' E and: ' outcome = _Result(results, excinfo)' E and: ' ' E and: ' # run all wrapper post-yield blocks' E and: ' for gen in reversed(teardowns):' E and: ' try:' E and: ' gen.send(outcome)' E and: ' _raise_wrapfail(gen, "has second yield")' E and: ' except StopIteration:' E and: ' pass' E and: ' ' E and: '> return outcome.get_result()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_callers.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def get_result(self):' E and: ' """Get the result(s) for this hook call.' E and: ' ' E and: ' If the hook was marked as a ``firstresult`` only a single value' E and: ' will be returned otherwise a list of results.' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' if self._excinfo is None:' E and: ' return self._result' E and: ' else:' E and: ' ex = self._excinfo' E and: '> raise ex[1].with_traceback(ex[2])' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "caller_kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):' E and: ' """Execute a call into multiple python functions/methods and return the' E and: ' result(s).' E and: ' ' E and: ' ``caller_kwargs`` comes from _HookCaller.__call__().' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' results = []' E and: ' excinfo = None' E and: ' try: # run impl and wrapper setup functions in a loop' E and: ' teardowns = []' E and: ' try:' E and: ' for hook_impl in reversed(hook_impls):' E and: ' try:' E and: ' args = [caller_kwargs[argname] for argname in hook_impl.argnames]' E and: ' except KeyError:' E and: ' for argname in hook_impl.argnames:' E and: ' if argname not in caller_kwargs:' E and: ' raise HookCallError(' E and: ' f"hook call must provide argument {argname!r}"' E and: ' )' E and: ' ' E and: ' if hook_impl.hookwrapper:' E and: ' try:' E and: ' gen = hook_impl.function(*args)' E and: ' next(gen) # first yield' E and: ' teardowns.append(gen)' E and: ' except StopIteration:' E and: ' _raise_wrapfail(gen, "did not yield")' E and: ' else:' E and: '> res = hook_impl.function(*args)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_callers.py:39: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'item = ' E and: '' E and: ' def pytest_runtest_call(item: Item) -> None:' E and: ' _update_current_test_var(item, "call")' E and: ' try:' E and: ' del sys.last_type' E and: ' del sys.last_value' E and: ' del sys.last_traceback' E and: ' except AttributeError:' E and: ' pass' E and: ' try:' E and: ' item.runtest()' E and: ' except Exception as e:' E and: ' # Store trace info to allow postmortem debugging' E and: ' sys.last_type = type(e)' E and: ' sys.last_value = e' E and: ' assert e.__traceback__ is not None' E and: ' # Skip *this* frame' E and: ' sys.last_traceback = e.__traceback__.tb_next' E and: '> raise e' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:175: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'item = ' E and: '' E and: ' def pytest_runtest_call(item: Item) -> None:' E and: ' _update_current_test_var(item, "call")' E and: ' try:' E and: ' del sys.last_type' E and: ' del sys.last_value' E and: ' del sys.last_traceback' E and: ' except AttributeError:' E and: ' pass' E and: ' try:' E and: '> item.runtest()' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:167: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def runtest(self):' E and: " with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \\" E and: " BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \\" E and: ' redirect_stdout(to), redirect_stderr(te):' E and: '> found_errors = check_file(' E and: ' self.fspath,' E and: ' self.flake8ignore,' E and: ' self.maxlength,' E and: ' self.maxdoclength,' E and: ' self.maxcomplexity,' E and: ' self.showsource,' E and: ' self.statistics' E and: ' )' E and: '' E and: '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "path = local('/tmp/pytest-of-mockbuild/pytest-0/test_mtime_caching0/hello.py')" E and: "flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = ''" E and: 'showsource = [], statistics = []' E and: '' E and: ' def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity,' E and: ' showsource, statistics):' E and: ' """Run flake8 over a single file, and return the number of failures."""' E and: ' args = []' E and: ' if maxlength:' E and: " args += ['--max-line-length', maxlength]" E and: ' if maxdoclenght:' E and: " args += ['--max-doc-length', maxdoclenght]" E and: ' if maxcomplexity:' E and: " args += ['--max-complexity', maxcomplexity]" E and: ' if showsource:' E and: " args += ['--show-source']" E and: ' if statistics:' E and: " args += ['--statistics']" E and: ' app = application.Application()' E and: ' prelim_opts, remaining_args = app.parse_preliminary_options(args)' E and: '> config_finder = config.ConfigFileFinder(' E and: ' app.program,' E and: ' prelim_opts.append_config,' E and: ' config_file=prelim_opts.config,' E and: ' ignore_config_files=prelim_opts.isolated,' E and: ' )' E and: "E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'" E and: '' E and: '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError' E and: '_________________________________ FLAKE8-check _________________________________' E and: '' E and: "cls = " E and: 'func = . at 0xffffffbc9b1b20>' E and: "when = 'call'" E and: "reraise = (, )" E and: '' E and: ' @classmethod' E and: ' def from_call(' E and: ' cls,' E and: ' func: "Callable[[], TResult]",' E and: ' when: "Literal[\'collect\', \'setup\', \'call\', \'teardown\']",' E and: ' reraise: Optional[' E and: ' Union[Type[BaseException], Tuple[Type[BaseException], ...]]' E and: ' ] = None,' E and: ' ) -> "CallInfo[TResult]":' E and: ' """Call func, wrapping the result in a CallInfo.' E and: ' ' E and: ' :param func:' E and: ' The function to call. Called without arguments.' E and: ' :param when:' E and: ' The phase in which the function is called.' E and: ' :param reraise:' E and: ' Exception or exceptions that shall propagate if raised by the' E and: ' function, instead of being wrapped in the CallInfo.' E and: ' """' E and: ' excinfo = None' E and: ' start = timing.time()' E and: ' precise_start = timing.perf_counter()' E and: ' try:' E and: '> result: Optional[TResult] = func()' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:339: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: '> lambda: ihook(item=item, **kwds), when=when, reraise=reraise' E and: ' )' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:260: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "self = <_HookCaller 'pytest_runtest_call'>, args = ()" E and: "kwargs = {'item': }, argname = 'item', firstresult = False" E and: '' E and: ' def __call__(self, *args, **kwargs):' E and: ' if args:' E and: ' raise TypeError("hook calling supports only keyword arguments")' E and: ' assert not self.is_historic()' E and: ' ' E and: ' # This is written to avoid expensive operations when not needed.' E and: ' if self.spec:' E and: ' for argname in self.spec.argnames:' E and: ' if argname not in kwargs:' E and: ' notincall = tuple(set(self.spec.argnames) - kwargs.keys())' E and: ' warnings.warn(' E and: ' "Argument(s) {} which are declared in the hookspec "' E and: ' "can not be found in this hook call".format(notincall),' E and: ' stacklevel=2,' E and: ' )' E and: ' break' E and: ' ' E and: ' firstresult = self.spec.opts.get("firstresult")' E and: ' else:' E and: ' firstresult = False' E and: ' ' E and: '> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = <_pytest.config.PytestPluginManager object at 0xffffffbc8b8810>' E and: "hook_name = 'pytest_runtest_call'" E and: "methods = [>]" E and: "kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _hookexec(self, hook_name, methods, kwargs, firstresult):' E and: ' # called from all hookcaller instances.' E and: ' # enable_tracing will set its own wrapping function at self._inner_hookexec' E and: '> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:80: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "kwargs = {'item': }, firstresult = False" E and: '' E and: ' def traced_hookexec(hook_name, hook_impls, kwargs, firstresult):' E and: ' before(hook_name, hook_impls, kwargs)' E and: ' outcome = _Result.from_call(' E and: ' lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)' E and: ' )' E and: ' after(outcome, hook_name, hook_impls, kwargs)' E and: '> return outcome.get_result()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:327: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def get_result(self):' E and: ' """Get the result(s) for this hook call.' E and: ' ' E and: ' If the hook was marked as a ``firstresult`` only a single value' E and: ' will be returned otherwise a list of results.' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' if self._excinfo is None:' E and: ' return self._result' E and: ' else:' E and: ' ex = self._excinfo' E and: '> raise ex[1].with_traceback(ex[2])' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "cls = " E and: 'func = .traced_hookexec.. at 0xffffffbc9b3060>' E and: '' E and: ' @classmethod' E and: ' def from_call(cls, func):' E and: ' __tracebackhide__ = True' E and: ' result = excinfo = None' E and: ' try:' E and: '> result = func()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:33: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: '> lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)' E and: ' )' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:324: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "caller_kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):' E and: ' """Execute a call into multiple python functions/methods and return the' E and: ' result(s).' E and: ' ' E and: ' ``caller_kwargs`` comes from _HookCaller.__call__().' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' results = []' E and: ' excinfo = None' E and: ' try: # run impl and wrapper setup functions in a loop' E and: ' teardowns = []' E and: ' try:' E and: ' for hook_impl in reversed(hook_impls):' E and: ' try:' E and: ' args = [caller_kwargs[argname] for argname in hook_impl.argnames]' E and: ' except KeyError:' E and: ' for argname in hook_impl.argnames:' E and: ' if argname not in caller_kwargs:' E and: ' raise HookCallError(' E and: ' f"hook call must provide argument {argname!r}"' E and: ' )' E and: ' ' E and: ' if hook_impl.hookwrapper:' E and: ' try:' E and: ' gen = hook_impl.function(*args)' E and: ' next(gen) # first yield' E and: ' teardowns.append(gen)' E and: ' except StopIteration:' E and: ' _raise_wrapfail(gen, "did not yield")' E and: ' else:' E and: ' res = hook_impl.function(*args)' E and: ' if res is not None:' E and: ' results.append(res)' E and: ' if firstresult: # halt further impl calls' E and: ' break' E and: ' except BaseException:' E and: ' excinfo = sys.exc_info()' E and: ' finally:' E and: ' if firstresult: # first result hooks return a single value' E and: ' outcome = _Result(results[0] if results else None, excinfo)' E and: ' else:' E and: ' outcome = _Result(results, excinfo)' E and: ' ' E and: ' # run all wrapper post-yield blocks' E and: ' for gen in reversed(teardowns):' E and: ' try:' E and: ' gen.send(outcome)' E and: ' _raise_wrapfail(gen, "has second yield")' E and: ' except StopIteration:' E and: ' pass' E and: ' ' E and: '> return outcome.get_result()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_callers.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def get_result(self):' E and: ' """Get the result(s) for this hook call.' E and: ' ' E and: ' If the hook was marked as a ``firstresult`` only a single value' E and: ' will be returned otherwise a list of results.' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' if self._excinfo is None:' E and: ' return self._result' E and: ' else:' E and: ' ex = self._excinfo' E and: '> raise ex[1].with_traceback(ex[2])' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "caller_kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):' E and: ' """Execute a call into multiple python functions/methods and return the' E and: ' result(s).' E and: ' ' E and: ' ``caller_kwargs`` comes from _HookCaller.__call__().' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' results = []' E and: ' excinfo = None' E and: ' try: # run impl and wrapper setup functions in a loop' E and: ' teardowns = []' E and: ' try:' E and: ' for hook_impl in reversed(hook_impls):' E and: ' try:' E and: ' args = [caller_kwargs[argname] for argname in hook_impl.argnames]' E and: ' except KeyError:' E and: ' for argname in hook_impl.argnames:' E and: ' if argname not in caller_kwargs:' E and: ' raise HookCallError(' E and: ' f"hook call must provide argument {argname!r}"' E and: ' )' E and: ' ' E and: ' if hook_impl.hookwrapper:' E and: ' try:' E and: ' gen = hook_impl.function(*args)' E and: ' next(gen) # first yield' E and: ' teardowns.append(gen)' E and: ' except StopIteration:' E and: ' _raise_wrapfail(gen, "did not yield")' E and: ' else:' E and: '> res = hook_impl.function(*args)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_callers.py:39: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'item = ' E and: '' E and: ' def pytest_runtest_call(item: Item) -> None:' E and: ' _update_current_test_var(item, "call")' E and: ' try:' E and: ' del sys.last_type' E and: ' del sys.last_value' E and: ' del sys.last_traceback' E and: ' except AttributeError:' E and: ' pass' E and: ' try:' E and: ' item.runtest()' E and: ' except Exception as e:' E and: ' # Store trace info to allow postmortem debugging' E and: ' sys.last_type = type(e)' E and: ' sys.last_value = e' E and: ' assert e.__traceback__ is not None' E and: ' # Skip *this* frame' E and: ' sys.last_traceback = e.__traceback__.tb_next' E and: '> raise e' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:175: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'item = ' E and: '' E and: ' def pytest_runtest_call(item: Item) -> None:' E and: ' _update_current_test_var(item, "call")' E and: ' try:' E and: ' del sys.last_type' E and: ' del sys.last_value' E and: ' del sys.last_traceback' E and: ' except AttributeError:' E and: ' pass' E and: ' try:' E and: '> item.runtest()' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:167: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def runtest(self):' E and: " with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \\" E and: " BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \\" E and: ' redirect_stdout(to), redirect_stderr(te):' E and: '> found_errors = check_file(' E and: ' self.fspath,' E and: ' self.flake8ignore,' E and: ' self.maxlength,' E and: ' self.maxdoclength,' E and: ' self.maxcomplexity,' E and: ' self.showsource,' E and: ' self.statistics' E and: ' )' E and: '' E and: '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "path = local('/tmp/pytest-of-mockbuild/pytest-0/test_mtime_caching0/test_mtime_caching.py')" E and: "flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = ''" E and: 'showsource = [], statistics = []' E and: '' E and: ' def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity,' E and: ' showsource, statistics):' E and: ' """Run flake8 over a single file, and return the number of failures."""' E and: ' args = []' E and: ' if maxlength:' E and: " args += ['--max-line-length', maxlength]" E and: ' if maxdoclenght:' E and: " args += ['--max-doc-length', maxdoclenght]" E and: ' if maxcomplexity:' E and: " args += ['--max-complexity', maxcomplexity]" E and: ' if showsource:' E and: " args += ['--show-source']" E and: ' if statistics:' E and: " args += ['--statistics']" E and: ' app = application.Application()' E and: ' prelim_opts, remaining_args = app.parse_preliminary_options(args)' E and: '> config_finder = config.ConfigFileFinder(' E and: ' app.program,' E and: ' prelim_opts.append_config,' E and: ' config_file=prelim_opts.config,' E and: ' ignore_config_files=prelim_opts.isolated,' E and: ' )' E and: "E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'" E and: '' E and: '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError' E and: '=============================== warnings summary ===============================' E and: '../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173' E and: ' /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8' E and: ' self._mark_plugins_for_rewrite(hook)' E and: '' E and: '-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html' E and: '=========================== short test summary info ============================' E and: "FAILED hello.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.con..." E and: "FAILED test_mtime_caching.py::flake-8::FLAKE8 - AttributeError: module 'flake..." E and: '========================= 2 failed, 1 warning in 1.95s =========================' E remains unmatched: '*W293*' /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:91: Failed ---------------------------- Captured stderr setup ----------------------------- /tmp/pytest-of-mockbuild/pytest-0/test_mtime_caching0 ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_mtime_caching0 plugins: flake8-1.1.1 collected 2 items hello.py F [ 50%] test_mtime_caching.py F [100%] =================================== FAILURES =================================== _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbc9b2ca0> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbc8b8810> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbc9b2b60> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_mtime_caching0/hello.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbc9b1b20> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbc8b8810> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbc9b3060> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_mtime_caching0/test_mtime_caching.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED hello.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.con... FAILED test_mtime_caching.py::flake-8::FLAKE8 - AttributeError: module 'flake... ========================= 2 failed, 1 warning in 1.95s ========================= _______________________________ test_ok_verbose ________________________________ testdir = def test_ok_verbose(testdir): p = testdir.makepyfile(""" class AClass: pass """) p = p.write(p.read() + "\n") result = testdir.runpytest("--flake8", "--verbose") result.stdout.fnmatch_lines([ "*test_ok_verbose*", ]) > result.assert_outcomes(passed=1) E AssertionError: assert {'errors': 0,...pped': 0, ...} == {'errors': 0,...pped': 0, ...} E Omitting 4 identical items, use -vv to show E Differing items: E {'passed': 0} != {'passed': 1} E {'failed': 1} != {'failed': 0} E Use -v to get more diff /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:139: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_ok_verbose0 plugins: flake8-1.1.1 collecting ... collected 1 item test_ok_verbose.py::flake-8::FLAKE8 FAILED [100%] =================================== FAILURES =================================== _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbca0c400> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbcacf490> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbca0c5e0> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_ok_verbose0/test_ok_verbose.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test_ok_verbose.py::flake-8::FLAKE8 - AttributeError: module 'flake8.o... ========================= 1 failed, 1 warning in 0.93s ========================= ______________________________ test_keyword_match ______________________________ testdir = def test_keyword_match(testdir): testdir.makepyfile(""" def test_hello(): a=[ 1,123] # """) result = testdir.runpytest("--flake8", "-mflake8") > result.stdout.fnmatch_lines([ "*E201*", "*1 failed*", ]) E Failed: nomatch: '*E201*' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_keyword_match0' E and: 'plugins: flake8-1.1.1' E and: 'collected 2 items / 1 deselected / 1 selected' E and: '' E and: 'test_keyword_match.py F [100%]' E and: '' E and: '=================================== FAILURES ===================================' E and: '_________________________________ FLAKE8-check _________________________________' E and: '' E and: "cls = " E and: 'func = . at 0xffffffbca0e020>' E and: "when = 'call'" E and: "reraise = (, )" E and: '' E and: ' @classmethod' E and: ' def from_call(' E and: ' cls,' E and: ' func: "Callable[[], TResult]",' E and: ' when: "Literal[\'collect\', \'setup\', \'call\', \'teardown\']",' E and: ' reraise: Optional[' E and: ' Union[Type[BaseException], Tuple[Type[BaseException], ...]]' E and: ' ] = None,' E and: ' ) -> "CallInfo[TResult]":' E and: ' """Call func, wrapping the result in a CallInfo.' E and: ' ' E and: ' :param func:' E and: ' The function to call. Called without arguments.' E and: ' :param when:' E and: ' The phase in which the function is called.' E and: ' :param reraise:' E and: ' Exception or exceptions that shall propagate if raised by the' E and: ' function, instead of being wrapped in the CallInfo.' E and: ' """' E and: ' excinfo = None' E and: ' start = timing.time()' E and: ' precise_start = timing.perf_counter()' E and: ' try:' E and: '> result: Optional[TResult] = func()' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:339: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: '> lambda: ihook(item=item, **kwds), when=when, reraise=reraise' E and: ' )' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:260: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "self = <_HookCaller 'pytest_runtest_call'>, args = ()" E and: "kwargs = {'item': }, argname = 'item', firstresult = False" E and: '' E and: ' def __call__(self, *args, **kwargs):' E and: ' if args:' E and: ' raise TypeError("hook calling supports only keyword arguments")' E and: ' assert not self.is_historic()' E and: ' ' E and: ' # This is written to avoid expensive operations when not needed.' E and: ' if self.spec:' E and: ' for argname in self.spec.argnames:' E and: ' if argname not in kwargs:' E and: ' notincall = tuple(set(self.spec.argnames) - kwargs.keys())' E and: ' warnings.warn(' E and: ' "Argument(s) {} which are declared in the hookspec "' E and: ' "can not be found in this hook call".format(notincall),' E and: ' stacklevel=2,' E and: ' )' E and: ' break' E and: ' ' E and: ' firstresult = self.spec.opts.get("firstresult")' E and: ' else:' E and: ' firstresult = False' E and: ' ' E and: '> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = <_pytest.config.PytestPluginManager object at 0xffffffbcbdbe90>' E and: "hook_name = 'pytest_runtest_call'" E and: "methods = [>]" E and: "kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _hookexec(self, hook_name, methods, kwargs, firstresult):' E and: ' # called from all hookcaller instances.' E and: ' # enable_tracing will set its own wrapping function at self._inner_hookexec' E and: '> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:80: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "kwargs = {'item': }, firstresult = False" E and: '' E and: ' def traced_hookexec(hook_name, hook_impls, kwargs, firstresult):' E and: ' before(hook_name, hook_impls, kwargs)' E and: ' outcome = _Result.from_call(' E and: ' lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)' E and: ' )' E and: ' after(outcome, hook_name, hook_impls, kwargs)' E and: '> return outcome.get_result()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:327: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def get_result(self):' E and: ' """Get the result(s) for this hook call.' E and: ' ' E and: ' If the hook was marked as a ``firstresult`` only a single value' E and: ' will be returned otherwise a list of results.' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' if self._excinfo is None:' E and: ' return self._result' E and: ' else:' E and: ' ex = self._excinfo' E and: '> raise ex[1].with_traceback(ex[2])' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "cls = " E and: 'func = .traced_hookexec.. at 0xffffffbca0e0c0>' E and: '' E and: ' @classmethod' E and: ' def from_call(cls, func):' E and: ' __tracebackhide__ = True' E and: ' result = excinfo = None' E and: ' try:' E and: '> result = func()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:33: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: '> lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)' E and: ' )' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_manager.py:324: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "caller_kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):' E and: ' """Execute a call into multiple python functions/methods and return the' E and: ' result(s).' E and: ' ' E and: ' ``caller_kwargs`` comes from _HookCaller.__call__().' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' results = []' E and: ' excinfo = None' E and: ' try: # run impl and wrapper setup functions in a loop' E and: ' teardowns = []' E and: ' try:' E and: ' for hook_impl in reversed(hook_impls):' E and: ' try:' E and: ' args = [caller_kwargs[argname] for argname in hook_impl.argnames]' E and: ' except KeyError:' E and: ' for argname in hook_impl.argnames:' E and: ' if argname not in caller_kwargs:' E and: ' raise HookCallError(' E and: ' f"hook call must provide argument {argname!r}"' E and: ' )' E and: ' ' E and: ' if hook_impl.hookwrapper:' E and: ' try:' E and: ' gen = hook_impl.function(*args)' E and: ' next(gen) # first yield' E and: ' teardowns.append(gen)' E and: ' except StopIteration:' E and: ' _raise_wrapfail(gen, "did not yield")' E and: ' else:' E and: ' res = hook_impl.function(*args)' E and: ' if res is not None:' E and: ' results.append(res)' E and: ' if firstresult: # halt further impl calls' E and: ' break' E and: ' except BaseException:' E and: ' excinfo = sys.exc_info()' E and: ' finally:' E and: ' if firstresult: # first result hooks return a single value' E and: ' outcome = _Result(results[0] if results else None, excinfo)' E and: ' else:' E and: ' outcome = _Result(results, excinfo)' E and: ' ' E and: ' # run all wrapper post-yield blocks' E and: ' for gen in reversed(teardowns):' E and: ' try:' E and: ' gen.send(outcome)' E and: ' _raise_wrapfail(gen, "has second yield")' E and: ' except StopIteration:' E and: ' pass' E and: ' ' E and: '> return outcome.get_result()' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_callers.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def get_result(self):' E and: ' """Get the result(s) for this hook call.' E and: ' ' E and: ' If the hook was marked as a ``firstresult`` only a single value' E and: ' will be returned otherwise a list of results.' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' if self._excinfo is None:' E and: ' return self._result' E and: ' else:' E and: ' ex = self._excinfo' E and: '> raise ex[1].with_traceback(ex[2])' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_result.py:60: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "hook_name = 'pytest_runtest_call'" E and: "hook_impls = [>]" E and: "caller_kwargs = {'item': }, firstresult = False" E and: '' E and: ' def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):' E and: ' """Execute a call into multiple python functions/methods and return the' E and: ' result(s).' E and: ' ' E and: ' ``caller_kwargs`` comes from _HookCaller.__call__().' E and: ' """' E and: ' __tracebackhide__ = True' E and: ' results = []' E and: ' excinfo = None' E and: ' try: # run impl and wrapper setup functions in a loop' E and: ' teardowns = []' E and: ' try:' E and: ' for hook_impl in reversed(hook_impls):' E and: ' try:' E and: ' args = [caller_kwargs[argname] for argname in hook_impl.argnames]' E and: ' except KeyError:' E and: ' for argname in hook_impl.argnames:' E and: ' if argname not in caller_kwargs:' E and: ' raise HookCallError(' E and: ' f"hook call must provide argument {argname!r}"' E and: ' )' E and: ' ' E and: ' if hook_impl.hookwrapper:' E and: ' try:' E and: ' gen = hook_impl.function(*args)' E and: ' next(gen) # first yield' E and: ' teardowns.append(gen)' E and: ' except StopIteration:' E and: ' _raise_wrapfail(gen, "did not yield")' E and: ' else:' E and: '> res = hook_impl.function(*args)' E and: '' E and: '/usr/lib/python3.11/site-packages/pluggy/_callers.py:39: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'item = ' E and: '' E and: ' def pytest_runtest_call(item: Item) -> None:' E and: ' _update_current_test_var(item, "call")' E and: ' try:' E and: ' del sys.last_type' E and: ' del sys.last_value' E and: ' del sys.last_traceback' E and: ' except AttributeError:' E and: ' pass' E and: ' try:' E and: ' item.runtest()' E and: ' except Exception as e:' E and: ' # Store trace info to allow postmortem debugging' E and: ' sys.last_type = type(e)' E and: ' sys.last_value = e' E and: ' assert e.__traceback__ is not None' E and: ' # Skip *this* frame' E and: ' sys.last_traceback = e.__traceback__.tb_next' E and: '> raise e' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:175: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'item = ' E and: '' E and: ' def pytest_runtest_call(item: Item) -> None:' E and: ' _update_current_test_var(item, "call")' E and: ' try:' E and: ' del sys.last_type' E and: ' del sys.last_value' E and: ' del sys.last_traceback' E and: ' except AttributeError:' E and: ' pass' E and: ' try:' E and: '> item.runtest()' E and: '' E and: '/usr/lib/python3.11/site-packages/_pytest/runner.py:167: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: 'self = ' E and: '' E and: ' def runtest(self):' E and: " with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \\" E and: " BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \\" E and: ' redirect_stdout(to), redirect_stderr(te):' E and: '> found_errors = check_file(' E and: ' self.fspath,' E and: ' self.flake8ignore,' E and: ' self.maxlength,' E and: ' self.maxdoclength,' E and: ' self.maxcomplexity,' E and: ' self.showsource,' E and: ' self.statistics' E and: ' )' E and: '' E and: '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "path = local('/tmp/pytest-of-mockbuild/pytest-0/test_keyword_match0/test_keyword_match.py')" E and: "flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = ''" E and: 'showsource = [], statistics = []' E and: '' E and: ' def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity,' E and: ' showsource, statistics):' E and: ' """Run flake8 over a single file, and return the number of failures."""' E and: ' args = []' E and: ' if maxlength:' E and: " args += ['--max-line-length', maxlength]" E and: ' if maxdoclenght:' E and: " args += ['--max-doc-length', maxdoclenght]" E and: ' if maxcomplexity:' E and: " args += ['--max-complexity', maxcomplexity]" E and: ' if showsource:' E and: " args += ['--show-source']" E and: ' if statistics:' E and: " args += ['--statistics']" E and: ' app = application.Application()' E and: ' prelim_opts, remaining_args = app.parse_preliminary_options(args)' E and: '> config_finder = config.ConfigFileFinder(' E and: ' app.program,' E and: ' prelim_opts.append_config,' E and: ' config_file=prelim_opts.config,' E and: ' ignore_config_files=prelim_opts.isolated,' E and: ' )' E and: "E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'" E and: '' E and: '/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError' E and: '=============================== warnings summary ===============================' E and: '../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173' E and: ' /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8' E and: ' self._mark_plugins_for_rewrite(hook)' E and: '' E and: '-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html' E and: '=========================== short test summary info ============================' E and: "FAILED test_keyword_match.py::flake-8::FLAKE8 - AttributeError: module 'flake..." E and: '================== 1 failed, 1 deselected, 1 warning in 0.99s ==================' E remains unmatched: '*E201*' /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:149: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_keyword_match0 plugins: flake8-1.1.1 collected 2 items / 1 deselected / 1 selected test_keyword_match.py F [100%] =================================== FAILURES =================================== _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbca0e020> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbcbdbe90> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbca0e0c0> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_keyword_match0/test_keyword_match.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test_keyword_match.py::flake-8::FLAKE8 - AttributeError: module 'flake... ================== 1 failed, 1 deselected, 1 warning in 0.99s ================== ____________________________ test_run_on_init_file _____________________________ testdir = def test_run_on_init_file(testdir): d = testdir.mkpydir("tests") result = testdir.runpytest("--flake8", d / "__init__.py") > result.assert_outcomes(passed=1) E AssertionError: assert {'errors': 0,...pped': 0, ...} == {'errors': 0,...pped': 0, ...} E Omitting 4 identical items, use -vv to show E Differing items: E {'passed': 0} != {'passed': 1} E {'failed': 1} != {'failed': 0} E Use -v to get more diff /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:159: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_run_on_init_file0 plugins: flake8-1.1.1 collected 1 item tests/__init__.py F [100%] =================================== FAILURES =================================== _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbcb28f40> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbc834810> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbcb28fe0> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_run_on_init_file0/tests/__init__.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/__init__.py::flake-8::FLAKE8 - AttributeError: module 'flake8.op... ========================= 1 failed, 1 warning in 0.97s ========================= ______________________________ test_unicode_error ______________________________ testdir = @pytest.mark.xfail("sys.platform == 'win32'") def test_unicode_error(testdir): x = testdir.tmpdir.join("x.py") import codecs f = codecs.open(str(x), "w", encoding="utf8") > f.write(py.builtin._totext(""" # coding=utf8 accent_map = { u'\\xc0': 'a', # À -> a non-ascii comment crashes it } """, "utf8")) E AttributeError: module 'py' has no attribute 'builtin' /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:167: AttributeError _____________________________ test_junit_classname _____________________________ testdir = def test_junit_classname(testdir): testdir.makepyfile("") result = testdir.runpytest("--flake8", "--junit-xml=TEST.xml") junit = testdir.tmpdir.join("TEST.xml") with open(str(junit)) as j_file: j_text = j_file.read() > result.assert_outcomes(passed=1) E AssertionError: assert {'errors': 0,...pped': 0, ...} == {'errors': 0,...pped': 0, ...} E Omitting 4 identical items, use -vv to show E Differing items: E {'passed': 0} != {'passed': 1} E {'failed': 1} != {'failed': 0} E Use -v to get more diff /builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:192: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_junit_classname0 plugins: flake8-1.1.1 collected 1 item test_junit_classname.py F [100%] =================================== FAILURES =================================== _________________________________ FLAKE8-check _________________________________ cls = func = . at 0xffffffbcb2b7e0> 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.11/site-packages/_pytest/runner.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3.11/site-packages/_pytest/runner.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'>, args = () kwargs = {'item': }, argname = 'item', firstresult = False def __call__(self, *args, **kwargs): if args: raise TypeError("hook calling supports only keyword arguments") assert not self.is_historic() # This is written to avoid expensive operations when not needed. if self.spec: for argname in self.spec.argnames: if argname not in kwargs: notincall = tuple(set(self.spec.argnames) - kwargs.keys()) warnings.warn( "Argument(s) {} which are declared in the hookspec " "can not be found in this hook call".format(notincall), stacklevel=2, ) break firstresult = self.spec.opts.get("firstresult") else: firstresult = False > return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_hooks.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0xffffffbca71a50> hook_name = 'pytest_runtest_call' methods = [>] kwargs = {'item': }, firstresult = False def _hookexec(self, hook_name, methods, kwargs, firstresult): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.11/site-packages/pluggy/_manager.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] kwargs = {'item': }, firstresult = False def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): before(hook_name, hook_impls, kwargs) outcome = _Result.from_call( lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) after(outcome, hook_name, hook_impls, kwargs) > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_manager.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = func = .traced_hookexec.. at 0xffffffbcb2ba60> @classmethod def from_call(cls, func): __tracebackhide__ = True result = excinfo = None try: > result = func() /usr/lib/python3.11/site-packages/pluggy/_result.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) ) /usr/lib/python3.11/site-packages/pluggy/_manager.py:324: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: res = hook_impl.function(*args) if res is not None: results.append(res) if firstresult: # halt further impl calls break except BaseException: excinfo = sys.exc_info() finally: if firstresult: # first result hooks return a single value outcome = _Result(results[0] if results else None, excinfo) else: outcome = _Result(results, excinfo) # run all wrapper post-yield blocks for gen in reversed(teardowns): try: gen.send(outcome) _raise_wrapfail(gen, "has second yield") except StopIteration: pass > return outcome.get_result() /usr/lib/python3.11/site-packages/pluggy/_callers.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def get_result(self): """Get the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results. """ __tracebackhide__ = True if self._excinfo is None: return self._result else: ex = self._excinfo > raise ex[1].with_traceback(ex[2]) /usr/lib/python3.11/site-packages/pluggy/_result.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook_name = 'pytest_runtest_call' hook_impls = [>] caller_kwargs = {'item': }, firstresult = False def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): """Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). """ __tracebackhide__ = True results = [] excinfo = None try: # run impl and wrapper setup functions in a loop teardowns = [] try: for hook_impl in reversed(hook_impls): try: args = [caller_kwargs[argname] for argname in hook_impl.argnames] except KeyError: for argname in hook_impl.argnames: if argname not in caller_kwargs: raise HookCallError( f"hook call must provide argument {argname!r}" ) if hook_impl.hookwrapper: try: gen = hook_impl.function(*args) next(gen) # first yield teardowns.append(gen) except StopIteration: _raise_wrapfail(gen, "did not yield") else: > res = hook_impl.function(*args) /usr/lib/python3.11/site-packages/pluggy/_callers.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow postmortem debugging sys.last_type = type(e) sys.last_value = e assert e.__traceback__ is not None # Skip *this* frame sys.last_traceback = e.__traceback__.tb_next > raise e /usr/lib/python3.11/site-packages/_pytest/runner.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: > item.runtest() /usr/lib/python3.11/site-packages/_pytest/runner.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def runtest(self): with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ redirect_stdout(to), redirect_stderr(te): > found_errors = check_file( self.fspath, self.flake8ignore, self.maxlength, self.maxdoclength, self.maxcomplexity, self.showsource, self.statistics ) /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = local('/tmp/pytest-of-mockbuild/pytest-0/test_junit_classname0/test_junit_classname.py') flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' showsource = [], statistics = [] def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, showsource, statistics): """Run flake8 over a single file, and return the number of failures.""" args = [] if maxlength: args += ['--max-line-length', maxlength] if maxdoclenght: args += ['--max-doc-length', maxdoclenght] if maxcomplexity: args += ['--max-complexity', maxcomplexity] if showsource: args += ['--show-source'] if statistics: args += ['--statistics'] app = application.Application() prelim_opts, remaining_args = app.parse_preliminary_options(args) > config_finder = config.ConfigFileFinder( app.program, prelim_opts.append_config, config_file=prelim_opts.config, ignore_config_files=prelim_opts.isolated, ) E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' /builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-3.fc38.noarch/usr/lib/python3.11/site-packages/pytest_flake8.py:217: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173 /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:1173: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 self._mark_plugins_for_rewrite(hook) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html - generated xml file: /tmp/pytest-of-mockbuild/pytest-0/test_junit_classname0/TEST.xml - =========================== short test summary info ============================ FAILED test_junit_classname.py::flake-8::FLAKE8 - AttributeError: module 'fla... ========================= 1 failed, 1 warning in 1.19s ========================= =========================== short test summary info ============================ FAILED pytest_flake8.py::flake-8::FLAKE8 - AttributeError: module 'flake8.opt... FAILED setup.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.con... FAILED test_flake8.py::flake-8::FLAKE8 - AttributeError: module 'flake8.optio... FAILED test_flake8.py::TestIgnores::test_default_flake8_ignores - AssertionEr... FAILED test_flake8.py::TestIgnores::test_ignores_all - AssertionError: assert... FAILED test_flake8.py::TestIgnores::test_w293w292 - Failed: nomatch: '*W293*' FAILED test_flake8.py::TestIgnores::test_mtime_caching - Failed: nomatch: '*W... FAILED test_flake8.py::test_ok_verbose - AssertionError: assert {'errors': 0,... FAILED test_flake8.py::test_keyword_match - Failed: nomatch: '*E201*' FAILED test_flake8.py::test_run_on_init_file - AssertionError: assert {'error... FAILED test_flake8.py::test_unicode_error - AttributeError: module 'py' has n... FAILED test_flake8.py::test_junit_classname - AssertionError: assert {'errors... =================== 12 failed, 3 passed, 1 xfailed in 28.77s =================== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.uNUSnJ (%check) Bad exit status from /var/tmp/rpm-tmp.uNUSnJ (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec