Source: pytest-mock
Version: 3.12.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> mkdir docs/_static
> sphinx-build -W --keep-going -b html docs docs/_build/html
> Running Sphinx v7.2.6
> making output directory... done
> building [mo]: targets for 0 po files that are out of date
> writing output... 
> building [html]: targets for 7 source files that are out of date
> updating environment: [new config] 7 added, 0 changed, 0 removed
> reading sources... [ 14%] about
> reading sources... [ 29%] changelog
> reading sources... [ 43%] configuration
> reading sources... [ 57%] contributing
> reading sources... [ 71%] index
> reading sources... [ 86%] remarks
> reading sources... [100%] usage
> 
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> copying assets... copying static files... done
> copying extra files... done
> done
> writing output... [ 14%] about
> writing output... [ 29%] changelog
> writing output... [ 43%] configuration
> writing output... [ 57%] contributing
> writing output... [ 71%] index
> writing output... [ 86%] remarks
> writing output... [100%] usage
> 
> generating indices... genindex done
> writing additional pages... search done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded.
> 
> The HTML pages are in docs/_build/html.
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:314: python3.12 setup.py egg_info && cp -r 
> /<<PKGBUILDDIR>>/src/*.egg-info 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mock/build
> /usr/lib/python3/dist-packages/setuptools/__init__.py:84: 
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are 
> deprecated.
> !!
> 
>         
> ********************************************************************************
>         Requirements should be satisfied by a PEP 517 installer.
>         If you are using pip, you can try `pip install --use-pep517`.
>         
> ********************************************************************************
> 
> !!
>   dist.fetch_build_eggs(dist.setup_requires)
> WARNING: The wheel package is not available.
> running egg_info
> creating src/pytest_mock.egg-info
> writing src/pytest_mock.egg-info/PKG-INFO
> writing dependency_links to src/pytest_mock.egg-info/dependency_links.txt
> writing entry points to src/pytest_mock.egg-info/entry_points.txt
> writing requirements to src/pytest_mock.egg-info/requires.txt
> writing top-level names to src/pytest_mock.egg-info/top_level.txt
> writing manifest file 'src/pytest_mock.egg-info/SOURCES.txt'
> reading manifest file 'src/pytest_mock.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'src/pytest_mock.egg-info/SOURCES.txt'
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mock/build; python3.12 -m 
> pytest --assert=plain /<<PKGBUILDDIR>>/tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: tox.ini
> plugins: mock-3.12.0, asyncio-0.20.3
> asyncio: mode=Mode.AUTO
> collected 82 items
> 
> ../../../tests/test_pytest_mock.py ...................FFFFF............. [ 
> 45%]
> ............ss.............ss................                            
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _______________ TestMockerStub.test_failure_message_with_no_name 
> _______________
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb4ce0>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb5dcd0>
> 
>     def test_failure_message_with_no_name(self, mocker: MagicMock) -> None:
> >       self.__test_failure_message(mocker)
> 
> ../../../tests/test_pytest_mock.py:254: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb4ce0>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb5dcd0>
> kwargs = {}, expected_name = 'mock'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: mock()\nActual: not 
> called.'
> stub = <MagicMock spec='function' id='139720918424976'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> mock()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> _____________ TestMockerStub.test_failure_message_with_name[None] 
> ______________
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb4ef0>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb5d460>
> name = None
> 
>     @pytest.mark.parametrize("name", (None, "", "f", "The Castle of 
> aaarrrrggh"))
>     def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> 
> None:
> >       self.__test_failure_message(mocker, name=name)
> 
> ../../../tests/test_pytest_mock.py:258: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb4ef0>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb5d460>
> kwargs = {'name': None}, expected_name = 'mock'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: mock()\nActual: not 
> called.'
> stub = <MagicMock spec='function' id='139720918421280'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> mock()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> _______________ TestMockerStub.test_failure_message_with_name[] 
> ________________
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb5070>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb5d6d0>, name = 
> ''
> 
>     @pytest.mark.parametrize("name", (None, "", "f", "The Castle of 
> aaarrrrggh"))
>     def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> 
> None:
> >       self.__test_failure_message(mocker, name=name)
> 
> ../../../tests/test_pytest_mock.py:258: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb5070>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb5d6d0>
> kwargs = {'name': ''}, expected_name = 'mock'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: mock()\nActual: not 
> called.'
> stub = <MagicMock spec='function' id='139720918422912'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> mock()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> _______________ TestMockerStub.test_failure_message_with_name[f] 
> _______________
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb5100>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb50830>, name = 
> 'f'
> 
>     @pytest.mark.parametrize("name", (None, "", "f", "The Castle of 
> aaarrrrggh"))
>     def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> 
> None:
> >       self.__test_failure_message(mocker, name=name)
> 
> ../../../tests/test_pytest_mock.py:258: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb5100>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb50830>
> kwargs = {'name': 'f'}, expected_name = 'f'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: f()\nActual: not 
> called.'
> stub = <MagicMock name='f' spec='function' id='139720918378800'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> f()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> ___ TestMockerStub.test_failure_message_with_name[The Castle of aaarrrrggh] 
> ____
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb5190>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb53110>
> name = 'The Castle of aaarrrrggh'
> 
>     @pytest.mark.parametrize("name", (None, "", "f", "The Castle of 
> aaarrrrggh"))
>     def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> 
> None:
> >       self.__test_failure_message(mocker, name=name)
> 
> ../../../tests/test_pytest_mock.py:258: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f134fcb5190>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f134fb53110>
> kwargs = {'name': 'The Castle of aaarrrrggh'}
> expected_name = 'The Castle of aaarrrrggh'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: The Castle of 
> aaarrrrggh()\nActual: not called.'
> stub = <MagicMock name='The Castle of aaarrrrggh' spec='function' 
> id='139720918380960'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> The Castle of aaarrrrggh()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> =========================== short test summary info 
> ============================
> SKIPPED [1] ../../../tests/test_pytest_mock.py:604: this test needs assertion 
> rewrite to work but current option is "plain"
> SKIPPED [1] ../../../tests/test_pytest_mock.py:620: this test needs assertion 
> rewrite to work but current option is "plain"
> SKIPPED [1] ../../../tests/test_pytest_mock.py:840: this test needs assertion 
> rewrite to work but current option is "plain"
> SKIPPED [1] ../../../tests/test_pytest_mock.py:884: this test needs assertion 
> rewrite to work but current option is "plain"
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None]
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[]
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f]
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The
>  Castle of aaarrrrggh]
> =================== 5 failed, 73 passed, 4 skipped in 2.99s 
> ====================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mock/build; python3.12 -m 
> pytest --assert=plain {dir}/tests
> I: pybuild pybuild:314: python3.11 setup.py egg_info && cp -r 
> /<<PKGBUILDDIR>>/src/*.egg-info 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mock/build
> /usr/lib/python3/dist-packages/setuptools/__init__.py:84: 
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are 
> deprecated.
> !!
> 
>         
> ********************************************************************************
>         Requirements should be satisfied by a PEP 517 installer.
>         If you are using pip, you can try `pip install --use-pep517`.
>         
> ********************************************************************************
> 
> !!
>   dist.fetch_build_eggs(dist.setup_requires)
> WARNING: The wheel package is not available.
> running egg_info
> writing src/pytest_mock.egg-info/PKG-INFO
> writing dependency_links to src/pytest_mock.egg-info/dependency_links.txt
> writing entry points to src/pytest_mock.egg-info/entry_points.txt
> writing requirements to src/pytest_mock.egg-info/requires.txt
> writing top-level names to src/pytest_mock.egg-info/top_level.txt
> reading manifest file 'src/pytest_mock.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'src/pytest_mock.egg-info/SOURCES.txt'
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mock/build; python3.11 -m 
> pytest --assert=plain /<<PKGBUILDDIR>>/tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: tox.ini
> plugins: mock-3.12.0, asyncio-0.20.3
> asyncio: mode=Mode.AUTO
> collected 82 items
> 
> ../../../tests/test_pytest_mock.py ...................FFFFF............. [ 
> 45%]
> ............ss.............ss................                            
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _______________ TestMockerStub.test_failure_message_with_no_name 
> _______________
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f8229553290>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f822958b050>
> 
>     def test_failure_message_with_no_name(self, mocker: MagicMock) -> None:
> >       self.__test_failure_message(mocker)
> 
> ../../../tests/test_pytest_mock.py:254: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f8229553290>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f822958b050>
> kwargs = {}, expected_name = 'mock'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: mock()\nActual: not 
> called.'
> stub = <MagicMock spec='function' id='140197016150480'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> mock()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> _____________ TestMockerStub.test_failure_message_with_name[None] 
> ______________
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f822951c0d0>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f822958b910>
> name = None
> 
>     @pytest.mark.parametrize("name", (None, "", "f", "The Castle of 
> aaarrrrggh"))
>     def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> 
> None:
> >       self.__test_failure_message(mocker, name=name)
> 
> ../../../tests/test_pytest_mock.py:258: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f822951c0d0>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f822958b910>
> kwargs = {'name': None}, expected_name = 'mock'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: mock()\nActual: not 
> called.'
> stub = <MagicMock spec='function' id='140197016150032'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> mock()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> _______________ TestMockerStub.test_failure_message_with_name[] 
> ________________
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f822951c310>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f8229581290>, name = 
> ''
> 
>     @pytest.mark.parametrize("name", (None, "", "f", "The Castle of 
> aaarrrrggh"))
>     def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> 
> None:
> >       self.__test_failure_message(mocker, name=name)
> 
> ../../../tests/test_pytest_mock.py:258: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f822951c310>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f8229581290>
> kwargs = {'name': ''}, expected_name = 'mock'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: mock()\nActual: not 
> called.'
> stub = <MagicMock spec='function' id='140197025554192'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> mock()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> _______________ TestMockerStub.test_failure_message_with_name[f] 
> _______________
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f822951c5d0>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f822950ae10>, name = 
> 'f'
> 
>     @pytest.mark.parametrize("name", (None, "", "f", "The Castle of 
> aaarrrrggh"))
>     def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> 
> None:
> >       self.__test_failure_message(mocker, name=name)
> 
> ../../../tests/test_pytest_mock.py:258: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f822951c5d0>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f822950ae10>
> kwargs = {'name': 'f'}, expected_name = 'f'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: f()\nActual: not 
> called.'
> stub = <MagicMock name='f' spec='function' id='140197015624848'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> f()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> ___ TestMockerStub.test_failure_message_with_name[The Castle of aaarrrrggh] 
> ____
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f822951c890>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f82295ad710>
> name = 'The Castle of aaarrrrggh'
> 
>     @pytest.mark.parametrize("name", (None, "", "f", "The Castle of 
> aaarrrrggh"))
>     def test_failure_message_with_name(self, mocker: MagicMock, name: str) -> 
> None:
> >       self.__test_failure_message(mocker, name=name)
> 
> ../../../tests/test_pytest_mock.py:258: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <test_pytest_mock.TestMockerStub object at 0x7f822951c890>
> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f82295ad710>
> kwargs = {'name': 'The Castle of aaarrrrggh'}
> expected_name = 'The Castle of aaarrrrggh'
> msg = 'expected call not found.\nExpected: {0}()\nActual: not called.'
> expected_message = 'expected call not found.\nExpected: The Castle of 
> aaarrrrggh()\nActual: not called.'
> stub = <MagicMock name='The Castle of aaarrrrggh' spec='function' 
> id='140197016294160'>
> exc_info = <ExceptionInfo AssertionError('expected call not found.\nExpected: 
> The Castle of aaarrrrggh()\n  Actual: not called.') tblen=3>
> 
>     def __test_failure_message(self, mocker: MockerFixture, **kwargs: Any) -> 
> None:
>         expected_name = kwargs.get("name") or "mock"
>         if NEW_FORMATTING:
>             msg = "expected call not found.\nExpected: {0}()\nActual: not 
> called."
>         else:
>             msg = "Expected call: {0}()\nNot called"
>         expected_message = msg.format(expected_name)
>         stub = mocker.stub(**kwargs)
>         with pytest.raises(AssertionError) as exc_info:
>             stub.assert_called_with()
> >       assert str(exc_info.value) == expected_message
> E       AssertionError
> 
> ../../../tests/test_pytest_mock.py:251: AssertionError
> =========================== short test summary info 
> ============================
> SKIPPED [1] ../../../tests/test_pytest_mock.py:604: this test needs assertion 
> rewrite to work but current option is "plain"
> SKIPPED [1] ../../../tests/test_pytest_mock.py:620: this test needs assertion 
> rewrite to work but current option is "plain"
> SKIPPED [1] ../../../tests/test_pytest_mock.py:840: this test needs assertion 
> rewrite to work but current option is "plain"
> SKIPPED [1] ../../../tests/test_pytest_mock.py:884: this test needs assertion 
> rewrite to work but current option is "plain"
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None]
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[]
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f]
> FAILED 
> ../../../tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The
>  Castle of aaarrrrggh]
> =================== 5 failed, 73 passed, 4 skipped in 3.22s 
> ====================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mock/build; python3.11 -m 
> pytest --assert=plain {dir}/tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
> 3.11" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/pytest-mock_3.12.0-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to