diff --git a/examples/seismic/elastic/elastic_example.py b/examples/seismic/elastic/elastic_example.py index 8f9b97dbf6b..bd1845baaa7 100644 --- a/examples/seismic/elastic/elastic_example.py +++ b/examples/seismic/elastic/elastic_example.py @@ -40,7 +40,7 @@ def test_elastic(dtype): assert np.isclose(norm(rec2), 0.627606, atol=1e-3, rtol=0) -@pytest.mark.parametrize('shape', [(101,), (51, 51), (16, 16, 16)]) +@pytest.mark.parametrize('shape', [(51, 51), (16, 16, 16)]) def test_elastic_stability(shape): spacing = tuple([20]*len(shape)) _, _, _, [rec1, rec2, v, tau] = run(shape=shape, spacing=spacing, tn=20000.0, nbl=0) diff --git a/examples/seismic/viscoelastic/viscoelastic_example.py b/examples/seismic/viscoelastic/viscoelastic_example.py index 4c87d49e714..7d4fba7b47f 100644 --- a/examples/seismic/viscoelastic/viscoelastic_example.py +++ b/examples/seismic/viscoelastic/viscoelastic_example.py @@ -42,7 +42,7 @@ def test_viscoelastic(dtype): assert np.isclose(norm(rec2), 0.312461, atol=1e-3, rtol=0) -@pytest.mark.parametrize('shape', [(101,), (51, 51), (16, 16, 16)]) +@pytest.mark.parametrize('shape', [(51, 51), (16, 16, 16)]) def test_viscoelastic_stability(shape): spacing = tuple([20]*len(shape)) _, _, _, [rec1, rec2, v, tau] = run(shape=shape, spacing=spacing, tn=20000.0, nbl=0) diff --git a/pytest.ini b/pytest.ini index dc2c0f10ede..302df55aa33 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,6 @@ [pytest] +python_files = test_*.py *_example.py example_*.py +addopts = --durations=20 --maxfail=5 filterwarnings = ignore::pytest.PytestCacheWarning ignore::pytest.PytestReturnNotNoneWarning diff --git a/setup.cfg b/setup.cfg index 4fd063a0437..3406fbab7fe 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,10 +8,6 @@ max-line-length = 90 ignore = F403,E226,E731,E275,W503,F405,E722,E741,W504,W605 exclude = .github -[tool:pytest] -python_files = test_*.py *_example.py example_*.py -addopts = --durations=20 --maxfail=5 - [versioneer] VCS = git style = pep440