<86>Jun 13 08:45:19 userdel[1561133]: delete user 'rooter' <86>Jun 13 08:45:19 userdel[1561133]: removed group 'rooter' owned by 'rooter' <86>Jun 13 08:45:19 userdel[1561133]: removed shadow group 'rooter' owned by 'rooter' <86>Jun 13 08:45:19 groupadd[1561258]: group added to /etc/group: name=rooter, GID=2561 <86>Jun 13 08:45:19 groupadd[1561258]: group added to /etc/gshadow: name=rooter <86>Jun 13 08:45:19 groupadd[1561258]: new group: name=rooter, GID=2561 <86>Jun 13 08:45:19 useradd[1561351]: new user: name=rooter, UID=2561, GID=2561, home=/root, shell=/bin/bash, from=none <86>Jun 13 08:45:19 userdel[1561530]: delete user 'builder' <86>Jun 13 08:45:19 userdel[1561530]: removed group 'builder' owned by 'builder' <86>Jun 13 08:45:19 userdel[1561530]: removed shadow group 'builder' owned by 'builder' <86>Jun 13 08:45:19 groupadd[1561632]: group added to /etc/group: name=builder, GID=2562 <86>Jun 13 08:45:19 groupadd[1561632]: group added to /etc/gshadow: name=builder <86>Jun 13 08:45:19 groupadd[1561632]: new group: name=builder, GID=2562 <86>Jun 13 08:45:19 useradd[1561706]: new user: name=builder, UID=2562, GID=2562, home=/usr/src, shell=/bin/bash, from=none <13>Jun 13 08:45:21 rpmi: libgdbm6-1.26-alt1 sisyphus+418729.200.2.1 1779276077 installed <13>Jun 13 08:45:21 rpmi: libgdbm_compat4-1.26-alt1 sisyphus+418729.200.2.1 1779276077 installed <13>Jun 13 08:45:21 rpmi: libsqlite3-3.50.4-alt1 sisyphus+391668.100.1.1 1754321138 installed <13>Jun 13 08:45:21 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432033 installed <13>Jun 13 08:45:21 rpmi: libexpat-2.7.4-alt1 sisyphus+407132.100.1.1 1770196717 installed <13>Jun 13 08:45:21 rpmi: openssl-config-3.5.0-alt1 sisyphus+399237.100.1.1 1762346864 installed <13>Jun 13 08:45:21 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962878 installed <13>Jun 13 08:45:21 rpmi: libp11-kit-1:0.26.2-alt1 sisyphus+420025.100.1.1 1780498464 installed <13>Jun 13 08:45:21 rpmi: libtasn1-4.21.0-alt2 sisyphus+420751.100.1.1 1781163748 installed <13>Jun 13 08:45:21 rpmi: rpm-macros-alternatives-0.5.3-alt1 sisyphus+371878.100.1.1 1737988822 installed <13>Jun 13 08:45:21 rpmi: alternatives-0.5.3-alt1 sisyphus+371878.100.1.1 1737988822 installed <13>Jun 13 08:45:21 rpmi: ca-certificates-2026.04.22-alt1 sisyphus+415942.100.6.1 1777316293 installed <13>Jun 13 08:45:21 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Jun 13 08:45:21 rpmi: p11-kit-trust-1:0.26.2-alt1 sisyphus+420025.100.1.1 1780498464 installed <13>Jun 13 08:45:21 rpmi: libcrypto3-3.5.4-alt1 sisyphus+399237.200.1.1 1762349280 installed <13>Jun 13 08:45:21 rpmi: libssl3-3.5.4-alt1 sisyphus+399237.200.1.1 1762349280 installed <13>Jun 13 08:45:21 rpmi: python3-modules-sqlite3-3.13.13-alt1 sisyphus+418935.100.1.1 1779453529 installed <13>Jun 13 08:45:21 rpmi: python3-3.13.13-alt1 sisyphus+418935.100.1.1 1779453529 installed <13>Jun 13 08:45:22 rpmi: python3-base-3.13.13-alt1 sisyphus+418935.100.1.1 1779453529 installed <13>Jun 13 08:45:22 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed <13>Jun 13 08:45:22 rpmi: tests-for-installed-python3-pkgs-0.1.29-alt1 sisyphus+398029.2500.12.1 1762716341 installed <13>Jun 13 08:45:22 rpmi: rpm-build-python3-0.1.29-alt1 sisyphus+398029.2500.12.1 1762716341 installed <13>Jun 13 08:45:23 rpmi: python3-module-packaging-26.2-alt1 sisyphus+416502.100.2.1 1777385153 installed <13>Jun 13 08:45:23 rpmi: python3-module-typing_extensions-4.15.0-alt2 sisyphus+399838.100.1.1 1762946472 installed <13>Jun 13 08:45:23 rpmi: python3-module-more-itertools-11.1.0-alt1 sisyphus+419223.100.2.1 1779891386 installed <13>Jun 13 08:45:23 rpmi: python3-module-jaraco.functools-4.5.0-alt1 sisyphus+418394.100.1.1 1778943566 installed <13>Jun 13 08:45:23 rpmi: python3-module-rpds-py-0.30.0-alt1 sisyphus+401506.100.1.2 1764598519 installed <13>Jun 13 08:45:23 rpmi: python3-module-attrs-26.1.0-alt1 sisyphus+414432.100.1.1 1775561563 installed <13>Jun 13 08:45:23 rpmi: python3-module-referencing-0.37.0-alt2 sisyphus+402615.2500.16.1 1772180069 installed <13>Jun 13 08:45:23 rpmi: python3-module-Pygments-2.20.0-alt1 sisyphus+413985.100.1.1 1775208360 installed <13>Jun 13 08:45:23 rpmi: python3-module-jsonschema-specifications-2025.9.1-alt1.1 sisyphus+413475.300.1.1 1774817522 installed <13>Jun 13 08:45:23 rpmi: python3-module-wheel-0.47.0-alt1 sisyphus+416101.100.1.1 1776938753 installed <13>Jun 13 08:45:23 rpmi: python3-module-pluggy-1.6.0-alt1.1 sisyphus+413474.300.2.1 1774829688 installed <13>Jun 13 08:45:23 rpmi: python3-module-platformdirs-4.10.0-alt1 sisyphus+419460.100.1.1 1779982322 installed <13>Jun 13 08:45:23 rpmi: python3-module-pathspec-1.1.1-alt1 sisyphus+416503.100.2.1 1777393721 installed <13>Jun 13 08:45:23 rpmi: python3-module-mypy_extensions-1.1.0-alt1 sisyphus+386398.100.1.1 1749196276 installed <13>Jun 13 08:45:23 rpmi: python3-module-librt-0.11.0-alt1 sisyphus+418197.100.1.1 1778829768 installed <13>Jun 13 08:45:23 rpmi: python3-module-markupsafe-1:3.0.3-alt1 sisyphus+396886.100.1.1 1760186182 installed <13>Jun 13 08:45:23 rpmi: python3-module-shellingham-1.5.4-alt1 sisyphus+332574.100.1.1 1698135363 installed <13>Jun 13 08:45:23 rpmi: python3-module-uc-micro-py-2.0.0-alt1 sisyphus+411114.100.1.1 1773327270 installed <13>Jun 13 08:45:23 rpmi: python3-module-linkify-it-py-2.1.0-alt1.1 sisyphus+413476.100.1.1 1774817789 installed <13>Jun 13 08:45:23 rpmi: python3-module-mdurl-0.1.2-alt1 sisyphus+318894.1000.3.1 1682420700 installed <13>Jun 13 08:45:23 rpmi: python3-module-markdown-it-4.0.0-alt1 sisyphus+394327.100.1.1 1757330325 installed <13>Jun 13 08:45:23 rpmi: python3-module-rich-15.0.0-alt1 sisyphus+415092.100.2.1 1776162196 installed <13>Jun 13 08:45:23 rpmi: python3-module-jaraco.context-6.1.2-alt1 sisyphus+412384.100.1.1 1774283927 installed <13>Jun 13 08:45:23 rpmi: python3-module-iniconfig-2.3.0-alt1 sisyphus+397749.100.2.1 1761040670 installed <13>Jun 13 08:45:23 rpmi: python3-module-ast-serialize-0.5.0-alt1 sisyphus+418490.100.1.1 1779096203 installed <13>Jun 13 08:45:23 rpmi: python3-module-annotated_doc-0.0.4-alt1 sisyphus+401429.100.1.1 1764433640 installed <13>Jun 13 08:45:23 rpmi: python3-module-typer-0.26.7-alt1 sisyphus+420440.200.3.1 1780928609 installed <13>Jun 13 08:45:23 rpmi: python3-module-typer-slim-0.26.7-alt1 sisyphus+420440.200.3.1 1780928609 installed <13>Jun 13 08:45:23 rpmi: python3-module-jaraco.text-4.2.0-alt1 sisyphus+408107.100.3.1 1771429608 installed <13>Jun 13 08:45:23 rpmi: python3-module-pkg-resources-1:80.10.2-alt2.1 sisyphus+413485.1000.2.3 1774838477 installed <13>Jun 13 08:45:23 rpmi: libyaml2-6.0.2-alt1 sisyphus+393301.100.1.1 1756210811 installed <13>Jun 13 08:45:24 rpmi: libpython3-3.13.13-alt1 sisyphus+418935.100.1.1 1779453529 installed <13>Jun 13 08:45:24 rpmi: python3-dev-3.13.13-alt1 sisyphus+418935.100.1.1 1779453529 installed <13>Jun 13 08:45:24 rpmi: python3-module-setuptools-1:82.0.1-alt1 sisyphus+411188.340.5.1 1773852239 installed <13>Jun 13 08:45:24 rpmi: python3-module-yaml-6.0.3-alt1 sisyphus+396216.400.4.1 1760409063 installed <13>Jun 13 08:45:24 rpmi: python3-module-mypy-2.0.0-alt1 sisyphus+417426.200.1.1 1778155628 installed <13>Jun 13 08:45:24 rpmi: python3-module-pytest-9.0.3-alt1 sisyphus+414567.100.1.1 1775647126 installed <13>Jun 13 08:45:25 rpmi: python3-module-jinja2-3.1.6-alt2 sisyphus+413629.100.1.1 1774945546 installed <13>Jun 13 08:45:25 rpmi: python3-module-jsonschema-4.26.0-alt1 sisyphus+405762.300.1.1 1769028273 installed <13>Jun 13 08:45:25 rpmi: python3-module-tomlkit-0.14.0-alt1 sisyphus+407344.100.1.1 1770368823 installed <13>Jun 13 08:45:25 rpmi: python3-module-regex-2026.1.15-alt1 sisyphus+411018.100.1.1 1773268467 installed <13>Jun 13 08:45:25 rpmi: python3-module-decorator-5.2.1-alt1 sisyphus+376067.100.1.1 1740491622 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-pytest-mypy-plugins-4.0.1-alt1.nosrc.rpm (w1.gzdio) <13>Jun 13 08:45:26 rpmi: python3-module-pyproject-installer-0.5.6-alt1 sisyphus+399940.100.1.1 1763030788 installed Installing python3-module-pytest-mypy-plugins-4.0.1-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpmb-tmp.wwaOAr + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf pytest-mypy-plugins-4.0.1 + echo 'Source #0 (pytest-mypy-plugins-4.0.1.tar):' Source #0 (pytest-mypy-plugins-4.0.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/pytest-mypy-plugins-4.0.1.tar + cd pytest-mypy-plugins-4.0.1 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpmb-tmp.8RwkiU + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd pytest-mypy-plugins-4.0.1 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1/pyproject.toml INFO : pyproject_installer.lib.build_backend : build-system was not found, using defaults INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: setuptools.build_meta:__legacy__ INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} /usr/lib/python3/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() INFO : root : running bdist_wheel INFO : root : running build INFO : root : running build_py INFO : root : creating build/lib/pytest_mypy_plugins INFO : root : copying pytest_mypy_plugins/utils.py -> build/lib/pytest_mypy_plugins INFO : root : copying pytest_mypy_plugins/item.py -> build/lib/pytest_mypy_plugins INFO : root : copying pytest_mypy_plugins/configs.py -> build/lib/pytest_mypy_plugins INFO : root : copying pytest_mypy_plugins/collect.py -> build/lib/pytest_mypy_plugins INFO : root : copying pytest_mypy_plugins/__init__.py -> build/lib/pytest_mypy_plugins INFO : root : copying pytest_mypy_plugins/py.typed -> build/lib/pytest_mypy_plugins INFO : root : copying pytest_mypy_plugins/schema.json -> build/lib/pytest_mypy_plugins INFO : root : installing to build/bdist.linux-i686/wheel INFO : root : running install INFO : root : running install_lib INFO : root : creating build/bdist.linux-i686/wheel INFO : root : creating build/bdist.linux-i686/wheel/pytest_mypy_plugins INFO : root : copying build/lib/pytest_mypy_plugins/schema.json -> build/bdist.linux-i686/wheel/./pytest_mypy_plugins INFO : root : copying build/lib/pytest_mypy_plugins/py.typed -> build/bdist.linux-i686/wheel/./pytest_mypy_plugins INFO : root : copying build/lib/pytest_mypy_plugins/__init__.py -> build/bdist.linux-i686/wheel/./pytest_mypy_plugins INFO : root : copying build/lib/pytest_mypy_plugins/collect.py -> build/bdist.linux-i686/wheel/./pytest_mypy_plugins INFO : root : copying build/lib/pytest_mypy_plugins/configs.py -> build/bdist.linux-i686/wheel/./pytest_mypy_plugins INFO : root : copying build/lib/pytest_mypy_plugins/item.py -> build/bdist.linux-i686/wheel/./pytest_mypy_plugins INFO : root : copying build/lib/pytest_mypy_plugins/utils.py -> build/bdist.linux-i686/wheel/./pytest_mypy_plugins INFO : root : running install_egg_info INFO : root : running egg_info INFO : root : creating pytest_mypy_plugins.egg-info INFO : root : writing pytest_mypy_plugins.egg-info/PKG-INFO INFO : root : writing dependency_links to pytest_mypy_plugins.egg-info/dependency_links.txt INFO : root : writing entry points to pytest_mypy_plugins.egg-info/entry_points.txt INFO : root : writing requirements to pytest_mypy_plugins.egg-info/requires.txt INFO : root : writing top-level names to pytest_mypy_plugins.egg-info/top_level.txt INFO : root : writing manifest file 'pytest_mypy_plugins.egg-info/SOURCES.txt' INFO : root : reading manifest file 'pytest_mypy_plugins.egg-info/SOURCES.txt' INFO : root : reading manifest template 'MANIFEST.in' INFO : root : adding license file 'LICENSE' INFO : root : writing manifest file 'pytest_mypy_plugins.egg-info/SOURCES.txt' INFO : root : Copying pytest_mypy_plugins.egg-info to build/bdist.linux-i686/wheel/./pytest_mypy_plugins-4.0.1-py3.13.egg-info INFO : root : running install_scripts INFO : root : creating build/bdist.linux-i686/wheel/pytest_mypy_plugins-4.0.1.dist-info/WHEEL INFO : wheel : creating '/usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1/dist/.tmp-243p1jml/pytest_mypy_plugins-4.0.1-py3-none-any.whl' and adding 'build/bdist.linux-i686/wheel' to it INFO : wheel : adding 'pytest_mypy_plugins/__init__.py' INFO : wheel : adding 'pytest_mypy_plugins/collect.py' INFO : wheel : adding 'pytest_mypy_plugins/configs.py' INFO : wheel : adding 'pytest_mypy_plugins/item.py' INFO : wheel : adding 'pytest_mypy_plugins/py.typed' INFO : wheel : adding 'pytest_mypy_plugins/schema.json' INFO : wheel : adding 'pytest_mypy_plugins/utils.py' INFO : wheel : adding 'pytest_mypy_plugins-4.0.1.dist-info/licenses/LICENSE' INFO : wheel : adding 'pytest_mypy_plugins-4.0.1.dist-info/METADATA' INFO : wheel : adding 'pytest_mypy_plugins-4.0.1.dist-info/WHEEL' INFO : wheel : adding 'pytest_mypy_plugins-4.0.1.dist-info/entry_points.txt' INFO : wheel : adding 'pytest_mypy_plugins-4.0.1.dist-info/top_level.txt' INFO : wheel : adding 'pytest_mypy_plugins-4.0.1.dist-info/RECORD' INFO : root : removing build/bdist.linux-i686/wheel INFO : pyproject_installer.build_cmd._build : Built wheel: pytest_mypy_plugins-4.0.1-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpmb-tmp.XMggeK + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd pytest-mypy-plugins-4.0.1 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: pytest_mypy_plugins-4.0.1-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_mypy_plugins-4.0.1.dist-info/licenses/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_mypy_plugins-4.0.1.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_mypy_plugins-4.0.1.dist-info/top_level.txt DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pytest_mypy_plugins-4.0.1.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Generating entrypoints scripts INFO : pyproject_installer.install_cmd._install : Wheel was installed + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/__init__.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/collect.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/configs.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/item.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/utils.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/__init__.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/collect.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/configs.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/item.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/utils.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/__init__.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/collect.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/configs.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/item.py compile /usr/src/tmp/python3-module-pytest-mypy-plugins-buildroot/usr/lib/python3/site-packages/pytest_mypy_plugins/utils.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/__init__.cpython-313.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/__init__.cpython-313.pyc' './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/__init__.cpython-313.opt-2.pyc' => './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/__init__.cpython-313.opt-1.pyc' './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/collect.cpython-313.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/collect.cpython-313.pyc' './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/configs.cpython-313.opt-1.pyc' => './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/configs.cpython-313.pyc' './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/configs.cpython-313.opt-2.pyc' => './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/configs.cpython-313.opt-1.pyc' './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/item.cpython-313.opt-2.pyc' => './usr/lib/python3/site-packages/pytest_mypy_plugins/__pycache__/item.cpython-313.opt-1.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpmb-tmp.NcwfZn + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd pytest-mypy-plugins-4.0.1 + export PYTHONPATH=/usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1 + PYTHONPATH=/usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest -k 'not (test_no_silence_site_packages_only or test_no_silence_site_packages_and_modify_pythonpath)' INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1/dist/pytest_mypy_plugins-4.0.1-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1/dist/pytest_mypy_plugins-4.0.1-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest', '-k', 'not (test_no_silence_site_packages_only or test_no_silence_site_packages_and_modify_pythonpath)'] ============================= test session starts ============================== platform linux -- Python 3.13.13, pytest-9.0.3, pluggy-1.6.0 rootdir: /usr/src/RPM/BUILD/pytest-mypy-plugins-4.0.1 configfile: pyproject.toml plugins: mypy-plugins-4.0.1 collected 97 items / 2 deselected / 95 selected pytest_mypy_plugins/tests/test-assert-type.yml .. pytest_mypy_plugins/tests/test-extension.yml . pytest_mypy_plugins/tests/test-mypy-config.yml . pytest_mypy_plugins/tests/test-parametrized.yml ........... pytest_mypy_plugins/tests/test-paths-from-env.yml . pytest_mypy_plugins/tests/test-regex-assertions.yml .......... pytest_mypy_plugins/tests/test-simple-cases.yml ......... pytest_mypy_plugins/tests/test_configs/test_join_toml_configs.py ....... pytest_mypy_plugins/tests/test_explicit_configs.py ...... pytest_mypy_plugins/tests/test_input_schema.py ......... pytest_mypy_plugins/tests/test_mypy_cache.py FFFFFFFFFFFFFF.F.F.F.FFFF pytest_mypy_plugins/tests/test_site_packages.py .. pytest_mypy_plugins/tests/test_utils.py ........... =================================== FAILURES =================================== _______________________ test_non_test_case_files_remain ________________________ temp_dir = PosixPath('/usr/src/tmp/tmpq13q7h57') def test_non_test_case_files_remain(temp_dir: Path) -> None: """ Tests that cache files not associated with ``files`` in a test case do not get removed. Assumes that cache files will be generated for typeshed's ``builtins.pyi`` when running any test case. """ cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() make_yaml_test_file( temp_dir, """ - case: test_non_test_case_files_cache_files_remain main: | """, ) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files should not be deleted > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpq13q7h57/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:36: AssertionError _________ test_cache_files_removed[single_module_distribution-default] _________ temp_dir = PosixPath('/usr/src/tmp/tmpsya6i8gg') contents = '\n- case: single_module_distribution\n main: |\n import my_mod\n files:\n - path: my_mod.py\n ' module_fpaths_no_suffix = ('my_mod',), mypy_cache_config = '' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpsya6i8gg/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError ________ test_cache_files_removed[single_module_distribution-no-sqlite] ________ temp_dir = PosixPath('/usr/src/tmp/tmpexawscv_') contents = '\n- case: single_module_distribution\n mypy_config: |\n sqlite_cache = False\n main: |\n import my_mod\n files:\n - path: my_mod.py\n ' module_fpaths_no_suffix = ('my_mod',) mypy_cache_config = 'sqlite_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed assert get_created_cache_files(cache_dir, ("builtins",)) > assert not get_created_cache_files(cache_dir, module_fpaths_no_suffix) E AssertionError: assert not ['my_mod.meta_ex.ff'] E + where ['my_mod.meta_ex.ff'] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpexawscv_/.mypy_cache/3.13'), ('my_mod',)) pytest_mypy_plugins/tests/test_mypy_cache.py:184: AssertionError _____ test_cache_files_removed[single_module_distribution-no-fixed-format] _____ temp_dir = PosixPath('/usr/src/tmp/tmpvz8mf1ty') contents = '\n- case: single_module_distribution\n mypy_config: |\n fixed_format_cache = False\n main: |\n import my_mod\n files:\n - path: my_mod.py\n ' module_fpaths_no_suffix = ('my_mod',) mypy_cache_config = 'fixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpvz8mf1ty/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError _________ test_cache_files_removed[single_module_distribution-legacy] __________ temp_dir = PosixPath('/usr/src/tmp/tmphxc2yja4') contents = '\n- case: single_module_distribution\n mypy_config: |\n sqlite_cache = False\n fixed_format_cache = False\n main: |\n import my_mod\n files:\n - path: my_mod.py\n ' module_fpaths_no_suffix = ('my_mod',) mypy_cache_config = 'sqlite_cache = False\nfixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed assert get_created_cache_files(cache_dir, ("builtins",)) > assert not get_created_cache_files(cache_dir, module_fpaths_no_suffix) E AssertionError: assert not ['my_mod.meta_ex.json'] E + where ['my_mod.meta_ex.json'] = get_created_cache_files(PosixPath('/usr/src/tmp/tmphxc2yja4/.mypy_cache/3.13'), ('my_mod',)) pytest_mypy_plugins/tests/test_mypy_cache.py:184: AssertionError ______________ test_cache_files_removed[standard_package-default] ______________ temp_dir = PosixPath('/usr/src/tmp/tmpn08gfpna') contents = '\n- case: standard_package\n main: |\n import my_pkg.my_mod\n import my_pkg.my_subpkg.my_mod\n files:\n - ... - path: my_pkg/my_mod.py\n - path: my_pkg/my_subpkg/__init__.py\n - path: my_pkg/my_subpkg/my_mod.py\n ' module_fpaths_no_suffix = ('my_pkg/__init__', 'my_pkg/my_mod', 'my_pkg/my_subpkg/__init__', 'my_pkg/my_subpkg/my_mod') mypy_cache_config = '' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpn08gfpna/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError _____________ test_cache_files_removed[standard_package-no-sqlite] _____________ temp_dir = PosixPath('/usr/src/tmp/tmpnl_egxtl') contents = '\n- case: standard_package\n mypy_config: |\n sqlite_cache = False\n main: |\n import my_pkg.my_mod\n impo... - path: my_pkg/my_mod.py\n - path: my_pkg/my_subpkg/__init__.py\n - path: my_pkg/my_subpkg/my_mod.py\n ' module_fpaths_no_suffix = ('my_pkg/__init__', 'my_pkg/my_mod', 'my_pkg/my_subpkg/__init__', 'my_pkg/my_subpkg/my_mod') mypy_cache_config = 'sqlite_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed assert get_created_cache_files(cache_dir, ("builtins",)) > assert not get_created_cache_files(cache_dir, module_fpaths_no_suffix) E AssertionError: assert not ['my_pkg/my_mod.meta_ex.ff', 'my_pkg/__init__.meta_ex.ff', 'my_pkg/my_subpkg/my_mod.meta_ex.ff', 'my_pkg/my_subpkg/__init__.meta_ex.ff'] E + where ['my_pkg/my_mod.meta_ex.ff', 'my_pkg/__init__.meta_ex.ff', 'my_pkg/my_subpkg/my_mod.meta_ex.ff', 'my_pkg/my_subpkg/__init__.meta_ex.ff'] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpnl_egxtl/.mypy_cache/3.13'), ('my_pkg/__init__', 'my_pkg/my_mod', 'my_pkg/my_subpkg/__init__', 'my_pkg/my_subpkg/my_mod')) pytest_mypy_plugins/tests/test_mypy_cache.py:184: AssertionError __________ test_cache_files_removed[standard_package-no-fixed-format] __________ temp_dir = PosixPath('/usr/src/tmp/tmpvbew8kur') contents = '\n- case: standard_package\n mypy_config: |\n fixed_format_cache = False\n main: |\n import my_pkg.my_mod\n ... - path: my_pkg/my_mod.py\n - path: my_pkg/my_subpkg/__init__.py\n - path: my_pkg/my_subpkg/my_mod.py\n ' module_fpaths_no_suffix = ('my_pkg/__init__', 'my_pkg/my_mod', 'my_pkg/my_subpkg/__init__', 'my_pkg/my_subpkg/my_mod') mypy_cache_config = 'fixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpvbew8kur/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError ______________ test_cache_files_removed[standard_package-legacy] _______________ temp_dir = PosixPath('/usr/src/tmp/tmpvv2_em8u') contents = '\n- case: standard_package\n mypy_config: |\n sqlite_cache = False\n fixed_format_cache = False\n main: |\n ... - path: my_pkg/my_mod.py\n - path: my_pkg/my_subpkg/__init__.py\n - path: my_pkg/my_subpkg/my_mod.py\n ' module_fpaths_no_suffix = ('my_pkg/__init__', 'my_pkg/my_mod', 'my_pkg/my_subpkg/__init__', 'my_pkg/my_subpkg/my_mod') mypy_cache_config = 'sqlite_cache = False\nfixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed assert get_created_cache_files(cache_dir, ("builtins",)) > assert not get_created_cache_files(cache_dir, module_fpaths_no_suffix) E AssertionError: assert not ['my_pkg/my_mod.meta_ex.json', 'my_pkg/__init__.meta_ex.json', 'my_pkg/my_subpkg/my_mod.meta_ex.json', 'my_pkg/my_subpkg/__init__.meta_ex.json'] E + where ['my_pkg/my_mod.meta_ex.json', 'my_pkg/__init__.meta_ex.json', 'my_pkg/my_subpkg/my_mod.meta_ex.json', 'my_pkg/my_subpkg/__init__.meta_ex.json'] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpvv2_em8u/.mypy_cache/3.13'), ('my_pkg/__init__', 'my_pkg/my_mod', 'my_pkg/my_subpkg/__init__', 'my_pkg/my_subpkg/my_mod')) pytest_mypy_plugins/tests/test_mypy_cache.py:184: AssertionError _____________ test_cache_files_removed[namespace_package-default] ______________ temp_dir = PosixPath('/usr/src/tmp/tmp8_5b_568') contents = '\n- case: namespace_package\n main: |\n import my_nspkg.my_mod\n import my_nspkg.my_nssubpkg.my_mod\n files:\n - path: my_nspkg/my_mod.py\n - path: my_nspkg/my_nssubpkg/my_mod.py\n ' module_fpaths_no_suffix = ('my_nspkg', 'my_nspkg/my_mod', 'my_nspkg/my_nssubpkg', 'my_nspkg/my_nssubpkg/my_mod') mypy_cache_config = '' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmp8_5b_568/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError ____________ test_cache_files_removed[namespace_package-no-sqlite] _____________ temp_dir = PosixPath('/usr/src/tmp/tmp0_5h7wl4') contents = '\n- case: namespace_package\n mypy_config: |\n sqlite_cache = False\n main: |\n import my_nspkg.my_mod\n i...pkg.my_nssubpkg.my_mod\n files:\n - path: my_nspkg/my_mod.py\n - path: my_nspkg/my_nssubpkg/my_mod.py\n ' module_fpaths_no_suffix = ('my_nspkg', 'my_nspkg/my_mod', 'my_nspkg/my_nssubpkg', 'my_nspkg/my_nssubpkg/my_mod') mypy_cache_config = 'sqlite_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed assert get_created_cache_files(cache_dir, ("builtins",)) > assert not get_created_cache_files(cache_dir, module_fpaths_no_suffix) E AssertionError: assert not ['my_nspkg.meta_ex.ff', 'my_nspkg/my_mod.meta_ex.ff', 'my_nspkg/my_nssubpkg.meta_ex.ff', 'my_nspkg/my_nssubpkg/my_mod.meta_ex.ff'] E + where ['my_nspkg.meta_ex.ff', 'my_nspkg/my_mod.meta_ex.ff', 'my_nspkg/my_nssubpkg.meta_ex.ff', 'my_nspkg/my_nssubpkg/my_mod.meta_ex.ff'] = get_created_cache_files(PosixPath('/usr/src/tmp/tmp0_5h7wl4/.mypy_cache/3.13'), ('my_nspkg', 'my_nspkg/my_mod', 'my_nspkg/my_nssubpkg', 'my_nspkg/my_nssubpkg/my_mod')) pytest_mypy_plugins/tests/test_mypy_cache.py:184: AssertionError _________ test_cache_files_removed[namespace_package-no-fixed-format] __________ temp_dir = PosixPath('/usr/src/tmp/tmplsev80k5') contents = '\n- case: namespace_package\n mypy_config: |\n fixed_format_cache = False\n main: |\n import my_nspkg.my_mod\...pkg.my_nssubpkg.my_mod\n files:\n - path: my_nspkg/my_mod.py\n - path: my_nspkg/my_nssubpkg/my_mod.py\n ' module_fpaths_no_suffix = ('my_nspkg', 'my_nspkg/my_mod', 'my_nspkg/my_nssubpkg', 'my_nspkg/my_nssubpkg/my_mod') mypy_cache_config = 'fixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmplsev80k5/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError ______________ test_cache_files_removed[namespace_package-legacy] ______________ temp_dir = PosixPath('/usr/src/tmp/tmpcntm3eza') contents = '\n- case: namespace_package\n mypy_config: |\n sqlite_cache = False\n fixed_format_cache = False\n main: |\n ...pkg.my_nssubpkg.my_mod\n files:\n - path: my_nspkg/my_mod.py\n - path: my_nspkg/my_nssubpkg/my_mod.py\n ' module_fpaths_no_suffix = ('my_nspkg', 'my_nspkg/my_mod', 'my_nspkg/my_nssubpkg', 'my_nspkg/my_nssubpkg/my_mod') mypy_cache_config = 'sqlite_cache = False\nfixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed assert get_created_cache_files(cache_dir, ("builtins",)) > assert not get_created_cache_files(cache_dir, module_fpaths_no_suffix) E AssertionError: assert not ['my_nspkg.meta_ex.json', 'my_nspkg/my_mod.meta_ex.json', 'my_nspkg/my_nssubpkg.meta_ex.json', 'my_nspkg/my_nssubpkg/my_mod.meta_ex.json'] E + where ['my_nspkg.meta_ex.json', 'my_nspkg/my_mod.meta_ex.json', 'my_nspkg/my_nssubpkg.meta_ex.json', 'my_nspkg/my_nssubpkg/my_mod.meta_ex.json'] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpcntm3eza/.mypy_cache/3.13'), ('my_nspkg', 'my_nspkg/my_mod', 'my_nspkg/my_nssubpkg', 'my_nspkg/my_nssubpkg/my_mod')) pytest_mypy_plugins/tests/test_mypy_cache.py:184: AssertionError ___________ test_cache_files_removed[standard_stub_package-default] ____________ temp_dir = PosixPath('/usr/src/tmp/tmpmyhuuyqq') contents = '\n- case: standard_stub_package\n main: |\n import my_pkg.my_mod\n import my_pkg.my_subpkg.my_mod\n files:\n ...s/my_mod.pyi\n - path: my_pkg-stubs/my_subpkg/__init__.pyi\n - path: my_pkg-stubs/my_subpkg/my_mod.pyi\n ' module_fpaths_no_suffix = ('my_pkg/__init__', 'my_pkg/my_mod', 'my_pkg/my_subpkg/__init__', 'my_pkg/my_subpkg/my_mod') mypy_cache_config = '' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpmyhuuyqq/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError _______ test_cache_files_removed[standard_stub_package-no-fixed-format] ________ temp_dir = PosixPath('/usr/src/tmp/tmp4zf0wamv') contents = '\n- case: standard_stub_package\n mypy_config: |\n fixed_format_cache = False\n main: |\n import my_pkg.my_mo...s/my_mod.pyi\n - path: my_pkg-stubs/my_subpkg/__init__.pyi\n - path: my_pkg-stubs/my_subpkg/my_mod.pyi\n ' module_fpaths_no_suffix = ('my_pkg/__init__', 'my_pkg/my_mod', 'my_pkg/my_subpkg/__init__', 'my_pkg/my_subpkg/my_mod') mypy_cache_config = 'fixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmp4zf0wamv/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError ___________ test_cache_files_removed[namespace_stub_package-default] ___________ temp_dir = PosixPath('/usr/src/tmp/tmpggsw4_bj') contents = '\n- case: namespace_stub_package\n main: |\n import my_nspkg.my_mod\n import my_nspkg.my_nssubpkg.my_mod\n files:\n - path: my_nspkg-stubs/my_mod.pyi\n - path: my_nspkg-stubs/my_nssubpkg/my_mod.pyi\n ' module_fpaths_no_suffix = ('my_nspkg', 'my_nspkg/my_mod', 'my_nspkg/my_nssubpkg', 'my_nspkg/my_nssubpkg/my_mod') mypy_cache_config = '' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpggsw4_bj/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError _______ test_cache_files_removed[namespace_stub_package-no-fixed-format] _______ temp_dir = PosixPath('/usr/src/tmp/tmp5dddz94j') contents = '\n- case: namespace_stub_package\n mypy_config: |\n fixed_format_cache = False\n main: |\n import my_nspkg.my...g.my_mod\n files:\n - path: my_nspkg-stubs/my_mod.pyi\n - path: my_nspkg-stubs/my_nssubpkg/my_mod.pyi\n ' module_fpaths_no_suffix = ('my_nspkg', 'my_nspkg/my_mod', 'my_nspkg/my_nssubpkg', 'my_nspkg/my_nssubpkg/my_mod') mypy_cache_config = 'fixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmp5dddz94j/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError _________ test_cache_files_removed[mixed_modules_and_packages-default] _________ temp_dir = PosixPath('/usr/src/tmp/tmpsz_efkob') contents = '\n- case: mixed_modules_and_packages\n main: |\n import my_mod\n import my_pkg.my_submod\n import my_pkg.my...pyi\n - path: my_stubpkg-stubs/my_subpkg/my_submod.pyi\n - path: my_nsstubpkg-stubs/my_subpkg/__init__.pyi\n ' module_fpaths_no_suffix = ('my_mod', 'my_pkg/__init__', 'my_pkg/my_submod', 'my_pkg/my_nssubpkg', 'my_pkg/my_nssubpkg/my_submod', 'my_nspkg', ...) mypy_cache_config = '' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpsz_efkob/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError ________ test_cache_files_removed[mixed_modules_and_packages-no-sqlite] ________ temp_dir = PosixPath('/usr/src/tmp/tmpli5ine4v') contents = '\n- case: mixed_modules_and_packages\n mypy_config: |\n sqlite_cache = False\n main: |\n import my_mod\n i...pyi\n - path: my_stubpkg-stubs/my_subpkg/my_submod.pyi\n - path: my_nsstubpkg-stubs/my_subpkg/__init__.pyi\n ' module_fpaths_no_suffix = ('my_mod', 'my_pkg/__init__', 'my_pkg/my_submod', 'my_pkg/my_nssubpkg', 'my_pkg/my_nssubpkg/my_submod', 'my_nspkg', ...) mypy_cache_config = 'sqlite_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed assert get_created_cache_files(cache_dir, ("builtins",)) > assert not get_created_cache_files(cache_dir, module_fpaths_no_suffix) E AssertionError: assert not ['my_mod.meta_ex.ff', 'my_nspkg.meta_ex.ff', 'my_nspkg/my_submod.meta_ex.ff', 'my_nspkg/my_subpkg/__init__.meta_ex.ff', 'my_pkg/my_submod.meta_ex.ff', 'my_pkg/my_nssubpkg.meta_ex.ff', ...] E + where ['my_mod.meta_ex.ff', 'my_nspkg.meta_ex.ff', 'my_nspkg/my_submod.meta_ex.ff', 'my_nspkg/my_subpkg/__init__.meta_ex.ff', 'my_pkg/my_submod.meta_ex.ff', 'my_pkg/my_nssubpkg.meta_ex.ff', ...] = get_created_cache_files(PosixPath('/usr/src/tmp/tmpli5ine4v/.mypy_cache/3.13'), ('my_mod', 'my_pkg/__init__', 'my_pkg/my_submod', 'my_pkg/my_nssubpkg', 'my_pkg/my_nssubpkg/my_submod', 'my_nspkg', ...)) pytest_mypy_plugins/tests/test_mypy_cache.py:184: AssertionError _____ test_cache_files_removed[mixed_modules_and_packages-no-fixed-format] _____ temp_dir = PosixPath('/usr/src/tmp/tmp2b4u1adl') contents = '\n- case: mixed_modules_and_packages\n mypy_config: |\n fixed_format_cache = False\n main: |\n import my_mod\...pyi\n - path: my_stubpkg-stubs/my_subpkg/my_submod.pyi\n - path: my_nsstubpkg-stubs/my_subpkg/__init__.pyi\n ' module_fpaths_no_suffix = ('my_mod', 'my_pkg/__init__', 'my_pkg/my_submod', 'my_pkg/my_nssubpkg', 'my_pkg/my_nssubpkg/my_submod', 'my_nspkg', ...) mypy_cache_config = 'fixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed > assert get_created_cache_files(cache_dir, ("builtins",)) E AssertionError: assert [] E + where [] = get_created_cache_files(PosixPath('/usr/src/tmp/tmp2b4u1adl/.mypy_cache/3.13'), ('builtins',)) pytest_mypy_plugins/tests/test_mypy_cache.py:183: AssertionError _________ test_cache_files_removed[mixed_modules_and_packages-legacy] __________ temp_dir = PosixPath('/usr/src/tmp/tmp7fke_ph8') contents = '\n- case: mixed_modules_and_packages\n mypy_config: |\n sqlite_cache = False\n fixed_format_cache = False\n m...pyi\n - path: my_stubpkg-stubs/my_subpkg/my_submod.pyi\n - path: my_nsstubpkg-stubs/my_subpkg/__init__.pyi\n ' module_fpaths_no_suffix = ('my_mod', 'my_pkg/__init__', 'my_pkg/my_submod', 'my_pkg/my_nssubpkg', 'my_pkg/my_nssubpkg/my_submod', 'my_nspkg', ...) mypy_cache_config = 'sqlite_cache = False\nfixed_format_cache = False\n' @pytest.mark.parametrize( "mypy_cache_config", [ pytest.param("", id="default"), pytest.param("sqlite_cache = False\n", id="no-sqlite"), pytest.param("fixed_format_cache = False\n", id="no-fixed-format"), pytest.param("sqlite_cache = False\nfixed_format_cache = False\n", id="legacy"), ], ) @pytest.mark.parametrize( ("contents", "module_fpaths_no_suffix"), CACHE_FILES_REMOVED_TEST_DATA.values(), ids=CACHE_FILES_REMOVED_TEST_DATA.keys(), ) def test_cache_files_removed( temp_dir: Path, contents: str, module_fpaths_no_suffix: tuple[str, ...], mypy_cache_config: str ) -> None: """Tests that cache files associated with ``files`` in a test case get removed""" cache_dir = temp_dir / ".mypy_cache" / f"{version_info[0]}.{version_info[1]}" # pytest and mypy hasn't been run yet, so no cache should exist assert not cache_dir.is_dir() if mypy_cache_config: config_lines = mypy_cache_config.strip().splitlines() indented = "\n".join(f" {line}" for line in config_lines) contents = contents.replace(" main: |", f" mypy_config: |\n{indented}\n main: |") make_yaml_test_file(temp_dir, contents) res = subprocess.run( ["pytest", f"--mypy-testing-base={temp_dir}"], cwd=temp_dir, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT ) # pytest was invoked correctly and there are no failures unrelated to tests assert res.returncode in (pytest.ExitCode.OK, pytest.ExitCode.TESTS_FAILED) # Cache files exist but test case cache files are removed assert get_created_cache_files(cache_dir, ("builtins",)) > assert not get_created_cache_files(cache_dir, module_fpaths_no_suffix) E AssertionError: assert not ['my_mod.meta_ex.json', 'my_nspkg.meta_ex.json', 'my_nspkg/my_submod.meta_ex.json', 'my_nspkg/my_subpkg/__init__.meta_ex.json', 'my_pkg/my_submod.meta_ex.json', 'my_pkg/my_nssubpkg.meta_ex.json', ...] E + where ['my_mod.meta_ex.json', 'my_nspkg.meta_ex.json', 'my_nspkg/my_submod.meta_ex.json', 'my_nspkg/my_subpkg/__init__.meta_ex.json', 'my_pkg/my_submod.meta_ex.json', 'my_pkg/my_nssubpkg.meta_ex.json', ...] = get_created_cache_files(PosixPath('/usr/src/tmp/tmp7fke_ph8/.mypy_cache/3.13'), ('my_mod', 'my_pkg/__init__', 'my_pkg/my_submod', 'my_pkg/my_nssubpkg', 'my_pkg/my_nssubpkg/my_submod', 'my_nspkg', ...)) pytest_mypy_plugins/tests/test_mypy_cache.py:184: AssertionError =========================== short test summary info ============================ FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_non_test_case_files_remain FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[single_module_distribution-default] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[single_module_distribution-no-sqlite] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[single_module_distribution-no-fixed-format] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[single_module_distribution-legacy] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[standard_package-default] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[standard_package-no-sqlite] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[standard_package-no-fixed-format] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[standard_package-legacy] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[namespace_package-default] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[namespace_package-no-sqlite] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[namespace_package-no-fixed-format] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[namespace_package-legacy] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[standard_stub_package-default] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[standard_stub_package-no-fixed-format] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[namespace_stub_package-default] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[namespace_stub_package-no-fixed-format] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[mixed_modules_and_packages-default] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[mixed_modules_and_packages-no-sqlite] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[mixed_modules_and_packages-no-fixed-format] FAILED pytest_mypy_plugins/tests/test_mypy_cache.py::test_cache_files_removed[mixed_modules_and_packages-legacy] ============ 21 failed, 74 passed, 2 deselected in 69.63s (0:01:09) ============ INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest', '-k', 'not (test_no_silence_site_packages_only or test_no_silence_site_packages_and_modify_pythonpath)']' returned non-zero exit status 1. error: Bad exit status from /usr/src/tmp/rpmb-tmp.NcwfZn (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpmb-tmp.NcwfZn (%check) Command exited with non-zero status 1 68.24user 2.31system 1:10.53elapsed 100%CPU (0avgtext+0avgdata 61628maxresident)k 0inputs+0outputs (0major+1226355minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-pytest-mypy-plugins-4.0.1-alt1.src.rpm' failed. Command exited with non-zero status 1 3.17user 0.95system 1:18.47elapsed 5%CPU (0avgtext+0avgdata 144804maxresident)k 8616inputs+0outputs (0major+331175minor)pagefaults 0swaps