summaryrefslogtreecommitdiff
path: root/ext/pybind11/tests/test_callbacks.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pybind11/tests/test_callbacks.py')
-rw-r--r--ext/pybind11/tests/test_callbacks.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pybind11/tests/test_callbacks.py b/ext/pybind11/tests/test_callbacks.py
index c2668aa95..f94e7b64c 100644
--- a/ext/pybind11/tests/test_callbacks.py
+++ b/ext/pybind11/tests/test_callbacks.py
@@ -96,3 +96,9 @@ def test_function_signatures(doc):
assert doc(test_callback3) == "test_callback3(arg0: Callable[[int], int]) -> str"
assert doc(test_callback4) == "test_callback4() -> Callable[[int], int]"
+
+
+def test_movable_object():
+ from pybind11_tests import callback_with_movable
+
+ assert callback_with_movable(lambda _: None) is True