Skip to content

Register the “benchmark” pytest mark#164

Merged
ifduyue merged 1 commit into
ifduyue:masterfrom
musicinmybrain:benchmark-mark
Jun 29, 2026
Merged

Register the “benchmark” pytest mark#164
ifduyue merged 1 commit into
ifduyue:masterfrom
musicinmybrain:benchmark-mark

Conversation

@musicinmybrain

Copy link
Copy Markdown
Contributor

Avoids warnings of the form:

PytestUnknownMarkWarning: Unknown pytest.mark.benchmark - is this a
typo?  You can register custom marks to avoid this warning - for
details, see https://docs.pytest.org/en/stable/how-to/mark.html

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a benchmark marker configuration for pytest in pyproject.toml. The reviewer correctly identified that pytest configuration in pyproject.toml must be placed under the [tool.pytest.ini_options] table rather than [tool.pytest] to be recognized, and provided an appropriate code suggestion to fix this issue.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread pyproject.toml Outdated
Avoids warnings of the form:

```
PytestUnknownMarkWarning: Unknown pytest.mark.benchmark - is this a
typo?  You can register custom marks to avoid this warning - for
details, see https://docs.pytest.org/en/stable/how-to/mark.html
```
@ifduyue ifduyue merged commit 5c998b8 into ifduyue:master Jun 29, 2026
@ifduyue

ifduyue commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants