commit:     657f529d4524035c9f5329001ee16c0de39b404b
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 31 06:33:56 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Oct 31 06:45:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=657f529d

dev-python/numexpr: fix test asserts for control variables in ebuild env

These variables could be constraining real work in other packages, but
here they just break asserts.

Closes: https://bugs.gentoo.org/963118
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-python/numexpr/numexpr-2.12.1.ebuild | 5 +++++
 dev-python/numexpr/numexpr-2.13.1.ebuild | 5 +++++
 dev-python/numexpr/numexpr-2.14.1.ebuild | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/dev-python/numexpr/numexpr-2.12.1.ebuild 
b/dev-python/numexpr/numexpr-2.12.1.ebuild
index 56f15a36135d..38eb6c680c2c 100644
--- a/dev-python/numexpr/numexpr-2.12.1.ebuild
+++ b/dev-python/numexpr/numexpr-2.12.1.ebuild
@@ -33,6 +33,11 @@ RDEPEND="
 "
 
 python_test() {
+       # Tests will test that these variables are "safely" parsed, and break
+       # if you set them yourself. They don't do any real work, just asserts.
+       # Bug 963118.
+       unset NUMEXPR_MAX_THREADS NUMEXPR_NUM_THREADS OMP_NUM_THREADS
+
        pushd "${BUILD_DIR}/install/$(python_get_sitedir)" >/dev/null || die
        "${EPYTHON}" -c '
 import sys,numexpr

diff --git a/dev-python/numexpr/numexpr-2.13.1.ebuild 
b/dev-python/numexpr/numexpr-2.13.1.ebuild
index be1a1b815fc8..71eef29389d7 100644
--- a/dev-python/numexpr/numexpr-2.13.1.ebuild
+++ b/dev-python/numexpr/numexpr-2.13.1.ebuild
@@ -33,6 +33,11 @@ RDEPEND="
 "
 
 python_test() {
+       # Tests will test that these variables are "safely" parsed, and break
+       # if you set them yourself. They don't do any real work, just asserts.
+       # Bug 963118.
+       unset NUMEXPR_MAX_THREADS NUMEXPR_NUM_THREADS OMP_NUM_THREADS
+
        pushd "${BUILD_DIR}/install/$(python_get_sitedir)" >/dev/null || die
        "${EPYTHON}" -c '
 import sys,numexpr

diff --git a/dev-python/numexpr/numexpr-2.14.1.ebuild 
b/dev-python/numexpr/numexpr-2.14.1.ebuild
index 415d6f2c5aea..7a5f23135992 100644
--- a/dev-python/numexpr/numexpr-2.14.1.ebuild
+++ b/dev-python/numexpr/numexpr-2.14.1.ebuild
@@ -33,6 +33,11 @@ RDEPEND="
 "
 
 python_test() {
+       # Tests will test that these variables are "safely" parsed, and break
+       # if you set them yourself. They don't do any real work, just asserts.
+       # Bug 963118.
+       unset NUMEXPR_MAX_THREADS NUMEXPR_NUM_THREADS OMP_NUM_THREADS
+
        pushd "${BUILD_DIR}/install/$(python_get_sitedir)" >/dev/null || die
        "${EPYTHON}" -c '
 import sys,numexpr

Reply via email to