mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 14:15:11 +00:00
fe845878d1
* Make sure all warnings in pytest get turned into errors * Suppress DeprecationWarnings in test_int_convert and test_numpy_int_convert * PyLong_AsLong only shouts "Deprecated!" on Python>=3.8 * Fix remaining warnings on PyPy and CPython 3.10-dev
20 lines
693 B
INI
20 lines
693 B
INI
[pytest]
|
|
minversion = 3.1
|
|
norecursedirs = test_* extra_*
|
|
xfail_strict = True
|
|
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
|
|
# somehow, some DeprecationWarnings do not get turned into errors
|
|
always::DeprecationWarning
|
|
# importing scipy submodules on some version of Python
|
|
ignore::ImportWarning
|
|
# bogus numpy ABI warning (see numpy/#432)
|
|
ignore:.*numpy.dtype size changed.*:RuntimeWarning
|
|
ignore:.*numpy.ufunc size changed.*:RuntimeWarning
|