Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 500830 Details for
Bug 635800
dev-python/pytest-mock-1.6.3 : E AttributeError: Mock object has no attribute assert_not_called
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-python:pytest-mock-1.6.3:20171029-164856.log
dev-python:pytest-mock-1.6.3:20171029-164856.log (text/plain), 5.10 KB, created by
Toralf Förster
on 2017-10-29 16:51:00 UTC
(
hide
)
Description:
dev-python:pytest-mock-1.6.3:20171029-164856.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2017-10-29 16:51:00 UTC
Size:
5.10 KB
patch
obsolete
> * Package: dev-python/pytest-mock-1.6.3 > * Repository: gentoo > * Maintainer: zmedico@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_4 userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking pytest-mock-1.6.3.tar.gz to /var/tmp/portage/dev-python/pytest-mock-1.6.3/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-mock-1.6.3/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3 ... > * python2_7: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python2.7 setup.py build >running build >running build_py >copying pytest_mock.py -> /var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3-python2_7/lib >copying _pytest_mock_version.py -> /var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3-python2_7/lib >warning: build_py: byte-compiling is disabled, skipping. > > * python3_4: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python3.4 setup.py build >running build >running build_py >copying pytest_mock.py -> /var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3-python3_4/lib >copying _pytest_mock_version.py -> /var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3-python3_4/lib >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/pytest-mock-1.6.3 > * python2_7: running distutils-r1_run_phase python_test >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.2.2, py-1.4.34, pluggy-0.4.0 >rootdir: /var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3, inifile: >plugins: mock-1.6.3, xdist-1.20.0, timeout-1.2.0, pep8-1.0.6, forked-0.2, cov-2.5.1, hypothesis-3.33.0, backports.unittest-mock-1.3 >collected 43 items > >test_pytest_mock.py ..........................x..xF............ > >=================================== FAILURES =================================== >________________________ test_assert_not_called_wrapper ________________________ > >mocker = <pytest_mock.MockFixture object at 0x7faca64194d0> > > @pytest.mark.skipif(sys.version_info[:2] in [(3, 3), (3, 4)], > reason="assert_not_called not available in python 3.3 and 3.4") > def test_assert_not_called_wrapper(mocker): > stub = mocker.stub() >> stub.assert_not_called() > >test_pytest_mock.py:355: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <MagicMock spec='function' id='140379500420752'> >name = 'assert_not_called' > > def __getattr__(self, name): > if name == '_mock_methods': > raise AttributeError(name) > elif self._mock_methods is not None: > 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 ================ > * ERROR: dev-python/pytest-mock-1.6.3::gentoo failed (test phase): > * (no error message) > * > * Call stack: > * ebuild.sh, line 124: Called src_test > * environment, line 2699: Called distutils-r1_src_test > * environment, line 872: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 318: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2220: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1526: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1524: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 542: Called distutils-r1_run_phase 'python_test' > * environment, line 803: Called python_test > * environment, line 2576: Called die > * The specific snippet of code: > * PYTHONPATH=${PWD}${PYTHONPATH:+:}${PYTHONPATH} py.test test_pytest_mock.py || die > * > * If you need support, post the output of `emerge --info '=dev-python/pytest-mock-1.6.3::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/pytest-mock-1.6.3::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-python:pytest-mock-1.6.3:20171029-164856.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytest-mock-1.6.3/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-mock-1.6.3/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3' > * S: '/var/tmp/portage/dev-python/pytest-mock-1.6.3/work/pytest-mock-1.6.3'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 635800
:
500828
| 500830 |
500832
|
500834
|
500836
|
500838