Your message dated Sun, 14 Jan 2024 12:19:18 +0000
with message-id <[email protected]>
and subject line Bug#1058417: fixed in pytest-mock 3.12.0-1.1
has caused the Debian Bug report #1058417,
regarding pytest-mock: FTBFS: dh_auto_test: error: pybuild --test --test-pytest 
-i python{version} -p "3.12 3.11" returned exit code 13
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1058417: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058417
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: pytest-mock
Version: 3.12.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
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;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&[email protected]&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.

--- End Message ---
--- Begin Message ---
Source: pytest-mock
Source-Version: 3.12.0-1.1
Done: Matthias Klose <[email protected]>

We believe that the bug you reported is fixed in the latest version of
pytest-mock, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated pytest-mock package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 14 Jan 2024 12:47:16 +0100
Source: pytest-mock
Architecture: source
Version: 3.12.0-1.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 1058417
Changes:
 pytest-mock (3.12.0-1.1) unstable; urgency=medium
 .
   [ Graham Inggs ]
   * Cherry-pick upstream commit to fix tests for Python 3.11 and 3.12.
     Closes: #1058417.
Checksums-Sha1:
 eb513837c27b6f46572e22b53df8527b91fa28d4 2411 pytest-mock_3.12.0-1.1.dsc
 a700c2bfc6c4f8230dae351e68728e378af62968 5400 
pytest-mock_3.12.0-1.1.debian.tar.xz
 d9ffa1ac6a4e85bab56e206165bfb6ddd549664c 7695 
pytest-mock_3.12.0-1.1_source.buildinfo
Checksums-Sha256:
 af876f3dc6c50c0ffe3617acb4e419f13735182684639df7353bbdf88c7afdb4 2411 
pytest-mock_3.12.0-1.1.dsc
 119e9b8d8e27223112956ba3c537f6191799ad364a8d0a7501586a1888d830e3 5400 
pytest-mock_3.12.0-1.1.debian.tar.xz
 600f081f0bc3d25e05a85f155afe1f57754b63d9e4135b4d11e7a607edc08070 7695 
pytest-mock_3.12.0-1.1_source.buildinfo
Files:
 f8c37cd2e52911e36956487b09a908ec 2411 python optional 
pytest-mock_3.12.0-1.1.dsc
 19b8ebd4ab0bf49efdc82fc95824539a 5400 python optional 
pytest-mock_3.12.0-1.1.debian.tar.xz
 b841a94a79732d5efef74455a73537ab 7695 python optional 
pytest-mock_3.12.0-1.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmWjzNwQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9aEAD/9a3086sHflpQLZzBU6s8v2o3Ehm8yVYfLo
1DvJ3yT5fj18UN4vVfZEEHCtLWAnq1kJf0d9AIyaYjwH6BbghTZ9y7aQo7WiaupL
WRYrId+ONoN7hd9soj9e2UUN6vx8XKvjTLAJzXuu3oxSK4WdKhzN5bts2cNaNZMu
/C19Lg8FOjGqcbsQ5KTQqdH4y09fisOhzV3zwweJvbfGQWSL9wa9qq6hDc2MEGvD
9zr+5ooys3UCTe51VJsFnwYFgjJXx3FAYILzUUcD5f+qnt9KOTfEoj0slZJcE5zD
Rog+uin+8/yQmyKsCL9saTmyBpZIq544UDARjWF341FLKumMaD9bcJc/IuQ2aNIo
lcPpnCPtZIQUGYl1AmWhU4sipOu27gxK4y2qSmfS3glfu6RQb6jyP+5v71WYGrnj
XEEl72MQXkuEKc2Li+VRc+ewGUL/aVLhuloI7cJi88ZJIQ2uzJeNtVupfemS+fnA
QiikhSnTvuXqSYKZCF/2id9ENiUSBK3TyEC72DMfymQ6+2rManz3PTe/ip6332FI
L/z99tI32O/bDy12I8wXY4zz4YHxw9dkTZQdFKsyHf+gaQWLkUbdDJ5JNiPDLoDB
tlDNKjNo2URWCP2wxqWmi+v8J42IV1oWtRBfzBxRW7ud+h+WnkMo3mc6wBJKYSwT
U76HJ7NlAw==
=IGaZ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to