commit:     ee655b9dd8c278c744b1ec1ec9aa068b257cb6fa
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May  1 11:31:30 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May  1 11:48:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee655b9d

dev-python/pdm-backend: Fix missing dev-vcs/mercurial test dep

Closes: https://bugs.gentoo.org/931017
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pdm-backend/pdm-backend-2.3.0.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dev-python/pdm-backend/pdm-backend-2.3.0.ebuild 
b/dev-python/pdm-backend/pdm-backend-2.3.0.ebuild
index 6acf66b19a87..68fac1eadef9 100644
--- a/dev-python/pdm-backend/pdm-backend-2.3.0.ebuild
+++ b/dev-python/pdm-backend/pdm-backend-2.3.0.ebuild
@@ -37,6 +37,9 @@ BDEPEND="
        test? (
                dev-python/setuptools[${PYTHON_USEDEP}]
                dev-vcs/git
+               !s390? ( !sparc? (
+                       dev-vcs/mercurial
+               ) )
        )
 "
 # setuptools are used to build C extensions
@@ -67,3 +70,13 @@ src_test() {
        git config --global user.name "Test User" || die
        distutils-r1_src_test
 }
+
+python_test() {
+       local args=()
+       if ! has_version dev-vcs/mercurial; then
+               args+=( -k "not [hg" )
+       fi
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest "${args[@]}"
+}

Reply via email to