[pytest]

# -rfEX :: Print a summary of failures, errors, and xpasses (xfails that pass).
addopts =
    -rfEX
    --strict-markers
    --tb=native
    -p pytester
    -p no:legacypath
    --runpytest=subprocess
    --durations=20
    --durations-min=1.0
xfail_strict = True
filterwarnings =
    error
    # https://github.com/pandas-dev/pandas/issues/41199
    default:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning
    default:distutils Version classes are deprecated\. Use packaging\.version instead:DeprecationWarning
    # https://github.com/pandas-dev/pandas/issues/32056 (?)
    default:numpy\.ufunc size changed, may indicate binary incompatibility\. Expected 216 from C header, got 232 from PyObject:RuntimeWarning
    # https://github.com/pandas-dev/pandas/issues/34848
    default:`np\.bool` is a deprecated alias for the builtin `bool`:DeprecationWarning
    default:`np\.complex` is a deprecated alias for the builtin `complex`:DeprecationWarning
    default:`np\.object` is a deprecated alias for the builtin `object`:DeprecationWarning
    # pytest-cov can't see into subprocesses; we'll see <100% covered if this is an issue
    ignore:Module hypothesis.* was previously imported, but not measured
