- 28 Aug, 2016 5 commits
-
-
Jason Rhinelander authored
-
Jason Rhinelander authored
-
Jason Rhinelander authored
This adds a tool that checks style (currently just for tabs instead of spaces in files under include/tests/docs) and produces a travis-ci build failure if any problems are found.
-
Wenzel Jakob authored
Fix module file name when working with debug builds of Python
-
Wenzel Jakob authored
-
- 27 Aug, 2016 5 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
Added support for exposing classes with private destructors and corresponding documentation
-
Nickolai Belakovski authored
-
Dean Moldovan authored
Fixes #365. `sysconfig.get_config_var('SO')` already returns the correct PYTHON_MODULE_EXTENSION, even for debug builds, so there is no need to add anything else manually. -
Wenzel Jakob authored
Don't install pytest from cmake, just fail instead
-
- 26 Aug, 2016 6 commits
-
-
Jason Rhinelander authored
Installing something outside the project directory from a cmake invocation is overly intrusive; this changes tests/CMakeLists.txt to just fail with an informative message instead, and changes the travis-ci builds to install pytest via pip or apt-get.
-
Wenzel Jakob authored
-
Wenzel Jakob authored
Test absence of optional dependencies and CMake automatic discovery functions
-
Dean Moldovan authored
ccache on Travis was never configured properly so the setting never actually did anything. Enabling ccache for real brings other issues: due to the way the preprocessor is handled, some of the Python header macros produce bogus compiler warnings (which in turn produce errors with -Werror). ccache also requires additional configuration on OS X and docker. It would reduce compile time by ~30 seconds at best, so it's not worth the trouble. [skip appveyor]
-
Dean Moldovan authored
This build makes sure everything still works without optional dependencies (numpy/scipy/eigen) and also tests the automatic discovery functions in CMake (Python version, C++ standard). [skip appveyor]
-
Wenzel Jakob authored
Fix test suite failure without numpy and improve module init diagnostics
-
- 25 Aug, 2016 5 commits
-
-
Wenzel Jakob authored
Fix dtype::strip_padding() on Intel compiler
-
Ivan Smirnov authored
-
Dean Moldovan authored
Fixes #357.
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
- 24 Aug, 2016 8 commits
-
-
Wenzel Jakob authored
Add support for iterators with different begin/end types
-
Wenzel Jakob authored
- ICPC can't handle the NCVirt trampoline which returns a non-copyable type, which is likely due to a constexpr/SFINAE issue. This disables the test on that compiler so that at least the rest can be tested.
-
Wenzel Jakob authored
Fix int_ shadowing problem in detail namespace
-
Ivan Smirnov authored
If operators.h is included, int_ function in the `detail` namespace will shadow pybind11::int_ type, so the fully qualified name has to be used.
-
Ivan Smirnov authored
-
Ivan Smirnov authored
-
Ivan Smirnov authored
-
Ivan Smirnov authored
-
- 22 Aug, 2016 4 commits
-
-
Wenzel Jakob authored
Workaround for random failure of pytest capture on Windows
-
Dean Moldovan authored
pytest can capture test output both globally (controlled by the cmd line flag --capture) or locally (`capsys` and `capfd` fixtures). Enabling both methods at the same time causes problems on Windows: test output is not captured sometimes, resulting in test failure. This happens seemingly at random. This workaround disables global output capture ("-s", i.e. "--capture=no") leaving only the local capture fixtures. As a side-effect test output on AppVeyor CI is a little messy, but this will have to do until a better solution is found. -
Wenzel Jakob authored
Port test suite to pytest
-
Wenzel Jakob authored
-
- 19 Aug, 2016 7 commits
-
-
Dean Moldovan authored
-
Dean Moldovan authored
Most of the test code is left in C++ since this is the intended use case for the eval functions.
-
Dean Moldovan authored
Test compilation instructions for Windows were changed to use the `cmake --build` command line invocation which should be easier than manually setting up using the CMake GUI and Visual Studio.
-
Dean Moldovan authored
Pytest is a development dependency but we can make it painless by automating the install using CMake.
-
Dean Moldovan authored
There are more enum tests than 'constants and functions'.
-
Dean Moldovan authored
-
Dean Moldovan authored
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"`
-