Skip to content

Commit 34dd45e

Browse files
committed
address comment
1 parent 97adf39 commit 34dd45e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkl_fft/tests/third_party/scipy/test_multithreading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# https://github.com/scipy/scipy/blob/main/scipy/fft/tests/test_multithreading.py.py
33

44
import multiprocessing
5-
import os
65

76
import mkl
87
import numpy as np
@@ -112,5 +111,6 @@ def test_set_workers_invalid():
112111
pass
113112

114113
with pytest.raises(ValueError, match="workers value out of range"):
115-
with fft.set_workers(-os.cpu_count() - 1):
114+
# pylint: disable=no-member
115+
with fft.set_workers(-mkl.get_max_threads() - 1):
116116
pass

0 commit comments

Comments
 (0)