Skip to content

Commit 429ec5d

Browse files
committed
Add call to copy_map()
... which fails essentially in my use case, but still succeeds here.
1 parent ad01e5a commit 429ec5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_stl.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ def test_map(doc):
6767
assert doc(m.load_map) == "load_map(arg0: Dict[str, str]) -> bool"
6868

6969

70+
def test_copy_map():
71+
# this segfaults in my use case, but not here:
72+
m.copy_map({"pi": 3.14, "zero": 0.0, "one": 0.0})
73+
74+
7075
def test_set(doc):
7176
"""std::set <-> set"""
7277
s = m.cast_set()

0 commit comments

Comments
 (0)