We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d744b2 commit bed069cCopy full SHA for bed069c
1 file changed
tests/benchmarks/conftest.py
@@ -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