Package: src:pytest-relaxed
Version: 2.0.2-4
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:pytest-relaxed, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13  
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/dist.py:759: 
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        
********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX 
license expression:

        License :: OSI Approved :: BSD License

        See 
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license 
for details.
        
********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib/pytest_relaxed
copying pytest_relaxed/trap.py -> build/lib/pytest_relaxed
copying pytest_relaxed/reporter.py -> build/lib/pytest_relaxed
copying pytest_relaxed/_version.py -> build/lib/pytest_relaxed
copying pytest_relaxed/plugin.py -> build/lib/pytest_relaxed
copying pytest_relaxed/raises.py -> build/lib/pytest_relaxed
copying pytest_relaxed/classes.py -> build/lib/pytest_relaxed
copying pytest_relaxed/fixtures.py -> build/lib/pytest_relaxed
copying pytest_relaxed/__init__.py -> build/lib/pytest_relaxed
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/pytest_relaxed
copying build/lib/pytest_relaxed/trap.py -> 
build/bdist.linux-x86_64/wheel/./pytest_relaxed
copying build/lib/pytest_relaxed/reporter.py -> 
build/bdist.linux-x86_64/wheel/./pytest_relaxed
copying build/lib/pytest_relaxed/_version.py -> 
build/bdist.linux-x86_64/wheel/./pytest_relaxed
copying build/lib/pytest_relaxed/plugin.py -> 
build/bdist.linux-x86_64/wheel/./pytest_relaxed
copying build/lib/pytest_relaxed/raises.py -> 
build/bdist.linux-x86_64/wheel/./pytest_relaxed
copying build/lib/pytest_relaxed/classes.py -> 
build/bdist.linux-x86_64/wheel/./pytest_relaxed
copying build/lib/pytest_relaxed/fixtures.py -> 
build/bdist.linux-x86_64/wheel/./pytest_relaxed
copying build/lib/pytest_relaxed/__init__.py -> 
build/bdist.linux-x86_64/wheel/./pytest_relaxed
running install_egg_info
running egg_info
creating pytest_relaxed.egg-info
writing pytest_relaxed.egg-info/PKG-INFO
writing dependency_links to pytest_relaxed.egg-info/dependency_links.txt
writing entry points to pytest_relaxed.egg-info/entry_points.txt
writing requirements to pytest_relaxed.egg-info/requires.txt
writing top-level names to pytest_relaxed.egg-info/top_level.txt
writing manifest file 'pytest_relaxed.egg-info/SOURCES.txt'
reading manifest file 'pytest_relaxed.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 
'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 
'tests'
warning: no previously-included files matching '*.pyo' found under directory 
'tests'
adding license file 'LICENSE'
writing manifest file 'pytest_relaxed.egg-info/SOURCES.txt'
Copying pytest_relaxed.egg-info to 
build/bdist.linux-x86_64/wheel/./pytest_relaxed-2.0.2.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/pytest_relaxed-2.0.2.dist-info/WHEEL
creating 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/.tmp-2ta51fl6/pytest_relaxed-2.0.2-py3-none-any.whl'
 and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'pytest_relaxed/__init__.py'
adding 'pytest_relaxed/_version.py'
adding 'pytest_relaxed/classes.py'
adding 'pytest_relaxed/fixtures.py'
adding 'pytest_relaxed/plugin.py'
adding 'pytest_relaxed/raises.py'
adding 'pytest_relaxed/reporter.py'
adding 'pytest_relaxed/trap.py'
adding 'pytest_relaxed-2.0.2.dist-info/licenses/LICENSE'
adding 'pytest_relaxed-2.0.2.dist-info/METADATA'
adding 'pytest_relaxed-2.0.2.dist-info/WHEEL'
adding 'pytest_relaxed-2.0.2.dist-info/entry_points.txt'
adding 'pytest_relaxed-2.0.2.dist-info/top_level.txt'
adding 'pytest_relaxed-2.0.2.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built pytest_relaxed-2.0.2-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; 
python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.7, pytest-8.4.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
configfile: pytest.ini
plugins: relaxed-2.0.2, typeguard-4.4.4
collected 34 items

tests/test_collection.py ......F.......s.......                          [ 64%]
tests/test_display.py .s.......                                          [ 91%]
tests/test_raises.py ...                                                 [100%]

=================================== FAILURES ===================================
_________________ TestRelaxedMixin.test_skips_pytest_fixtures __________________

self = <test_collection.TestRelaxedMixin object at 0x7f6661a923f0>
testdir = <Testdir 
local('/tmp/pytest-of-sbuild/pytest-0/test_skips_pytest_fixtures0')>

    def test_skips_pytest_fixtures(self, testdir):
        testdir.makepyfile(
            foo="""
            from pytest import fixture
    
            @fixture
            def pls_noload():
                yield
    
            def actual_test_here():
                pass
        """
        )
        stdout = testdir.runpytest("-v").stdout.str()
        assert "actual test here" in stdout
        # will be in stdout as a failure and warning if bug present
>       assert "pls_noload" not in stdout
E       assert 'pls_noload' not in '===========...============'
E         
E         'pls_noload' is contained here:
E           _________ pls_noload __________________________________
E         ?           ++++++++++
E           Fixture "pls_noload" called directly. Fixtures are not meant to be 
called directly,
E           but are created automatically when test functions request them as 
parameters.
E           See https://docs.pytest.org/en/stable/explanation/fixtures.html for 
more information about fixtures, and...
E         
E         ...Full output truncated (4 lines hidden), use '-vv' to show

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_collection.py:198: 
AssertionError
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux -- Python 3.13.7, pytest-8.4.1, pluggy-1.6.0 -- 
/usr/bin/python3.13
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-sbuild/pytest-0/test_skips_pytest_fixtures0
plugins: relaxed-2.0.2, typeguard-4.4.4
collecting ... collected 2 items
pls noload
actual test here

=================================== FAILURES ===================================
__________________________________ pls_noload __________________________________
Fixture "pls_noload" called directly. Fixtures are not meant to be called 
directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/stable/explanation/fixtures.html for more 
information about fixtures, and
https://docs.pytest.org/en/stable/deprecations.html#calling-fixtures-directly
=========================== short test summary info ============================
FAILED foo.py::pls_noload - Failed: Fixture "pls_noload" called directly. Fix...
========================= 1 failed, 1 passed in 0.00s ==========================
=============================== warnings summary ===============================
tests/test_collection.py: 21 warnings
tests/test_display.py: 5 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/pytest_relaxed/plugin.py:40: 
PytestDeprecationWarning: The hookimpl pytest_configure uses old-style 
configuration options (marks or attributes).
  Please use the pytest.hookimpl(trylast=True) decorator instead
   to configure the hooks.
   See 
https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
    @pytest.mark.trylast  # So we can be sure builtin terminalreporter exists

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_collection.py::TestRelaxedMixin::test_skips_pytest_fixtures
============= 1 failed, 31 passed, 2 skipped, 26 warnings in 1.09s =============
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to