pytest.ini 768 Bytes
Newer Older
1
[pytest]
2
minversion = 3.10
3
norecursedirs = test_* extra_*
4
xfail_strict = True
5
addopts =
6
7
    # show summary of tests
    -ra
8
9
    # capture only Python print and C++ py::print, but not C output (low-level Python errors)
    --capture=sys
10
11
12
    # Show local info when a failure occurs
    --showlocals
log_cli_level = info
13
14
15
filterwarnings =
    # make warnings into errors but ignore certain third-party extension issues
    error
16
17
    # somehow, some DeprecationWarnings do not get turned into errors
    always::DeprecationWarning
18
19
20
21
    # importing scipy submodules on some version of Python
    ignore::ImportWarning
    # bogus numpy ABI warning (see numpy/#432)
    ignore:.*numpy.dtype size changed.*:RuntimeWarning
22
    ignore:.*numpy.ufunc size changed.*:RuntimeWarning