fixed regression in STL type caster RVPs (fixes #1561) (#1603)

This commit is contained in:
Wenzel Jakob
2018-11-09 20:12:46 +01:00
committed by GitHub
parent 9f73060cc7
commit adc2cdd5c4
5 changed files with 34 additions and 6 deletions

View File

@@ -220,3 +220,11 @@ def test_stl_ownership():
def test_array_cast_sequence():
assert m.array_cast_sequence((1, 2, 3)) == [1, 2, 3]
def test_issue_1561():
""" check fix for issue #1561 """
bar = m.Issue1561Outer()
bar.list = [m.Issue1561Inner('bar')]
bar.list
assert bar.list[0].data == 'bar'