Skip to content

Commit e8ccb71

Browse files
remove the MARK_INFO_ATTRIBUTE warning until we can fix internal usage
fixes #2573
1 parent 1485a3a commit e8ccb71

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

_pytest/mark.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ def __init__(self, mark):
401401
self.combined = mark
402402
self._marks = [mark]
403403

404-
name = alias('combined.name', warning=MARK_INFO_ATTRIBUTE)
405-
args = alias('combined.args', warning=MARK_INFO_ATTRIBUTE)
406-
kwargs = alias('combined.kwargs', warning=MARK_INFO_ATTRIBUTE)
404+
name = alias('combined.name')
405+
args = alias('combined.args')
406+
kwargs = alias('combined.kwargs')
407407

408408
def __repr__(self):
409409
return "<MarkInfo {0!r}>".format(self.combined)

changelog/2773.trivial

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
remove warnings for MarkInfo attributes as they don't create value unless we have an alternative.

0 commit comments

Comments
 (0)