Fix SEGV to create empty shaped numpy array (#1371)

Fix a segfault when creating a 0-dimension, c-strides array.
This commit is contained in:
Naotoshi Seo
2018-05-06 13:59:25 +00:00
committed by Jason Rhinelander
parent 4b874616b2
commit 5ef1af138d
3 changed files with 10 additions and 2 deletions

View File

@@ -135,6 +135,10 @@ def test_make_c_f_array():
assert not m.make_f_array().flags.c_contiguous
def test_make_empty_shaped_array():
m.make_empty_shaped_array()
def test_wrap():
def assert_references(a, b, base=None):
from distutils.version import LooseVersion