Skip to content

Commit

Permalink
Merge pull request #491 from avalentino/bugfix/test_max_threads_unset
Browse files Browse the repository at this point in the history
Fix test_max_threads_unset (Closes: #490)
  • Loading branch information
FrancescAlted authored Jul 20, 2024
2 parents 295f26b + 2c7bb85 commit 7484828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numexpr/tests/test_numexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ def test_max_threads_unset(self):
"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])

Expand Down

0 comments on commit 7484828

Please sign in to comment.