Skip to content

Commit b1d6227

Browse files
committed
remove np alias in test_setget.py
1 parent ffc8cd4 commit b1d6227

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_setget.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import numpy
2-
import numpy as np
32
import pytest
43
from utils import device, runAndCompare
54

@@ -128,10 +127,10 @@ def test_setitem9(self):
128127
a[:, 0] = r11
129128

130129
np_r1 = sp.to_numpy(r1)
131-
b = np.zeros((N, 2))
130+
b = numpy.zeros((N, 2))
132131
b[:, 0] = np_r1
133132

134-
assert np.allclose(sp.to_numpy(a), b)
133+
assert numpy.allclose(sp.to_numpy(a), b)
135134

136135
def test_colon(self):
137136
a = sp.ones((16, 16), sp.float32, device=device)

0 commit comments

Comments
 (0)