8000 TST: Register markers in conftest.py. · numpy/numpy@9d4feed · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d4feed

Browse files
committed
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.
1 parent 78b8850 commit 9d4feed

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

numpy/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
_collect_results = {}
1414

1515

16+
def pytest_configure(config):
17+
config.addinivalue_line("markers",
18+
"valgrind_error: Tests that are known to error under valgrind.")
19+
config.addinivalue_line("markers",
20+
"slow: Tests that are very slow.")
21+
22+
1623
#FIXME when yield tests are gone.
1724
@pytest.hookimpl()
1825
def pytest_itemcollected(item):

pytest.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,3 @@ filterwarnings =
2424

2525
env =
2626
PYTHONHASHSEED=0
27-
28-
markers =
29-
valgrind_error: Known to cause errors under valgrind
30-
slow: Tests which are slow

0 commit comments

Comments
 (0)
0