Skip to content

Commit

Permalink
MAINT: Remove pytest.ini in favor of conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed May 14, 2019
1 parent a57819e commit 8a7706e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pytest.ini

This file was deleted.

17 changes: 17 additions & 0 deletions scipy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,28 @@


def pytest_configure(config):
config.addinivalue_line("addopts",
"-l")

config.addinivalue_line("markers",
"slow: Tests that are very slow.")
config.addinivalue_line("markers",
"xslow: mark test as extremely slow (not run unless explicitly requested)")

config.addinivalue_line("filterwarnings",
"error")
config.addinivalue_line("filterwarnings",
"always::scipy._lib._testutils.FPUModeChangeWarning")
config.addinivalue_line("filterwarnings",
"once:.*LAPACK bug 0038.*:RuntimeWarning")
config.addinivalue_line("filterwarnings",
"ignore:Using or importing the ABCs from 'collections'*:DeprecationWarning")
config.addinivalue_line("filterwarnings",
"ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning")

config.addinivalue_line("env",
"PYTHONHASHSEED=0")


def pytest_runtest_setup(item):
if LooseVersion(pytest.__version__) >= LooseVersion("3.6.0"):
Expand Down

0 comments on commit 8a7706e

Please sign in to comment.