python-numexpr/fix-test-max-threads-unset.patch
Benjamin Greiner 5009c94269 - Update to 2.10.2
* Better support for CPUs that do not have a power of 2 number of
    cores.  See #479 and #490.  Thanks to @avalentino.
  * Allow numexpr to run with the multithreading package in Python.
    See PR #496.  Thanks to @emmaai
  * Wheels for Python 3.13 are now provided.
- Drop fix-test-max-threads-unset.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numexpr?expand=0&rev=43
2024-12-04 13:13:33 +00:00

14 lines
722 B
Diff

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])