Skip to content

Commit 6fb3baf

Browse files
authored
Merge pull request #5182 from nicoddemus/removed-unused-deprecation-msgs
Removed unused warning message
2 parents 9c700d1 + a3c2ec3 commit 6fb3baf

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

changelog/5182.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed internal and unused ``_pytest.deprecated.MARK_INFO_ATTRIBUTE``.

src/_pytest/deprecated.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@
4848
"See https://docs.pytest.org/en/latest/deprecations.html#result-log-result-log for more information."
4949
)
5050

51-
MARK_INFO_ATTRIBUTE = RemovedInPytest4Warning(
52-
"MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.\n"
53-
"Please use node.get_closest_marker(name) or node.iter_markers(name).\n"
54-
"Docs: https://docs.pytest.org/en/latest/mark.html#updating-code"
55-
)
56-
5751
RAISES_EXEC = PytestDeprecationWarning(
5852
"raises(..., 'code(as_a_string)') is deprecated, use the context manager form or use `exec()` directly\n\n"
5953
"See https://docs.pytest.org/en/latest/deprecations.html#raises-warns-exec"

0 commit comments

Comments
 (0)