Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions testing/test_mark.py
Original file line number Diff line number Diff line change
Expand Up @@ -1344,3 +1344,11 @@ def test_fixture_disallowed_between_marks() -> None:
@pytest.mark.usefixtures("tmp_path")
def foo():
raise NotImplementedError()


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


@pytest.mark.example(object())
def test_func():
pass
Loading