Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Ignore pytest's PytestConfigWarning
When pytest is run with python optimization set by the environment variable PYTHONOPTIMIZE=2, it generates the warning pytest.PytestConfigWarning: assertions not in test modules or plugins will be ignored because assert statements are not executed by the underlying Python interpreter (are you using python -O?) Apparently this warning causes the test suite to fail. In this change, I've added ignore:assertions not in test modules or plugins:pytest.PytestConfigWarning to the filter warnings used by pytest, so the PytestConfigWarning is ignored.
- Loading branch information