mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
Python buffer objects can have negative strides.
This commit is contained in:
committed by
Dean Moldovan
parent
2b941b38b4
commit
d400f60c96
@@ -203,6 +203,10 @@ def test_wrap():
|
||||
a2 = wrap(a1d)
|
||||
assert_references(a1d, a2, a1)
|
||||
|
||||
a1m = a1[::-1, ::-1, ::-1]
|
||||
a2 = wrap(a1m)
|
||||
assert_references(a1m, a2, a1)
|
||||
|
||||
|
||||
def test_numpy_view(capture):
|
||||
from pybind11_tests.array import ArrayClass
|
||||
|
||||
Reference in New Issue
Block a user