Skip to content

Commit 9ba366a

Browse files
committed
Pre-import numpy lazy submodules in tests/conftest.py
1 parent 2b63d54 commit 9ba366a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import numpy
2+
3+
for _attr in (
4+
"linalg", "fft", "dtypes", "random", "polynomial", "ma",
5+
"ctypeslib", "exceptions", "testing", "matlib", "f2py",
6+
"typing", "rec", "char", "core", "strings",
7+
):
8+
getattr(numpy, _attr)
9+
del _attr

0 commit comments

Comments
 (0)