Skip to content

Commit

Permalink
Merge remote-tracking branch 'allanlewis/fix-unknown-mark-warning-sta…
Browse files Browse the repository at this point in the history
…ck-level' into acceptance-tests_pytest-dev/pytest/pytest-dev#4445
  • Loading branch information
Philipp Loose committed Oct 29, 2019
2 parents c489af3 + 03dc5ae commit 83f42fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/5928.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Report ``PytestUnknownMarkWarning`` at the level of the user's code, not ``pytest``'s.
1 change: 1 addition & 0 deletions src/_pytest/mark/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def __getattr__(self, name: str) -> MarkDecorator:
"custom marks to avoid this warning - for details, see "
"https://docs.pytest.org/en/latest/mark.html" % name,
PytestUnknownMarkWarning,
2,
)

return MarkDecorator(Mark(name, (), {}))
Expand Down

0 comments on commit 83f42fa

Please sign in to comment.