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.10.0.ebuild | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest index e441f4fc65a6..e481187949b0 100644 --- a/dev-python/pytest-mock/Manifest +++ b/dev-python/pytest-mock/Manifest @@ -1,3 +1,3 @@ DIST pytest-mock-3.10.0.tar.gz 28384 BLAKE2B 2f51f8be34094054b8f7864eb083dde00800adb73af668444d21c95d8f159594bed0f68694e7ffb0e24da402a4865f37c07d85622ad00f130ccdb4e3d189bf9a SHA512 2ad6866d581a2999899e399ef5516d478a6172f52923f03703e3e3708229fb3b1178c91225b5cc90734c96abcb48fea517b11e0fc193da6fb592295395c14cd3 -EBUILD pytest-mock-3.10.0.ebuild 1202 BLAKE2B b6e5a2927700359219acd159d7e6379b051a0dc071cf3dbd91b0a39217321fec69b0df13cef49c3a77f5140e585fdc657b980f350ae71dc2871c2100b108d76c SHA512 38794e7ba16249ca6d8aef2bfb81567a836f72821a8ec41cda4637d08ac72cc70a3f4a53b6952f92114c956002ff9f1213fcd9ee907fb4f5b68b7bc24eee3687 +EBUILD pytest-mock-3.10.0.ebuild 1416 BLAKE2B e1254d2aeb6ff5688eaf09de46bcd62672bae314ec558bb347d8e3f210e8628d4fd231cce0db92acc4122cf02f1b3371d8a6da359186e65741e09b6765b774d9 SHA512 9ab1619a15e4b963d4623bbd2d7231a0042046dfb883f5aa84cac49ae61fed3ea78f2a035fd8740c93528f37884da1441795ed17aeefc6493f3189055634b2c2 MISC metadata.xml 379 BLAKE2B 47a45606cecad3ecc9b902d9ec690c33a89728ce93038433f11ab8c3369089ef12e86c793ab06dedeef7a816dc973ae8ea2a6b717b13085c7912d69bcd68db65 SHA512 b5e43e5e0a1cfba50868ca542b00d40084aeb38f764f203ed112a9359e966e94d34a99bbb072b98f9401a0383d3fbf834b8b87572e073592263f18d73f09db2e diff --git a/dev-python/pytest-mock/pytest-mock-3.10.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.10.0.ebuild index 3d5766a44bf3..fafb81a44a96 100644 --- a/dev-python/pytest-mock/pytest-mock-3.10.0.ebuild +++ b/dev-python/pytest-mock/pytest-mock-3.10.0.ebuild @@ -5,7 +5,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{9..11} pypy3 ) +PYTHON_TESTED=( python3_{10..11} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_12 ) inherit distutils-r1 pypi @@ -25,7 +26,9 @@ RDEPEND=" BDEPEND=" dev-python/setuptools-scm[${PYTHON_USEDEP}] test? ( - dev-python/pytest-asyncio[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") ) " @@ -38,6 +41,11 @@ src_prepare() { } python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 local -x PYTEST_PLUGINS=pytest_mock,pytest_asyncio.plugin local EPYTEST_DESELECT=() |