def test_regression_1(self):
# Test empty inputs create ouputs of indexing type, gh-5804
# Test both lists and arrays
for func in (range, np.arange):
a, = np.ix_(func(0))
assert_equal(a.dtype, np.intp)
test_index_tricks.py 文件源码
python
阅读 31
收藏 0
点赞 0
评论 0
评论列表
文章目录