pybind11/tests
Kota Yamaguchi e248869893
Fix undefined memoryview format (#2223)
* Fix undefined memoryview format

* Add missing <algorithm> header

* Add workaround for py27 array compatibility

* Workaround py27 memoryview behavior

* Fix memoryview constructor from buffer_info

* Workaround PyMemoryView_FromMemory availability in py27

* Fix up memoryview tests

* Update memoryview test from buffer to check signedness

* Use static factory method to create memoryview

* Remove ndim arg from memoryview::frombuffer and add tests

* Allow ndim=0 memoryview and documentation fixup

* Use void* to align to frombuffer method signature

* Add const variants of frombuffer and frommemory

* Add memory view section in doc

* Fix docs

* Add test for null buffer

* Workaround py27 nullptr behavior in test

* Rename frombuffer to from_buffer
2020-07-15 08:50:43 -07: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 Refactor: Extract Custom Type Casts related tests 2020-07-01 00:07:49 +02:00
conftest.py PyPy3 support (#2146) 2020-07-07 15:58:16 +02:00
constructor_stats.h support for readonly buffers (#863) (#1466) 2019-11-24 08:33:05 +01: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
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 support for readonly buffers (#863) (#1466) 2019-11-24 08:33:05 +01:00
test_buffers.py support for readonly buffers (#863) (#1466) 2019-11-24 08:33:05 +01: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 Add C++20 char8_t/u8string support (#2026) 2019-12-19 12:16:24 +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 Add is_final to disallow inheritance from Python 2020-04-26 09:46:44 +02:00
test_class.py Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -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 Report type names in return value policy-related cast exceptions (#1965) 2019-10-23 13:19:58 +02: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 Refactor: Extract Custom Type Casts related tests 2020-07-01 00:07:49 +02: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 Render full numpy numeric names (e.g. numpy.int32) 2020-06-10 13:36:31 +02: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 Implicit conversion from enum to int for Python 3.8 (fix by @sizmailov) 2019-09-20 11:06:10 +02:00
test_eval.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_eval.py PyPy3 support (#2146) 2020-07-07 15:58:16 +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_exceptions.cpp Add exception translation for std::overflow_error. (#1977) 2019-11-14 08:56:58 +01:00
test_exceptions.py Add exception translation for std::overflow_error. (#1977) 2019-11-14 08:56:58 +01: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 rename args_kw_only to kwonly 2020-04-26 18:07:51 +02:00
test_kwargs_and_defaults.py rename args_kw_only to kwonly 2020-04-26 18:07:51 +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 PyPy3 support (#2146) 2020-07-07 15:58:16 +02: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 Allow perfect forwarding of method args (#2048) 2020-07-07 15:56:07 +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 PyPy3 support (#2146) 2020-07-07 15:58:16 +02:00
test_multiple_inheritance.py PyPy3 support (#2146) 2020-07-07 15:58:16 +02: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 Render full numpy numeric names (e.g. numpy.int32) 2020-06-10 13:36:31 +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 Render full numpy numeric names (e.g. numpy.int32) 2020-06-10 13:36:31 +02: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 operators: Explicitly expose `py::hash(py::self)` 2020-05-31 07:03:01 +02:00
test_operator_overloading.py operators: Explicitly expose `py::hash(py::self)` 2020-05-31 07:03:01 +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 Fix undefined memoryview format (#2223) 2020-07-15 08:50:43 -07:00
test_pytypes.py Fix undefined memoryview format (#2223) 2020-07-15 08:50:43 -07: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 Propagate exceptions in sequence::size() (#2076) 2020-04-26 18:40:52 +02: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 Adding pybind11::cast overload for rvalue references (#1260) 2020-07-01 01:53:09 +02:00
test_stl.cpp Fix compile error on GCC4.8 2020-06-29 21:01:20 +02:00
test_stl.py Add failing optional test 2020-06-29 21:01:20 +02: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 Fix CI, prepare test on Python 3.9 beta (#2233) 2020-05-31 06:29:30 +02: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 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