Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 628128 Details for
Bug 714856
dev-python/pytest-mock-1.11.2 fails almost all tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
pytest-mock-1.11.2.ebuild
file_714856.txt (text/plain), 2.03 KB, created by
Renata Nagtalon
on 2020-03-31 21:28:59 UTC
(
hide
)
Description:
pytest-mock-1.11.2.ebuild
Filename:
MIME Type:
Creator:
Renata Nagtalon
Created:
2020-03-31 21:28:59 UTC
Size:
2.03 KB
patch
obsolete
># Copyright 1999-2020 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >EAPI=7 > >PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) > >inherit distutils-r1 > >DESCRIPTION="Thin-wrapper around the mock package for easier use with py.test" >HOMEPAGE="https://github.com/pytest-dev/pytest-mock/" >SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" > >LICENSE="MIT" >SLOT="0" >KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~ppc ppc64 sparc x86" >IUSE="" > >RDEPEND="dev-python/pytest[${PYTHON_USEDEP}] > $(python_gen_cond_dep '>=dev-python/mock-2[${PYTHON_USEDEP}]' -2)" >DEPEND="${RDEPEND} > dev-python/setuptools[${PYTHON_USEDEP}] > dev-python/setuptools_scm[${PYTHON_USEDEP}]" > >src_prepare() { > if has_version dev-python/mock; then > # The test test_standalone_mock fails when the standalone mock > # is installed, see pytest-mock issue #81 [0]. > # > # [0] https://github.com/pytest-dev/pytest-mock/issues/81 > sed -e 's|^\(def \)\(test_standalone_mock(\)|\1_\2|' -i tests/test_pytest_mock.py || die > fi > if has_version '<dev-python/mock-3.0.0'; then > # Output format changed with mock-3.0 but is the old one with > # mock-2.0. The original code tests the python version to > # conclude the mock version used. We instead query the mock > # version directly. > sed -i tests/test_pytest_mock.py -e '1 i import mock' || die > sed -i tests/test_pytest_mock.py \ > -e '/^NEW_FORMATTING = / s/ or sys\.version_info\[0\] == 2/ or mock.version_info >= (3,)/' || die > fi > distutils-r1_src_prepare >} > >python_test() { > distutils_install_for_testing > # assertion rewriting seems not to work properly for pytest plugins if > # they are not properly (i.e. not with distutils_install_for_testing) > # installed on the system. > # > # Passing `--assert=plain` notifies tests which are sensitive to that > # to be skipped. For some more details see pytest-mock issue #102 [0]. > # > # [0] https://github.com/pytest-dev/pytest-mock/issues/102 > py.test --assert=plain -vv tests/test_pytest_mock.py || die "Tests fail with ${EPYTHON}" >}
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 714856
:
626116
|
627046
| 628128