Skip to content

Commit bed069c

Browse files
committed
ignore codspeed warnings
1 parent 7d744b2 commit bed069c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/benchmarks/conftest.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""Pytest configuration for benchmark tests."""
2+
3+
import pytest
4+
5+
# Filter CodSpeed instrumentation warnings that can occur intermittently
6+
# when registering benchmark results. This is a known issue with the
7+
# CodSpeed walltime instrumentation hooks.
8+
# See: https://github.com/CodSpeedHQ/pytest-codspeed
9+
10+
11+
def pytest_configure(config: pytest.Config) -> None:
12+
config.addinivalue_line(
13+
"filterwarnings",
14+
"ignore:Failed to set executed benchmark:RuntimeWarning",
15+
)

0 commit comments

Comments
 (0)