Skip to content

Commit

Permalink
Merge pull request #5182 from nicoddemus/removed-unused-deprecation-msgs
Browse files Browse the repository at this point in the history
Removed unused warning message
  • Loading branch information
asottile committed Apr 29, 2019
2 parents 9c700d1 + a3c2ec3 commit 6fb3baf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions changelog/5182.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed internal and unused ``_pytest.deprecated.MARK_INFO_ATTRIBUTE``.
6 changes: 0 additions & 6 deletions src/_pytest/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@
"See https://docs.pytest.org/en/latest/deprecations.html#result-log-result-log for more information."
)

MARK_INFO_ATTRIBUTE = RemovedInPytest4Warning(
"MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.\n"
"Please use node.get_closest_marker(name) or node.iter_markers(name).\n"
"Docs: https://docs.pytest.org/en/latest/mark.html#updating-code"
)

RAISES_EXEC = PytestDeprecationWarning(
"raises(..., 'code(as_a_string)') is deprecated, use the context manager form or use `exec()` directly\n\n"
"See https://docs.pytest.org/en/latest/deprecations.html#raises-warns-exec"
Expand Down

0 comments on commit 6fb3baf

Please sign in to comment.