summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTirth Patel <tirthasheshpatel@gmail.com>2022-03-03 13:23:50 +0530
committerTirth Patel <tirthasheshpatel@gmail.com>2022-03-03 13:23:50 +0530
commit87a4c8e1923f6b3bc870226a165a174e1caadb5a (patch)
treefd6fa0a46ccefb1ac802bbb80f1b1cc64f9b851f
parent492489f862473a2f4f26dfd48726f8d6293266b4 (diff)
downloadnumpy-87a4c8e1923f6b3bc870226a165a174e1caadb5a.tar.gz
TST: np._from_dlpack -> np.from_dlpack
-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)