pybind11/tests
Jason Rhinelander 07dc73da1e __qualname__ and nested class naming fixes (#1171)
A few fixes related to how we set `__qualname__` and how we show the
type name in function signatures:

- `__qualname__` isn't supposed to have the module name at the
beginning, but we've been putting it there.  This removes it, while
keeping the `Nested.Class` name chaining.

- print `__module__.__qualname__` rather than `type->tp_name`; the
latter doesn't work properly for nested classes, so we would get
`module.B` rather than `module.A.B` for a class `B` with parent `A`.
This also unifies the Python 3 and PyPy code.  Fixes #1166.

- This now sets a `__qualname__` attribute on the type (as would happen
in Python 3.3+) for Python <3.3, including PyPy.  While not particularly
important to have in earlier Python versions, it's useful for us to be
able to extracted the nested name, which is why `__qualname__` was
invented in the first place.

- Added tests for the above.
2018-02-07 10:54:31 +01:00
..
test_cmake_build Add test for custom CMake export group 2017-08-07 23:08:20 +02:00
test_embed Miscellaneous travis-ci updates/fixes 2018-02-07 10:54:31 +01:00
CMakeLists.txt Make TypeErrors more informative when an optional header is missing 2017-09-12 08:06:46 +02:00
conftest.py Allow binding factory functions as constructors 2017-08-17 09:33:27 -04:00
constructor_stats.h Support multiple inheritance from python 2017-06-12 09:56:55 -03: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 Don't let pytest discover tests from test_cmake_build and test_embed 2017-06-10 16:44:21 +02:00
test_buffers.cpp Update enum_ and bind_vector to new-style init and pickle 2017-08-31 01:28:07 +02:00
test_buffers.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_builtin_casters.cpp Fix char & arguments being non-bindable 2018-02-07 10:54:31 +01:00
test_builtin_casters.py Fix char & arguments being non-bindable 2018-02-07 10:54:31 +01:00
test_call_policies.cpp Fix application of keep_alive policy to constructors (regression) 2017-09-06 10:21:11 +02: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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_callbacks.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_chrono.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_chrono.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_class.cpp __qualname__ and nested class naming fixes (#1171) 2018-02-07 10:54:31 +01:00
test_class.py __qualname__ and nested class naming fixes (#1171) 2018-02-07 10:54:31 +01:00
test_constants_and_functions.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -04: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 Fix 2D Nx1/1xN inputs to eigen dense vector args 2018-02-07 10:54:31 +01:00
test_eigen.py Fix 2D Nx1/1xN inputs to eigen dense vector args 2018-02-07 10:54:31 +01:00
test_enum.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_enum.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04: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 Simplify error_already_set 2017-07-28 20:40:35 -04:00
test_exceptions.py Fix builtin exception handlers to work across modules 2017-08-04 10:47:34 -04:00
test_factory_constructors.cpp Trivial typos 2018-02-07 10:54:31 +01:00
test_factory_constructors.py Reduce binary size overhead of new-style constructors 2017-08-28 16:08:53 +02:00
test_iostream.cpp Utility for redirecting C++ streams to Python (#1009) 2017-08-25 02:12:43 +02:00
test_iostream.py Utility for redirecting C++ streams to Python (#1009) 2017-08-25 02:12:43 +02:00
test_kwargs_and_defaults.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_kwargs_and_defaults.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -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 nullptr dereference when loading an external-only module_local type 2017-09-10 12:28:03 +02:00
test_methods_and_attributes.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_methods_and_attributes.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04: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 Make init_holder do registration, and rename to init_instance 2017-07-28 20:39:33 -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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_numpy_array.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_numpy_dtypes.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_numpy_dtypes.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -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 Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_opaque_types.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_opaque_types.py Fix new flake8 E741 error from using l variable 2018-02-07 10:54:31 +01:00
test_operator_overloading.cpp Access C++ hash functions from Python and vice versa (#1034) 2017-08-30 14:22:00 +02:00
test_operator_overloading.py Access C++ hash functions from Python and vice versa (#1034) 2017-08-30 14:22:00 +02:00
test_pickling.cpp Relax py::pickle() get/set type check 2017-09-06 15:20:52 +02:00
test_pickling.py Add py::pickle() adaptor for safer __getstate__/__setstate__ bindings 2017-08-30 11:11:38 +02:00
test_pytypes.cpp Fix implicit conversion of accessors to types derived from py::object 2017-09-11 10:09:32 +02:00
test_pytypes.py Fix new flake8 E741 error from using l variable 2018-02-07 10:54:31 +01:00
test_sequences_and_iterators.cpp Update all remaining tests to new test styles 2017-08-05 18:46:22 -04:00
test_sequences_and_iterators.py Fix new flake8 E741 error from using l variable 2018-02-07 10:54:31 +01:00
test_smart_ptr.cpp Speed up AppVeyor build (#1021) 2017-08-23 17:18:57 +02:00
test_smart_ptr.py Update all remaining tests to new test styles 2017-08-05 18:46:22 -04: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 Fix STL casters for containers with proxies (regression) 2017-09-10 12:25:10 +02:00
test_stl.cpp Fix STL casters for containers with proxies (regression) 2017-09-10 12:25:10 +02:00
test_stl.py Fix new flake8 E741 error from using l variable 2018-02-07 10:54:31 +01:00
test_virtual_functions.cpp Trivial typos 2018-02-07 10:54:31 +01:00
test_virtual_functions.py Trivial typos 2018-02-07 10:54:31 +01:00