pybind11/tests
Dean Moldovan 665e8804f3 Simplify tests by replacing output capture with asserts where possible
The C++ part of the test code is modified to achieve this. As a result,
this kind of test:

```python
with capture:
    kw_func1(5, y=10)
assert capture == "kw_func(x=5, y=10)"
```

can be replaced with a simple:

`assert kw_func1(5, y=10) == "x=5, y=10"`
2016-08-19 13:19:38 +02:00
..
CMakeLists.txt Port tests to pytest 2016-08-19 13:19:38 +02:00
conftest.py Port tests to pytest 2016-08-19 13:19:38 +02:00
constructor_stats.h Port tests to pytest 2016-08-19 13:19:38 +02:00
object.h Port tests to pytest 2016-08-19 13:19:38 +02:00
pybind11_tests.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
pybind11_tests.h Port tests to pytest 2016-08-19 13:19:38 +02:00
test_buffers.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_buffers.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_callbacks.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_callbacks.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_constants_and_functions.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_constants_and_functions.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_eigen.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_eigen.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_eval_call.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_eval.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_eval.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_exceptions.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_exceptions.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_inheritance.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_inheritance.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_issues.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_issues.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_keep_alive.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_keep_alive.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_kwargs_and_defaults.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_kwargs_and_defaults.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_methods_and_attributes.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_methods_and_attributes.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_modules.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_modules.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_numpy_dtypes.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_numpy_dtypes.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_numpy_vectorize.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_numpy_vectorize.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_opaque_types.cpp Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_opaque_types.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00
test_operator_overloading.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_operator_overloading.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_pickling.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_pickling.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_python_types.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_python_types.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_sequences_and_iterators.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_sequences_and_iterators.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_smart_ptr.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_smart_ptr.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_stl_binders.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_stl_binders.py Port tests to pytest 2016-08-19 13:19:38 +02:00
test_virtual_functions.cpp Port tests to pytest 2016-08-19 13:19:38 +02:00
test_virtual_functions.py Simplify tests by replacing output capture with asserts where possible 2016-08-19 13:19:38 +02:00