From 13d9135fa5ba628b4b40891ee13b73d1880ae78d Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Wed, 6 Nov 2019 14:44:00 +0000 Subject: [PATCH] [tests] get rid of warning cf. https://docs.pytest.org/en/latest/example/simple.html --- transformers/tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transformers/tests/conftest.py b/transformers/tests/conftest.py index 841ebc8df9..44cfe3f464 100644 --- a/transformers/tests/conftest.py +++ b/transformers/tests/conftest.py @@ -9,6 +9,10 @@ def pytest_addoption(parser): ) +def pytest_configure(config): + config.addinivalue_line("markers", "slow: mark test as slow to run") + + def pytest_collection_modifyitems(config, items): if config.getoption("--runslow"): # --runslow given in cli: do not skip slow tests