From 0a503d866fd9afdcd81f13b4db73e3d8f2c9cec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 2 Mar 2024 21:31:37 +0100 Subject: [PATCH] dev-python/pymdown-extensions: Skip failing test properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/926017 Signed-off-by: Michał Górny --- .../pymdown-extensions-10.7.ebuild | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/dev-python/pymdown-extensions/pymdown-extensions-10.7.ebuild b/dev-python/pymdown-extensions/pymdown-extensions-10.7.ebuild index b625aeccdfcc6..69a0a4e1cc229 100644 --- a/dev-python/pymdown-extensions/pymdown-extensions-10.7.ebuild +++ b/dev-python/pymdown-extensions/pymdown-extensions-10.7.ebuild @@ -31,16 +31,17 @@ BDEPEND=" distutils_enable_tests pytest -python_test() { - local EPYTEST_DESELECT=() - case ${EPYTHON} in - pypy3) - EPYTEST_DESELECT+=( - 'tests/test_syntax.py::test_extensions[compare54]' - ) - ;; - esac +src_prepare() { + # broken on pypy3; unfortunately, the parametrization is based + # on indexes and these are pretty random, so we need to remove it + # entirely + # TODO: restore it when pypy with a fix is in Gentoo + # https://github.com/pypy/pypy/issues/4920 + rm "tests/extensions/superfences/superfences (normal).txt" || die + distutils-r1_src_prepare +} +python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest }