From beafa0a354ff320c016a911d9fb65890c8a147d4 Mon Sep 17 00:00:00 2001 From: David Diaz Date: Tue, 2 Jan 2018 11:08:22 -0600 Subject: [PATCH] Move user_properties to Item class --- _pytest/main.py | 4 ++++ _pytest/python.py | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_pytest/main.py b/_pytest/main.py index 25554098dac..bc60525a243 100644 --- a/_pytest/main.py +++ b/_pytest/main.py @@ -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 diff --git a/_pytest/python.py b/_pytest/python.py index f5e2476d35d..650171a9e9c 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -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():