1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Remove pytest-runner

This commit is contained in:
Unrud 2022-07-02 20:37:52 +02:00
parent a2ceaa41a4
commit 413c74c27c
4 changed files with 17 additions and 20 deletions

9
conftest.py Normal file
View file

@ -0,0 +1,9 @@
import sys
from importlib.util import find_spec
def pytest_addoption(parser, pluginmanager):
# Ignore the "--mypy" argument if pytest-mypy is not installed and
# the implementation is not cpython
if sys.implementation.name != 'cpython' and not find_spec("pytest_mypy"):
parser.addoption("--mypy", action="store_true")