Skip to content

Commit 7484828

Browse files
Merge pull request #491 from avalentino/bugfix/test_max_threads_unset
Fix test_max_threads_unset (Closes: #490)
2 parents 295f26b + 2c7bb85 commit 7484828

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

numexpr/tests/test_numexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ def test_max_threads_unset(self):
11291129
"if 'NUMEXPR_MAX_THREADS' in os.environ: os.environ.pop('NUMEXPR_MAX_THREADS')",
11301130
"if 'OMP_NUM_THREADS' in os.environ: os.environ.pop('OMP_NUM_THREADS')",
11311131
"import numexpr",
1132-
"assert(numexpr.nthreads <= 8)",
1132+
f"assert(numexpr.nthreads <= {MAX_THREADS})",
11331133
"exit(0)"])
11341134
subprocess.check_call([sys.executable, '-c', script])
11351135

0 commit comments

Comments
 (0)