if name not in self._mock_methods or name in _all_magics: > raise AttributeError("Mock object has no attribute %r" % name) E AttributeError: Mock object has no attribute 'assert_not_called' /usr/lib64/python2.7/site-packages/mock.py:667: AttributeError ================ 1 failed, 40 passed, 2 xfailed in 3.40 seconds ================ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 13.0-desktop-plasma-systemd_test_20171025-203252 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-6.4.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python3.6 (fallback) [3] python2.7 (fallback) java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.5.1 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpv dev-python/pytest-mock [ebuild N ] dev-python/pytest-mock-1.6.3 PYTHON_TARGETS="python2_7 python3_4 -pypy -pypy3 -python3_5 -python3_6"
Created attachment 500828 [details] emerge-info.txt
Created attachment 500830 [details] dev-python:pytest-mock-1.6.3:20171029-164856.log
Created attachment 500832 [details] emerge-history.txt
Created attachment 500834 [details] environment
Created attachment 500836 [details] etc.portage.tbz2
Created attachment 500838 [details] temp.tbz2
(In reply to Toralf Förster from comment #3) > Created attachment 500832 [details] > emerge-history.txt I see you have dev-python/mock-1.0.1-r2 installed, so I guess that is what owns /usr/lib64/python2.7/site-packages/mock.py. Does it solve the problem if you upgrade to dev-python/mock-2.0.0? If so, we can change the dependency to require that.
(In reply to Zac Medico from comment #7) Indeed, dev-python/mock-2.0.0 helps. FWIW the old version was pinned due to dev-python/django-social-auth - which I had to remove before to get the newer mock being installed
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf607ef62711fbff989434fdef5d1eeef2638791 commit bf607ef62711fbff989434fdef5d1eeef2638791 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2017-10-30 20:13:39 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2017-10-30 20:15:10 +0000 dev-python/pytest-mock: require mock-2 (bug 635800) Closes: https://bugs.gentoo.org/635800 Package-Manager: Portage-2.3.13, Repoman-2.3.3 dev-python/pytest-mock/pytest-mock-1.6.0.ebuild | 4 ++-- dev-python/pytest-mock/pytest-mock-1.6.3.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)