Skip to content

Commit

Permalink
Move user_properties to Item class
Browse files Browse the repository at this point in the history
  • Loading branch information
dajose committed Jan 2, 2018
1 parent a8bee5d commit beafa0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions _pytest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ def __init__(self, name, parent=None, config=None, session=None):
super(Item, self).__init__(name, parent, config, session)
self._report_sections = []

#: user properties is a list of tuples (name, value) that holds user
#: defined properties for this test.
self.user_properties = []

def add_report_section(self, when, key, content):
"""
Adds a new report section, similar to what's done internally to add stdout and
Expand Down
4 changes: 0 additions & 4 deletions _pytest/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,10 +1132,6 @@ def __init__(self, name, parent, args=None, config=None,
#: .. versionadded:: 3.0
self.originalname = originalname

#: user properties is a list of tuples (name, value) that holds user
#: defined properties for this test.
self.user_properties = []

def _initrequest(self):
self.funcargs = {}
if self._isyieldedfunction():
Expand Down

0 comments on commit beafa0a

Please sign in to comment.