Skip to content

Commit 21ef9d4

Browse files
MAINT: numpy.core.multiarray_tests was renamed
NumPy has renamed `numpy.core.multiarray_tests` to `numpy.core._multiarray_tests` in its master branch. Make code work with current development version of NumPy.
1 parent 5262d8d commit 21ef9d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mkl_fft/_pydfti.pyx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626

2727
import numpy as np
2828
cimport numpy as cnp
29-
from numpy.core.multiarray_tests import internal_overlap
29+
try:
30+
from numpy.core.multiarray_tests import internal_overlap
31+
except ModuleNotFoundError:
32+
# Module has been renamed in NumPy 1.15
33+
from numpy.core._multiarray_tests import internal_overlap
3034

3135
from libc.string cimport memcpy
3236

0 commit comments

Comments
 (0)