diff options
Diffstat (limited to 'dev-python/pytest-mock')
-rw-r--r-- | dev-python/pytest-mock/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pytest-mock/pytest-mock-3.6.1.ebuild | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest index 9bd540aeb3c6..8f697c3e899b 100644 --- a/dev-python/pytest-mock/Manifest +++ b/dev-python/pytest-mock/Manifest @@ -1,3 +1,3 @@ DIST pytest-mock-3.6.1.tar.gz 29933 BLAKE2B 6c22d23f3a8e9b5ef26f990325f5a2c2897b60f61f84472716a1f984e72a8c38f6992e439ef581d7772e25a5fe9e76d190697d9c7bc8b5dcbf6375bead4b3dc3 SHA512 50a8ffbac1b20b1962558789b24d50c1e7d8d2e2706ee15a576eb5fd1b40d4523482dce7a1078d532b686ff8d38b6d769d356b04241528a0196e14acae0b6199 -EBUILD pytest-mock-3.6.1.ebuild 842 BLAKE2B 1227954d87c158685aa53fc55c9653f7392d837d54eb439660a184bdbf365e6183e83f1faafcc8d120def8a6d61d21b61ecbc604a845d3969ee91be5785fb3b0 SHA512 54d63c8f1ee99db28af396d885e3da8296ce9e89e3b824e9332af8353d2637779f0d7a934ba1fb521121f1b807bd480e499b0ccaad23563eb91e5476579682f1 +EBUILD pytest-mock-3.6.1.ebuild 950 BLAKE2B 7346bbf6bee0fafd0f90cf1d2139343597095bd9807cf8a616833598ffc6b2af014aa6034deb8ecca9f0ce397924e22e3f440a67f070ac6504a76ca563d90913 SHA512 1a0645374bb334ec8e212e3efab72dac4dc6b9fe50ecb3f0fe7454752ec507cccadccf57e46cfd30986b779df92c590ff85c7a77c30c3185a72b0abebeb4b10b MISC metadata.xml 458 BLAKE2B 1f30330ee4d263236a048cfd114c4129df9b5a7a78a35af366903ecd273ff34b353516f56874870b06b4d39e3c5a0c5300d3455b784193b168dd13b8c9aabba0 SHA512 87a4daaaa39a6d551ab677370c815dccd377a0e6d30cb56e346dd0343d3f099557a1f95156983fb9e2eaedfc4e142dd1faac7a9cb01e72442644b0f4c7a91093 diff --git a/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild b/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild index 8f048a9f8998..7e9b2eb105f5 100644 --- a/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild +++ b/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..10} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" @@ -12,21 +12,25 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos" RDEPEND=">=dev-python/pytest-5[${PYTHON_USEDEP}]" BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]" distutils_enable_tests pytest +src_prepare() { + sed -e 's/runpytest_subprocess(/&"-p","no:xprocess",/' -i tests/test_pytest_mock.py || die + distutils-r1_src_prepare +} + python_test() { - local deselect=() if has_version dev-python/mock; then - deselect+=( + local EPYTEST_DESELECT=( tests/test_pytest_mock.py::test_standalone_mock ) fi distutils_install_for_testing - epytest --assert=plain ${deselect[@]/#/--deselect } + epytest --assert=plain } |