commit:     b6d260fdd302c24cb3b06149f4cc03715d77cfaa
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 24 15:21:47 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 24 15:45:57 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6d260fd

dev-python/myst_parser: Enable pypy3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/myst_parser/myst_parser-0.18.0.ebuild | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/dev-python/myst_parser/myst_parser-0.18.0.ebuild 
b/dev-python/myst_parser/myst_parser-0.18.0.ebuild
index 607aca9eec4a..bc0af0f8d333 100644
--- a/dev-python/myst_parser/myst_parser-0.18.0.ebuild
+++ b/dev-python/myst_parser/myst_parser-0.18.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=flit
-PYTHON_COMPAT=( python3_{8..11} )
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
 
 inherit distutils-r1
 
@@ -43,10 +43,19 @@ BDEPEND="
        )
 "
 
-EPYTEST_DESELECT=(
-       # Unimportant tests needing a new dep linkify
-       tests/test_renderers/test_myst_config.py::test_cmdline
-       tests/test_sphinx/test_sphinx_builds.py::test_extended_syntaxes
-)
-
 distutils_enable_tests pytest
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # Unimportant tests needing a new dep linkify
+               tests/test_renderers/test_myst_config.py::test_cmdline
+               tests/test_sphinx/test_sphinx_builds.py::test_extended_syntaxes
+       )
+
+       [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
+               # bad test relying on exact exception messages
+               
"tests/test_renderers/test_include_directive.py::test_errors[9-Non-existent 
path:]"
+       )
+
+       epytest
+}

Reply via email to