commit | adc2cdd5c4e201f583bba0b74758ba418e57be52 | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Fri Nov 09 20:12:46 2018 +0100 |
committer | GitHub <noreply@github.com> | Fri Nov 09 20:12:46 2018 +0100 |
tree | 9e350ae41714ec4083cf2627a847251c3e47295c | |
parent | 9f73060cc7759b2375d71243a93dadf1ad996077 [diff] [blame] |
fixed regression in STL type caster RVPs (fixes #1561) (#1603)
diff --git a/tests/test_stl.py b/tests/test_stl.py index 9e58223..ba71ca3 100644 --- a/tests/test_stl.py +++ b/tests/test_stl.py
@@ -220,3 +220,11 @@ 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'