Skip to content

Commit ab5d950

Browse files
authored
Silence PytestUnknownMarkWarning by setting marker for pytest-benchmark (#2912)
Registering custom marker for pytest-benchmark in pyproject.toml, following https://docs.pytest.org/en/7.4.x/example/markers.html#registering-markers.
1 parent ff3dbb4 commit ab5d950

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,6 @@ max-args=10
160160
[tool.pytest.ini_options]
161161
minversion = "6.0"
162162
addopts = "--verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results"
163+
markers = [
164+
"benchmark: mark a test with custom benchmark settings.",
165+
]

0 commit comments

Comments
 (0)