diff options
Diffstat (limited to 'tests/test_constants_and_functions.py')
-rw-r--r-- | tests/test_constants_and_functions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_constants_and_functions.py b/tests/test_constants_and_functions.py index ff13bd0f..a1142461 100644 --- a/tests/test_constants_and_functions.py +++ b/tests/test_constants_and_functions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import pytest m = pytest.importorskip("pybind11_tests.constants_and_functions") @@ -51,3 +50,7 @@ def test_function_record_leaks(): m.register_large_capture_with_invalid_arguments(m) with pytest.raises(RuntimeError): m.register_with_raising_repr(m, RaisingRepr()) + + +def test_noexcept_lambda(): + assert m.l1() == 0 |