Blame SOURCES/0001-Skip-tests-failing-with-pytest-6.2.2.patch

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