Skip to content

Conversation

@Vivansh27
Copy link

This PR adds a test that documents the existing behavior when a pytest
marker receives an unsupported (unserializable) argument type.

No behavior is changed; the test simply ensures a TypeError is raised
to help prevent regressions.

Vivansh27 and others added 2 commits January 19, 2026 17:18
Update foo function to raise NotImplementedError and add test for unserializable argument.


def test_marker_rejects_unserializable_argument():
with pytest.raises(TypeError):
Copy link
Member

Choose a reason for hiding this comment

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

We should match the error message to be specific enough

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