pybind11/tests
Sergei Lebedev 87d1f6ba08 error_already_set::what() is now constructed lazily
Prior to this commit throwing error_already_set was expensive due to the
eager construction of the error string (which required traversing the
Python stack). See #1853 for more context and an alternative take on the
issue.

Note that error_already_set no longer inherits from std::runtime_error
because the latter has no default constructor.
2019-08-28 10:36:19 +01:00
..
test_cmake_build Add test for custom CMake export group 2017-08-07 23:08:20 +02:00
test_embed Fix compatibility with catch v2 2018-07-19 16:12:39 -03:00
CMakeLists.txt Add support for __await__, __aiter__, and __anext__ protocols (#1842) 2019-07-18 09:02:35 +02:00
conftest.py Add support for __await__, __aiter__, and __anext__ protocols (#1842) 2019-07-18 09:02:35 +02:00
constructor_stats.h Fix gcc-8 compilation warning 2018-10-02 12:11:37 -03: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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
pytest.ini ignore numpy.ufunc size warnings 2019-02-04 16:09:21 +01:00
test_async.cpp Add support for __await__, __aiter__, and __anext__ protocols (#1842) 2019-07-18 09:02:35 +02:00
test_async.py Add support for __await__, __aiter__, and __anext__ protocols (#1842) 2019-07-18 09:02:35 +02:00
test_buffers.cpp correct stride in matrix example and test 2017-09-21 18:07:48 -03:00
test_buffers.py correct stride in matrix example and test 2017-09-21 18:07:48 -03:00
test_builtin_casters.cpp fix py::cast<void *> (#1605) 2018-11-11 19:32:09 +01:00
test_builtin_casters.py fix py::cast<void *> (#1605) 2018-11-11 19:32:09 +01:00
test_call_policies.cpp Add -Wdeprecated to test suite and fix associated warnings (#1191) 2017-11-22 17:37:41 -04:00
test_call_policies.py Fix application of keep_alive policy to constructors (regression) 2017-09-06 10:21:11 +02: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 Fix async Python functors invoking from multiple C++ threads (#1587) (#1595) 2019-06-11 23:28:58 +02: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 Added ability to convert from datetime.date to system_clock::time_point (#1848) 2019-07-19 11:28:48 +02:00
test_class.cpp Support C++17 aligned new statement (#1582) 2018-11-09 20:14:53 +01:00
test_class.py Support C++17 aligned new statement (#1582) 2018-11-09 20:14:53 +01: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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_copy_move.cpp Make it possible to generate constexpr signatures in C++11 mode 2017-09-16 12:02:49 +02:00
test_copy_move.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_eigen.cpp Typo 2018-02-27 22:46:56 -04:00
test_eigen.py fix test suite (pytest changes in ExceptionInfo class) 2019-07-06 17:35:31 +02:00
test_enum.cpp check for already existing enum value added; added test (#1453) 2018-09-11 10:59:56 +02:00
test_enum.py Fix scoped enums comparison for equal/not equal cases (#1339) (#1571) 2018-10-24 11:18:58 +02:00
test_eval_call.py Add checks to maintain a consistent Python code style and prevent bugs (#515) 2016-11-20 21:21:54 +01:00
test_eval.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_eval.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_exceptions.cpp error_already_set::what() is now constructed lazily 2019-08-28 10:36:19 +01:00
test_exceptions.py [BUGFIX] Fixing pybind11::error_already_set.matches to also work with exception subclasses (#1715) 2019-05-12 23:35:49 +02: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 Reduce binary size overhead of new-style constructors 2017-08-28 16:08:53 +02:00
test_gil_scoped.cpp Make sure detail::get_internals acquires the GIL before making Python calls. (#1836) 2019-07-15 16:47:02 +02:00
test_gil_scoped.py Make sure detail::get_internals acquires the GIL before making Python calls. (#1836) 2019-07-15 16:47:02 +02:00
test_iostream.cpp Utility for redirecting C++ streams to Python (#1009) 2017-08-25 02:12:43 +02:00
test_iostream.py Fixed flake8 error in test_iostream.py 2018-08-29 12:10:48 +02:00
test_kwargs_and_defaults.cpp CI fixes (#1744) 2019-04-06 19:09:39 +02:00
test_kwargs_and_defaults.py Add spaces around "=" in signature repr. 2017-12-27 11:04:24 -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 fix test suite (pytest changes in ExceptionInfo class) 2019-07-06 17:35:31 +02:00
test_methods_and_attributes.cpp Make overload_cast_impl available in C++11 mode. (#1581) 2019-08-19 12:54:33 +02:00
test_methods_and_attributes.py fix test suite (pytest changes in ExceptionInfo class) 2019-07-06 17:35:31 +02:00
test_modules.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_modules.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_multiple_inheritance.cpp Add -Wdeprecated to test suite and fix associated warnings (#1191) 2017-11-22 17:37:41 -04:00
test_multiple_inheritance.py Reimplement py::init<...> to use common factory code 2017-08-17 09:33:27 -04:00
test_numpy_array.cpp numpy: Add test for explicit dtype checks. At present, int64 + uint64 do not exactly match dtype(...).num 2019-07-23 13:17:20 +02:00
test_numpy_array.py numpy: fix refcount leak to dtype singleton (#1860) 2019-07-27 11:35:32 +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 Fix numpy dtypes test on big-endian architectures 2018-02-18 18:36:11 +01: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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -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 Fix new flake8 E741 error from using l variable 2017-10-25 08:18:21 -03:00
test_operator_overloading.cpp Add docs and tests for unary op on class (#1814) 2019-06-22 12:07:41 +02:00
test_operator_overloading.py Add docs and tests for unary op on class (#1814) 2019-06-22 12:07:41 +02:00
test_pickling.cpp Relax py::pickle() get/set type check 2017-09-06 15:20:52 +02:00
test_pickling.py enum_: move most functionality to a non-template implementation 2018-09-11 22:08:26 +02:00
test_pytypes.cpp Added support for list insertion. (#1888) 2019-08-19 23:00:36 +02:00
test_pytypes.py Added support for list insertion. (#1888) 2019-08-19 23:00:36 +02:00
test_sequences_and_iterators.cpp add signed overload for py::slice::compute 2019-06-11 23:28:58 +02:00
test_sequences_and_iterators.py add signed overload for py::slice::compute 2019-06-11 23:28:58 +02:00
test_smart_ptr.cpp CI fixes (#1744) 2019-04-06 19:09:39 +02:00
test_smart_ptr.py fix test suite (pytest changes in ExceptionInfo class) 2019-07-06 17:35:31 +02:00
test_stl_binders.cpp Fix STL casters for containers with proxies (regression) 2017-09-10 12:25:10 +02:00
test_stl_binders.py Add negative indexing support to stl_bind. (#1882) 2019-08-15 19:41:11 +02:00
test_stl.cpp Adds type_caster support for std::deque. (#1609) 2018-11-16 06:45:19 +01:00
test_stl.py Added __contains__ to stl bindings for maps (#1767) 2019-06-10 21:01:11 +02:00
test_tagbased_polymorphic.cpp Add basic support for tag-based static polymorphism (#1326) 2018-04-14 02:13:10 +02:00
test_tagbased_polymorphic.py Add basic support for tag-based static polymorphism (#1326) 2018-04-14 02:13:10 +02:00
test_union.cpp Fix assertion failure for unions (#1685) (#1709) 2019-06-11 23:28:58 +02:00
test_union.py Fix assertion failure for unions (#1685) (#1709) 2019-06-11 23:28:58 +02:00
test_virtual_functions.cpp CI fixes (#1744) 2019-04-06 19:09:39 +02:00
test_virtual_functions.py fix regression reported by @cyfdecyf in #1454 (#1517) 2018-09-11 09:32:45 +02:00