Skip to content

Commit

Permalink
Move user_properties to the end of parameter list for backward compat…
Browse files Browse the repository at this point in the history
…ibility
  • Loading branch information
nicoddemus committed Feb 21, 2018
1 parent d838193 commit 567b1ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions _pytest/runner.py
Expand Up @@ -317,8 +317,7 @@ def pytest_runtest_makereport(item, call):
sections.append(("Captured %s %s" % (key, rwhen), content))
return TestReport(item.nodeid, item.location,
keywords, outcome, longrepr, when,
item.user_properties,
sections, duration)
sections, duration, user_properties=item.user_properties)


class TestReport(BaseReport):
Expand All @@ -327,8 +326,7 @@ class TestReport(BaseReport):
"""

def __init__(self, nodeid, location, keywords, outcome,
longrepr, when, user_properties,
sections=(), duration=0, **extra):
longrepr, when, sections=(), duration=0, user_properties=(), **extra):
#: normalized collection node id
self.nodeid = nodeid

Expand Down

0 comments on commit 567b1ea

Please sign in to comment.