File fix-test-max-threads-unset.patch of Package python-numexpr

Index: numexpr-2.10.1/numexpr/tests/test_numexpr.py
===================================================================
--- numexpr-2.10.1.orig/numexpr/tests/test_numexpr.py
+++ numexpr-2.10.1/numexpr/tests/test_numexpr.py
@@ -1129,7 +1129,7 @@ class test_threading_config(TestCase):
                 "if 'NUMEXPR_MAX_THREADS' in os.environ: os.environ.pop('NUMEXPR_MAX_THREADS')",
                 "if 'OMP_NUM_THREADS' in os.environ: os.environ.pop('OMP_NUM_THREADS')",
                 "import numexpr",
-                "assert(numexpr.nthreads <= 8)",
+                f"assert(numexpr.nthreads <= {MAX_THREADS})",
                 "exit(0)"])
         subprocess.check_call([sys.executable, '-c', script])
 
openSUSE Build Service is sponsored by