Commit cff4b8eb authored by Robert Bradshaw's avatar Robert Bradshaw

Add test for https://github.com/cython/cython/pull/507

Strangely enough, this test compiles, but I am able to reproduce this
error outside the testing environment.  Still worth having here.
parent cc31ed04
...@@ -683,3 +683,11 @@ def test_null_strides_error(buffer_obj): ...@@ -683,3 +683,11 @@ def test_null_strides_error(buffer_obj):
fortran_buf2 = buffer_obj fortran_buf2 = buffer_obj
except ValueError, e: except ValueError, e:
print e print e
def test_refcount_GH507():
"""
>>> test_refcount_GH507()
"""
a = np.arange(12).reshape([3, 4])
cdef np.int_t[:,:] a_view = a
cdef np.int_t[:,:] b = a_view[1:2,:].T
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment