diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-05-13 13:13:36 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2019-05-13 13:48:22 -0600 |
commit | 81fe94de6e2261ba75c65233ba8dfbae7180640d (patch) | |
tree | e7ca3a2a6a169bcd4ca8542fc3e53f3911970246 /numpy | |
parent | 4ad33d21b1a30f931e23307e9f9355b70f633bed (diff) | |
download | numpy-81fe94de6e2261ba75c65233ba8dfbae7180640d.tar.gz |
TST: Register markers in conftest.py.
Register the markers 'slow' and 'valgrind' in the `conftest.py` file
instead of `pytest.ini` as the latter file is not always present.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/conftest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/conftest.py b/numpy/conftest.py index 4d4d055ec..7834dd39d 100644 --- a/numpy/conftest.py +++ b/numpy/conftest.py @@ -13,6 +13,13 @@ _old_fpu_mode = None _collect_results = {} +def pytest_configure(config): + config.addinivalue_line("markers", + "valgrind_error: Tests that are known to error under valgrind.") + config.addinivalue_line("markers", + "slow: Tests that are very slow.") + + #FIXME when yield tests are gone. @pytest.hookimpl() def pytest_itemcollected(item): |