mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 07:02:11 +00:00
005fde6a7f
The new version of pytest now reports Python warnings by default. This commit filters out some third-party extension warnings which are not useful for pybind11 tests.
15 lines
486 B
INI
15 lines
486 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
|
|
filterwarnings =
|
|
# make warnings into errors but ignore certain third-party extension issues
|
|
error
|
|
# importing scipy submodules on some version of Python
|
|
ignore::ImportWarning
|
|
# bogus numpy ABI warning (see numpy/#432)
|
|
ignore:.*numpy.dtype size changed.*:RuntimeWarning
|