diff options
author | 2023-11-16 20:52:46 +0100 | |
---|---|---|
committer | 2023-11-17 08:57:04 +0100 | |
commit | a7131597229c0cd719d05883c33dddaffe541298 (patch) | |
tree | f21134615578e1121a1d0868377750bff803aa0b | |
parent | dev-libs/opensc: revbump for stack corruption fix (diff) | |
download | gentoo-a7131597229c0cd719d05883c33dddaffe541298.tar.gz gentoo-a7131597229c0cd719d05883c33dddaffe541298.tar.bz2 gentoo-a7131597229c0cd719d05883c33dddaffe541298.zip |
dev-python/sympy: Fix running tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | dev-python/sympy/sympy-1.12.ebuild | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/dev-python/sympy/sympy-1.12.ebuild b/dev-python/sympy/sympy-1.12.ebuild index 8924c8a9f617..3944647ef2e0 100644 --- a/dev-python/sympy/sympy-1.12.ebuild +++ b/dev-python/sympy/sympy-1.12.ebuild @@ -22,7 +22,7 @@ S="${WORKDIR}/${PN}-${P}" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="aesara examples imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs" +IUSE="aesara examples imaging ipython latex mathml opengl pdf png pyglet symengine texmacs" RDEPEND=" dev-python/mpmath[${PYTHON_USEDEP}] @@ -47,14 +47,39 @@ RDEPEND=" texmacs? ( app-office/texmacs ) " -distutils_enable_tests pytest - src_test() { virtx distutils-r1_src_test } python_test() { - esetup.py test + local color=True + [[ ${NO_COLOR} ]] && color=False + + "${EPYTHON}" - <<-EOF || die -n "Tests failed with ${EPYTHON}" + from sympy.testing.runtests import run_all_tests + + common = { + "verbose": True, + "colors": ${color}, + "force_colors": ${color}, + "blacklist": [ + # these require old version of antlr4 + "sympy/parsing/autolev/__init__.py", + "sympy/parsing/latex/__init__.py", + "sympy/parsing/tests/test_autolev.py", + "sympy/parsing/tests/test_latex.py", + # these fail on assertions inside LLVM + "sympy/parsing/tests/test_c_parser.py", + # hangs + "sympy/printing/preview.py", + ], + } + + run_all_tests( + test_kwargs=common, + doctest_kwargs=common, + ) + EOF } python_install_all() { |