diff --git a/SOURCES/0001-Skip-tests-failing-with-pytest-6.2.2.patch b/SOURCES/0001-Skip-tests-failing-with-pytest-6.2.2.patch new file mode 100644 index 0000000..2a1f28c --- /dev/null +++ b/SOURCES/0001-Skip-tests-failing-with-pytest-6.2.2.patch @@ -0,0 +1,54 @@ +From ba649e4f98e8644275c114f4b85866b57e692bb7 Mon Sep 17 00:00:00 2001 +From: Joel Capitao +Date: Wed, 10 Feb 2021 10:42:27 +0100 +Subject: [PATCH] Skip tests failing with pytest=6.2.2 + +Those tests are currently failing in upstream CI [1] +while bumping pytest from 6.1.2 to 6.2.2. +In Fedora we only provides 6.2.2 for pytest 6.x.x. +With pytest options "-p no:unraisableexception -p no:threadexception", +it doesn't seem to work either, so we ignore them until upstream fix +it. + +[1] https://github.com/python-trio/trio/pull/1878 +--- + trio/_core/tests/test_asyncgen.py | 2 +- + trio/_core/tests/test_run.py | 2 ++ + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/trio/_core/tests/test_asyncgen.py b/trio/_core/tests/test_asyncgen.py +index 1f886e11..619b41e2 100644 +--- a/trio/_core/tests/test_asyncgen.py ++++ b/trio/_core/tests/test_asyncgen.py +@@ -251,7 +251,7 @@ async def step_outside_async_context(aiter): + await _core.wait_all_tasks_blocked() + nursery.cancel_scope.deadline = _core.current_time() + +- ++@pytest.mark.skip(reason="Fails with pytest=6.2.2") + @pytest.mark.skipif(buggy_pypy_asyncgens, reason="pypy 7.2.0 is buggy") + async def test_fallback_when_no_hook_claims_it(capsys): + async def well_behaved(): +diff --git a/trio/_core/tests/test_run.py b/trio/_core/tests/test_run.py +index 4c4e12b5..e808c325 100644 +--- a/trio/_core/tests/test_run.py ++++ b/trio/_core/tests/test_run.py +@@ -2198,6 +2198,7 @@ async def test_cancel_scope_deadline_duplicates(): + await sleep(0.01) + + ++@pytest.mark.skip(reason="Fails with pytest=6.2.2") + @pytest.mark.skipif( + sys.implementation.name != "cpython", reason="Only makes sense with refcounting GC" + ) +@@ -2228,6 +2229,7 @@ async def test_simple_cancel_scope_usage_doesnt_create_cyclic_garbage(): + gc.garbage.clear() + + ++@pytest.mark.skip(reason="Fails with pytest=6.2.2") + @pytest.mark.skipif( + sys.implementation.name != "cpython", reason="Only makes sense with refcounting GC" + ) +-- +2.26.2 +