openjdk-23: use OpenJDK 23 as the boot JDK
[oi-userland.git] / components / python / Jinja2 / patches / 02-test-no-trio.patch
blobedd24562abdf306467daad62f93b932f95a83749
1 We have no trio packaged yet.
3 --- jinja2-3.1.5/requirements/tests.in.orig
4 +++ jinja2-3.1.5/requirements/tests.in
5 @@ -1,2 +1 @@
6 pytest
7 -trio
8 --- jinja2-3.1.5/tests/test_async.py.orig
9 +++ jinja2-3.1.5/tests/test_async.py
10 @@ -1,7 +1,6 @@
11 import asyncio
13 import pytest
14 -import trio
16 from jinja2 import ChainableUndefined
17 from jinja2 import DictLoader
18 @@ -18,7 +17,7 @@
19 return asyncio.run(async_fn(*args))
22 -@pytest.fixture(params=[_asyncio_run, trio.run], ids=["asyncio", "trio"])
23 +@pytest.fixture(params=[_asyncio_run], ids=["asyncio"])
24 def run_async_fn(request):
25 return request.param
27 --- jinja2-3.1.5/tests/test_async_filters.py.orig
28 +++ jinja2-3.1.5/tests/test_async_filters.py
29 @@ -3,7 +3,6 @@
30 from collections import namedtuple
32 import pytest
33 -import trio
34 from markupsafe import Markup
36 from jinja2 import Environment
37 @@ -33,7 +32,7 @@
38 return asyncio.run(async_fn(*args))
41 -@pytest.fixture(params=[_asyncio_run, trio.run], ids=["asyncio", "trio"])
42 +@pytest.fixture(params=[_asyncio_run], ids=["asyncio"])
43 def run_async_fn(request):
44 return request.param