pybind11/tests
James R. Barlow 3618bea2aa Add and document py::error_already_set::discard_as_unraisable()
To deal with exceptions that hit destructors or other noexcept functions.

Includes fixes to support Python 2.7 and extends documentation on
error handling.

@virtuald and @YannickJadoul both contributed to this PR.
2020-08-16 10:05:03 -07:00
..
test_cmake_build fix: duplicate target names removed 2020-08-06 11:54:41 -04:00
test_embed fix: boost's include dir was listed first (#2384) 2020-08-12 09:33:08 -04:00
CMakeLists.txt fix: boost's include dir was listed first (#2384) 2020-08-12 09:33:08 -04:00
conftest.py tests: Consolidate version (2 vs. 3) and platform (CPython vs. PyPy) checks (#2376) 2020-08-14 14:03:43 -04:00
constructor_stats.h ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
cross_module_gil_utils.cpp Make sure detail::get_internals acquires the GIL before making Python calls. (#1836) 2019-07-15 16:47:02 +02:00
local_bindings.h Fix nullptr dereference when loading an external-only module_local type 2017-09-10 12:28:03 +02:00
object.h Improve custom holder support (#607) 2017-01-31 17:05:44 +01:00
pybind11_cross_module_tests.cpp Make TypeErrors more informative when an optional header is missing 2017-09-12 08:06:46 +02:00
pybind11_tests.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
pybind11_tests.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
pytest.ini ignore numpy.ufunc size warnings 2019-02-04 16:09:21 +01:00
requirements.txt ci: include Python 3.9 RC1 (#2387) 2020-08-12 14:09:42 -04:00
test_async.cpp Add support for __await__, __aiter__, and __anext__ protocols (#1842) 2019-07-18 09:02:35 +02:00
test_async.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_buffers.cpp support for readonly buffers (#863) (#1466) 2019-11-24 08:33:05 +01:00
test_buffers.py tests: Consolidate version (2 vs. 3) and platform (CPython vs. PyPy) checks (#2376) 2020-08-14 14:03:43 -04:00
test_builtin_casters.cpp cast pointer to std::tuple and std::pair (#2334) 2020-07-28 21:44:19 +02:00
test_builtin_casters.py tests: Consolidate version (2 vs. 3) and platform (CPython vs. PyPy) checks (#2376) 2020-08-14 14:03:43 -04:00
test_call_policies.cpp ci: fix clang warnings 2020-07-26 09:25:27 -04:00
test_call_policies.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_callbacks.cpp Fix async Python functors invoking from multiple C++ threads (#1587) (#1595) 2019-06-11 23:28:58 +02:00
test_callbacks.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_chrono.cpp Fix casting of time points with non-system-clock duration with VS (#1748) 2019-06-13 09:17:10 +02:00
test_chrono.py tests: loosen test, not valid on some systems (#2399) 2020-08-16 11:18:47 -04:00
test_class.cpp Add error_scope to py::class_::dealloc() to protect destructor calls (#2342) 2020-07-31 17:46:12 -07:00
test_class.py Add error_scope to py::class_::dealloc() to protect destructor calls (#2342) 2020-07-31 17:46:12 -07:00
test_constants_and_functions.cpp Add -Wdeprecated to test suite and fix associated warnings (#1191) 2017-11-22 17:37:41 -04:00
test_constants_and_functions.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_copy_move.cpp Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
test_copy_move.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_custom_type_casters.cpp Refactor: Extract Custom Type Casts related tests 2020-07-01 00:07:49 +02:00
test_custom_type_casters.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_docstring_options.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_docstring_options.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_eigen.cpp Typo 2018-02-27 22:46:56 -04:00
test_eigen.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_enum.cpp Avoid conversion to int_ rhs argument of enum eq/ne (#1912) 2019-09-19 18:23:27 +02:00
test_enum.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_eval_call.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_eval.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_eval.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_exceptions.cpp Add and document py::error_already_set::discard_as_unraisable() 2020-08-16 10:05:03 -07:00
test_exceptions.py Add and document py::error_already_set::discard_as_unraisable() 2020-08-16 10:05:03 -07:00
test_factory_constructors.cpp Add -Wdeprecated to test suite and fix associated warnings (#1191) 2017-11-22 17:37:41 -04:00
test_factory_constructors.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_gil_scoped.cpp ci: fix clang warnings 2020-07-26 09:25:27 -04:00
test_gil_scoped.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_iostream.cpp Utility for redirecting C++ streams to Python (#1009) 2017-08-25 02:12:43 +02:00
test_iostream.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_kwargs_and_defaults.cpp Avoid attr("__repr__") in initialize_generic (#2317) 2020-07-24 18:43:59 +02:00
test_kwargs_and_defaults.py tests: Consolidate version (2 vs. 3) and platform (CPython vs. PyPy) checks (#2376) 2020-08-14 14:03:43 -04:00
test_local_bindings.cpp Fix nullptr dereference when loading an external-only module_local type 2017-09-10 12:28:03 +02:00
test_local_bindings.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_methods_and_attributes.cpp ci: fix clang warnings 2020-07-26 09:25:27 -04:00
test_methods_and_attributes.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_modules.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_modules.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_multiple_inheritance.cpp PyPy3 support (#2146) 2020-07-07 15:58:16 +02:00
test_multiple_inheritance.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_numpy_array.cpp Enable py::ellipsis on Python 2 (#2360) 2020-08-04 14:45:55 +02:00
test_numpy_array.py Enable py::ellipsis on Python 2 (#2360) 2020-08-04 14:45:55 +02:00
test_numpy_dtypes.cpp Dtype field ordering for NumPy 1.14 (#1837) 2019-07-15 13:31:03 +02:00
test_numpy_dtypes.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_numpy_vectorize.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_numpy_vectorize.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_opaque_types.cpp Improve macro type handling for types with commas 2018-03-10 14:24:23 -04:00
test_opaque_types.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_operator_overloading.cpp Set __hash__ to None for types that defines __eq__, but not __hash__ (#2291) 2020-07-27 01:44:25 +02:00
test_operator_overloading.py Set __hash__ to None for types that defines __eq__, but not __hash__ (#2291) 2020-07-27 01:44:25 +02:00
test_pickling.cpp Relax py::pickle() get/set type check 2017-09-06 15:20:52 +02:00
test_pickling.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_pytypes.cpp Adding tests specifically to exercise pybind11::str::raw_str. (#2366) 2020-08-10 17:49:14 -07:00
test_pytypes.py Using recently added pytest.PY2 instead of str is bytes. (#2396) 2020-08-14 16:53:41 -04:00
test_sequences_and_iterators.cpp Propagate exceptions in sequence::size() (#2076) 2020-04-26 18:40:52 +02:00
test_sequences_and_iterators.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_smart_ptr.cpp ci: fix clang warnings 2020-07-26 09:25:27 -04:00
test_smart_ptr.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_stl_binders.cpp test pair-copyability on C++17 upwards (#1886) 2019-10-31 12:38:24 +01:00
test_stl_binders.py tests: Consolidate version (2 vs. 3) and platform (CPython vs. PyPy) checks (#2376) 2020-08-14 14:03:43 -04:00
test_stl.cpp Fix compile error on GCC4.8 2020-06-29 21:01:20 +02:00
test_stl.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_tagbased_polymorphic.cpp Adding a default virtual destructor to Animal type in test_tagbased_polymorphic.cpp. 2020-04-14 17:48:43 +02:00
test_tagbased_polymorphic.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_union.cpp Fix assertion failure for unions (#1685) (#1709) 2019-06-11 23:28:58 +02:00
test_union.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_virtual_functions.cpp ci: fix clang warnings 2020-07-26 09:25:27 -04:00
test_virtual_functions.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00