mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
d47febcb17
* Add `pytest.ini` config file and set default options there instead of in `CMakeLists.txt` (command line arguments). * Change all output capture from `capfd` (filedescriptors) to `capsys` (Python's `sys.stdout` and `sys.stderr`). This avoids capturing low-level C errors, e.g. from the debug build of Python. * Set pytest minimum version to 3.0 to make it easier to use new features. Removed conditional use of `excinfo.match()`. * Clean up some leftover function-level `@pytest.requires_numpy`.
8 lines
192 B
INI
8 lines
192 B
INI
[pytest]
|
|
minversion = 3.0
|
|
addopts =
|
|
# show summary of skipped tests
|
|
-rs
|
|
# capture only Python print and C++ py::print, but not C output (low-level Python errors)
|
|
--capture=sys
|