From 11b84051fe52efff710a8e9122ad58f559da3c1e Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 30 Aug 2019 07:37:10 -0300 Subject: [PATCH] Mark flaky test as xfail on 3.5.0 Ref: #5795 --- testing/test_collection.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testing/test_collection.py b/testing/test_collection.py index dee07d5c71..187cbfcb98 100644 --- a/testing/test_collection.py +++ b/testing/test_collection.py @@ -860,6 +860,11 @@ def test_exit_on_collection_with_maxfail_smaller_than_n_errors(testdir): assert "test_03" not in res.stdout.str() +@pytest.mark.xfail( + condition=sys.version_info[:3] == (3, 5, 0), + strict=False, + reason="flaky on py 3.5.0 #5795", +) def test_exit_on_collection_with_maxfail_bigger_than_n_errors(testdir): """ Verify the test run aborts due to collection errors even if maxfail count of