summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/tests/test_dlpack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_dlpack.py b/numpy/core/tests/test_dlpack.py
index 54cc365ca..717210b54 100644
--- a/numpy/core/tests/test_dlpack.py
+++ b/numpy/core/tests/test_dlpack.py
@@ -119,5 +119,5 @@ class TestDLPack:
def test_size1dims_arrays(self):
x = np.ndarray(dtype='f8', shape=(10, 5, 1), strides=(8, 80, 4),
buffer=np.ones(1000, dtype=np.uint8), order='F')
- y = np._from_dlpack(x)
+ y = np.from_dlpack(x)
assert_array_equal(x, y)