2021-03-08 14:54:22 +00:00
|
|
|
[pytest]
|
2023-04-07 00:39:04 +00:00
|
|
|
minversion = 3.10
|
2021-03-08 14:54:22 +00:00
|
|
|
norecursedirs = test_* extra_*
|
|
|
|
xfail_strict = True
|
|
|
|
addopts =
|
2023-04-07 00:39:04 +00:00
|
|
|
# show summary of tests
|
|
|
|
-ra
|
2021-03-08 14:54:22 +00:00
|
|
|
# capture only Python print and C++ py::print, but not C output (low-level Python errors)
|
|
|
|
--capture=sys
|
2023-04-07 00:39:04 +00:00
|
|
|
# Show local info when a failure occurs
|
|
|
|
--showlocals
|
|
|
|
log_cli_level = info
|
2021-03-08 14:54:22 +00:00
|
|
|
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
|