Skip to content

Commit 7b37899

Browse files
replace removed function with suggested alternative
get_marker function was removed, see this for reference pytest-dev/pytest#4546
1 parent 4002b4c commit 7b37899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_ignore_flaky.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PluginIgnoreFlaky(object):
1414
def pytest_runtest_makereport(self, item, call):
1515
'''Turn failures into xfail if test is marked as "flaky".'''
1616
outcome = yield
17-
if item.get_marker('flaky'):
17+
if item.get_closest_marker('flaky'):
1818
report = outcome.get_result()
1919
if report.outcome == 'failed':
2020
report.outcome = 'skipped'

0 commit comments

Comments
 (0)