Merge pull request #343 from pylast/run-xfail-only-once
Run xfail tests only once: no point re-running
This commit is contained in:
commit
f8a6c20ade
|
@ -40,7 +40,12 @@ class PyLastTestCase:
|
||||||
assert str.endswith(suffix, start, end)
|
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):
|
class TestPyLastWithLastFm(PyLastTestCase):
|
||||||
|
|
||||||
secrets = None
|
secrets = None
|
||||||
|
|
Loading…
Reference in a new issue