MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_move_fallback

Function test_move_fallback

tests/test_copy_move.py:125–131  ·  view source on GitHub ↗

#389: rvp::move should fall-through to copy on non-movable objects

()

Source from the content-addressed store, hash-verified

123
124
125def test_move_fallback():
126 """#389: rvp::move should fall-through to copy on non-movable objects"""
127
128 m1 = m.get_moveissue1(1)
129 assert m1.value == 1
130 m2 = m.get_moveissue2(2)
131 assert m2.value == 2
132
133
134def test_pytype_rvalue_cast():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected