File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 31
31
from . import __version__ , __pypi_url__
32
32
33
33
34
+ fixture_extras = []
35
+
36
+
34
37
def pytest_addhooks (pluginmanager ):
35
38
from . import hooks
36
39
@@ -95,7 +98,6 @@ def pytest_runtest_makereport(item, call):
95
98
outcome = yield
96
99
report = outcome .get_result ()
97
100
if report .when == "call" :
98
- fixture_extras = item .funcargs .get ("extra" , [])
99
101
plugin_extras = getattr (report , "extra" , [])
100
102
report .extra = fixture_extras + plugin_extras
101
103
@@ -110,7 +112,8 @@ def extra():
110
112
def test_foo(extra):
111
113
extra.append(pytest_html.extras.url('http://www.example.com/'))
112
114
"""
113
- return []
115
+ del fixture_extras [:]
116
+ return fixture_extras
114
117
115
118
116
119
def data_uri (content , mime_type = "text/plain" , charset = "utf-8" ):
You can’t perform that action at this time.
0 commit comments