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 3131from . import __version__ , __pypi_url__
3232
3333
34+ fixture_extras = []
35+
36+
3437def pytest_addhooks (pluginmanager ):
3538 from . import hooks
3639
@@ -95,7 +98,6 @@ def pytest_runtest_makereport(item, call):
9598 outcome = yield
9699 report = outcome .get_result ()
97100 if report .when == "call" :
98- fixture_extras = item .funcargs .get ("extra" , [])
99101 plugin_extras = getattr (report , "extra" , [])
100102 report .extra = fixture_extras + plugin_extras
101103
@@ -110,7 +112,8 @@ def extra():
110112 def test_foo(extra):
111113 extra.append(pytest_html.extras.url('http://www.example.com/'))
112114 """
113- return []
115+ del fixture_extras [:]
116+ return fixture_extras
114117
115118
116119def data_uri (content , mime_type = "text/plain" , charset = "utf-8" ):
You can’t perform that action at this time.
0 commit comments