Skip to content

Commit c99efaf

Browse files
committed
chore: allow forcing integrated tests
1 parent e7ef853 commit c99efaf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import importlib.util
4+
import os
45
import shutil
56
import sys
67
from contextlib import contextmanager
@@ -32,7 +33,9 @@
3233

3334
IS_VALGRIND_INSTALLED = shutil.which("valgrind") is not None
3435
skip_without_valgrind = pytest.mark.skipif(
35-
not IS_VALGRIND_INSTALLED, reason="valgrind not installed"
36+
"PYTEST_CODSPEED_FORCE_VALGRIND_TESTS" not in os.environ
37+
and not IS_VALGRIND_INSTALLED,
38+
reason="valgrind not installed",
3639
)
3740

3841
if IS_VALGRIND_INSTALLED:

tests/examples/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)