diff --git a/tests/conftest.py b/tests/conftest.py index 43292cb..aa2d077 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,6 +1,7 @@ from __future__ import annotations import importlib.util +import os import shutil import sys from contextlib import contextmanager @@ -32,7 +33,9 @@ IS_VALGRIND_INSTALLED = shutil.which("valgrind") is not None skip_without_valgrind = pytest.mark.skipif( - not IS_VALGRIND_INSTALLED, reason="valgrind not installed" + "PYTEST_CODSPEED_FORCE_VALGRIND_TESTS" not in os.environ + and not IS_VALGRIND_INSTALLED, + reason="valgrind not installed", ) if IS_VALGRIND_INSTALLED: diff --git a/tests/examples/__init__.py b/tests/examples/__init__.py new file mode 100644 index 0000000..e69de29