From b8cd9b3cad570e28cad9c54f815177140388acb7 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Mon, 25 Dec 2023 20:59:32 +1300 Subject: [PATCH] Silence PytestUnknownMarkWarning by setting marker for pytest-benchmark Registering custom marker for pytest-benchmark in pyproject.toml, following https://docs.pytest.org/en/7.4.x/example/markers.html#registering-markers. --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 2380ed8cf9e..747f926771a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -160,3 +160,6 @@ max-args=10 [tool.pytest.ini_options] minversion = "6.0" addopts = "--verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results" +markers = [ + "benchmark: mark a test with custom benchmark settings.", +]