Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/test_smart_ptr.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,15 @@ def test_unique_ptr_arg():

pass_through_list = [
m.unique_ptr_pass_through,
m.unique_ptr_pass_through_cast_from_py,
m.unique_ptr_pass_through_move_from_py,
m.unique_ptr_pass_through_move_to_py,
m.unique_ptr_pass_through_cast_to_py,
# TODO(eric.cousineau): Fix these cases.
# m.unique_ptr_pass_through_cast_from_py,
# m.unique_ptr_pass_through_move_from_py,
]
for pass_through in pass_through_list:
obj = m.UniquePtrHeld(1)
obj_ref = m.unique_ptr_pass_through(obj)
obj_ref = pass_through(obj)
assert stats.alive() == 1
assert obj.value() == 1
assert obj == obj_ref
Expand Down