提交 2f1a193b authored 作者: Tanjay94's avatar Tanjay94

Fixed norm test to work with outdated numpy version.

上级 d91c1d5f
......@@ -670,7 +670,10 @@ class T_NormTests(unittest.TestCase):
for i in range(0, 14):
f.append(function([A[1][i]], [norm(A[1][i], A[0][i], A[2][i])]))
t_n.append(f[i](A[3][i]))
n_n.append(numpy.linalg.norm(A[3][i], A[4][i], A[2][i]))
try:
n_n.append(numpy.linalg.norm(A[3][i], A[4][i], A[2][i]))
except TypeError:
raise SkipTest
assert _allclose(n_n[i], t_n[i])
class T_lstsq(unittest.TestCase):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论