提交 a3242677 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Avoid numpy warning about using non-integer shapes.

上级 c96c73f7
...@@ -6791,8 +6791,8 @@ def test_unalign(): ...@@ -6791,8 +6791,8 @@ def test_unalign():
else: else:
dtype = "b1,f4" dtype = "b1,f4"
a = numpy.empty(1e4, dtype=dtype)['f1'] a = numpy.empty(10000, dtype=dtype)['f1']
b = numpy.empty(1e4, dtype=dtype)['f1'] b = numpy.empty(10000, dtype=dtype)['f1']
assert not a.flags.aligned assert not a.flags.aligned
assert not b.flags.aligned assert not b.flags.aligned
a[:] = rand(len(a)) a[:] = rand(len(a))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论