Skip to content

Commit

Permalink
tests: fix Pytest RemovedInPytest4Warning
Browse files Browse the repository at this point in the history
* Remove calls to get_marker() as it's deprecated, for context see:
  https://docs.pytest.org/en/latest/mark.html#marker-revamp-and-iteration

Change-Id: I465ff6a6e6bf1f83325e1e32f0d851feba702cb3
  • Loading branch information
volans- committed Dec 27, 2018
1 parent 0e5fc00 commit 8d44ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cumin/tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def pytest_runtest_makereport(item, call): # pylint: disable=unused-argument
"""If a custom variant_params marker is set, print a section with its content."""
outcome = yield
marker = item.get_marker('variant_params')
marker = item.get_closest_marker('variant_params')
if marker:
rep = outcome.get_result()
rep.sections.insert(0, ('test_variant parameters', marker.args))

0 comments on commit 8d44ec9

Please sign in to comment.