Source: pytest-mock
Version: 1.1-1
Severity: important
Tags: sid stretch
Usertags: pytest3.0.0

During a test build against pytest 3.0.0 from experimental pytest-mock failed to
build:
| PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" 
dh_auto_test
| I: pybuild base:184: python2.7 -m pytest -v -x
| ============================= test session starts 
==============================
| platform linux2 -- Python 2.7.12+, pytest-3.0.0, py-1.4.31, pluggy-0.3.1 -- 
/usr/bin/python2.7
| cachedir: .cache
| rootdir: /<<PKGBUILDDIR>>, inifile: 
| plugins: mock-1.1
| collecting ... collected 39 items
|
| test_pytest_mock.py::test_mock_patches[mock_fs0] PASSED
| test_pytest_mock.py::test_mock_patches[mock_fs1] PASSED
| test_pytest_mock.py::test_mock_patches[mock_fs2] PASSED
| test_pytest_mock.py::test_mock_patch_dict PASSED
| test_pytest_mock.py::test_mock_fixture_is_deprecated PASSED
| test_pytest_mock.py::test_deprecated_mock PASSED
| test_pytest_mock.py::test_mocker_aliases[MagicMock] PASSED
| test_pytest_mock.py::test_mocker_aliases[PropertyMock] PASSED
| test_pytest_mock.py::test_mocker_aliases[Mock] PASSED
| test_pytest_mock.py::test_mocker_aliases[call] PASSED
| test_pytest_mock.py::test_mocker_aliases[ANY] PASSED
| test_pytest_mock.py::test_mocker_resetall PASSED
| test_pytest_mock.py::TestMockerStub::test_call PASSED
| test_pytest_mock.py::TestMockerStub::test_repr_with_no_name PASSED
| test_pytest_mock.py::TestMockerStub::test_repr_with_name PASSED
| test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name FAILED
|
| =================================== FAILURES 
===================================
| _______________ TestMockerStub.test_failure_message_with_no_name 
_______________
|
| self = <test_pytest_mock.TestMockerStub instance at 0x7f2788a1bef0>
| mocker = <pytest_mock.MockFixture object at 0x7f27889a08d0>
|
|     def test_failure_message_with_no_name(self, mocker):
| >       self.__test_failure_message(mocker)
|
| test_pytest_mock.py:182: 
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
|
| self = <test_pytest_mock.TestMockerStub instance at 0x7f2788a1bef0>
| mocker = <pytest_mock.MockFixture object at 0x7f27889a08d0>, kwargs = {}
| expected_name = 'mock', expected_message = 'Expected call: mock()\nNot called'
| stub = <MagicMock spec='function' id='139807772248464'>
| exc_info = <ExceptionInfo AssertionError tblen=3>
| @py_assert1 = AssertionError('Expected call: mock()\nNot called',)
|
|     def __test_failure_message(self, mocker, **kwargs):
|         expected_name = kwargs.get('name') or 'mock'
|         expected_message = 'Expected call: {0}()\nNot 
called'.format(expected_name)
|         stub = mocker.stub(**kwargs)
|         with pytest.raises(AssertionError) as exc_info:
|             stub.assert_called_with()
| >       assert exc_info.value.msg == expected_message
| E       AttributeError: 'exceptions.AssertionError' object has no attribute 
'msg'
|
| test_pytest_mock.py:179: AttributeError
| !!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures 
!!!!!!!!!!!!!!!!!!!!
| ===================== 1 failed, 15 passed in 0.25 seconds 
======================
| E: pybuild pybuild:276: test: plugin custom failed with: exit code=2: 
python2.7 -m pytest -v -x

For a full build log see
https://people.debian.org/~sramacher/logs/pytest3.0.0/pytest-mock_amd64.log.

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature

Reply via email to