From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 92A96158241 for ; Fri, 17 Nov 2023 07:57:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C2602BC020; Fri, 17 Nov 2023 07:57:17 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E1332BC020 for ; Fri, 17 Nov 2023 07:57:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 926D6335D31 for ; Fri, 17 Nov 2023 07:57:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 31107FC4 for ; Fri, 17 Nov 2023 07:57:15 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1700207824.a7131597229c0cd719d05883c33dddaffe541298.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sympy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/sympy/sympy-1.12.ebuild X-VCS-Directories: dev-python/sympy/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a7131597229c0cd719d05883c33dddaffe541298 X-VCS-Branch: master Date: Fri, 17 Nov 2023 07:57:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6f75d25c-4b98-4669-b0be-76095ed5947c X-Archives-Hash: 5d316ff1aa1ebfb2fb4177af49d83f9c commit: a7131597229c0cd719d05883c33dddaffe541298 Author: Michał Górny gentoo org> AuthorDate: Thu Nov 16 19:52:46 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 17 07:57:04 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7131597 dev-python/sympy: Fix running tests Signed-off-by: Michał Górny gentoo.org> dev-python/sympy/sympy-1.12.ebuild | 33 +++++++++++++++++++++++++++++---- 1 file 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() {