File: conftest.py

package info (click to toggle)
zarr 3.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,264 kB
  • sloc: python: 33,347; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Pytest configuration for benchmark tests."""

import pytest

# Filter CodSpeed instrumentation warnings that can occur intermittently
# when registering benchmark results. This is a known issue with the
# CodSpeed walltime instrumentation hooks.
# See: https://github.com/CodSpeedHQ/pytest-codspeed


def pytest_configure(config: pytest.Config) -> None:
    config.addinivalue_line(
        "filterwarnings",
        "ignore:Failed to set executed benchmark:RuntimeWarning",
    )