pybind11/tests
Boris Staletic 2819ce64a4
Avoid attr("__repr__") in initialize_generic (#2317)
If the default argument value is a class, and not an instance of a
class, `a.value.attr("__repr__")` raises a `ValueError`. Switching to
`repr(a.value)` makes this use case work.

Fixes #2028
2020-07-24 18:43:59 +02:00
..
test_cmake_build test: pass through C++ std for cmake test 2020-07-23 17:42:53 -04:00
test_embed test: allow MSVC/Xcode to run the embed test 2020-07-23 17:42:53 -04:00
CMakeLists.txt test: allow MSVC/Xcode to run the embed test 2020-07-23 17:42:53 -04:00
conftest.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -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: enable GHA testing 2020-07-23 17:42:53 -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 ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_builtin_casters.cpp Add C++20 char8_t/u8string support (#2026) 2019-12-19 12:16:24 +01:00
test_builtin_casters.py test_builtin_casters.py test_string_view: Python 2 c++17, c++2a compatibility. (#2314) 2020-07-22 12:05:16 -07: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 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 ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00
test_class.cpp Add is_final to disallow inheritance from Python 2020-04-26 09:46:44 +02:00
test_class.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04: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 exception translation for std::overflow_error. (#1977) 2019-11-14 08:56:58 +01:00
test_exceptions.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04: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 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 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 Avoid attr("__repr__") in initialize_generic (#2317) 2020-07-24 18:43:59 +02: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 Allow perfect forwarding of method args (#2048) 2020-07-07 15:56:07 +02: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 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 ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04: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 operators: Explicitly expose py::hash(py::self) 2020-05-31 07:03:01 +02:00
test_operator_overloading.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04: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 Fix undefined memoryview format (#2223) 2020-07-15 08:50:43 -07:00
test_pytypes.py test: support pypy2 7.3 2020-07-23 17:42:53 -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 Adding pybind11::cast overload for rvalue references (#1260) 2020-07-01 01:53:09 +02: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 ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -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 fixes (#1744) 2019-04-06 19:09:39 +02:00
test_virtual_functions.py ci: GHA basic format & pre-commit (#2309) 2020-07-20 13:35:21 -04:00