Skip to content

BUG reject unexpected skipif keyword arguments - #14843

Open
erichanwang wants to merge 2 commits into
pytest-dev:mainfrom
erichanwang:fix/skipif-rejects-unknown-kwargs
Open

BUG reject unexpected skipif keyword arguments#14843
erichanwang wants to merge 2 commits into
pytest-dev:mainfrom
erichanwang:fix/skipif-rejects-unknown-kwargs

Conversation

@erichanwang

Copy link
Copy Markdown

Fixes #14839

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Aug 9, 2026

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks for getting this started

Comment thread src/_pytest/skipping.py
if unexpected_kwargs:
unexpected = min(unexpected_kwargs)
raise TypeError(
"pytest.mark.skipif() got an unexpected keyword argument "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should show all at once

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

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pytest.mark.skipif silently ignores extra keyword args

2 participants