Run xfail tests only once: no point re-running
This commit is contained in:
parent
48f4be0bcf
commit
3129d6052d
1 changed files with 6 additions and 1 deletions
|
@ -40,7 +40,12 @@ class PyLastTestCase:
|
|||
assert str.endswith(suffix, start, end)
|
||||
|
||||
|
||||
@flaky(max_runs=3, min_passes=1)
|
||||
def _no_xfail_rerun_filter(err, name, test, plugin):
|
||||
for _ in test.iter_markers(name="xfail"):
|
||||
return False
|
||||
|
||||
|
||||
@flaky(max_runs=3, min_passes=1, rerun_filter=_no_xfail_rerun_filter)
|
||||
class TestPyLastWithLastFm(PyLastTestCase):
|
||||
|
||||
secrets = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue